Skip to content

feature: cli-config.yaml also has provider/org/repo info CF-1766#166

Merged
pedrobpereira merged 1 commit intomainfrom
feature/adds-repo-info-CF-1766
Aug 1, 2025
Merged

feature: cli-config.yaml also has provider/org/repo info CF-1766#166
pedrobpereira merged 1 commit intomainfrom
feature/adds-repo-info-CF-1766

Conversation

@pedrobpereira
Copy link
Copy Markdown
Contributor

No description provided.

@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Jul 31, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00% 0.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (d348aba) 5665 1095 19.33%
Head commit (4fb2aaf) 5665 (+0) 1095 (+0) 19.33% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#166) 9 0 0.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

@pedrobpereira pedrobpereira force-pushed the feature/adds-repo-info-CF-1766 branch 3 times, most recently from 91d5975 to 92c2916 Compare July 31, 2025 16:37
Comment thread cmd/init_test.go
assert.Equal(t, 0, len(files), "Expected 0 files after cleaning, got %d", len(files))
}

func TestInitCommand_NoToken(t *testing.T) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing these tests, they are always being skipped. Integration tests cover these scenarios.

Comment thread cmd/init_test.go
// Use the real plugins/tools/semgrep/rules.yaml file
rulesPath := filepath.Join("..", "plugins", "tools", "semgrep", "rules.yaml")
if _, err := os.Stat(rulesPath); os.IsNotExist(err) {
t.Skipf("plugins/tools/semgrep/rules.yaml not found at %s; skipping test", rulesPath)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line that made the tests skip always.

Comment thread config/config.go Outdated
}

func (c *ConfigType) CreateLocalCodacyDir() error {
log.Printf("printing stuff" + c.localCodacyDirectory)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove ;D

@pedrobpereira pedrobpereira force-pushed the feature/adds-repo-info-CF-1766 branch from 92c2916 to 4fb2aaf Compare August 1, 2025 09:21
@pedrobpereira pedrobpereira merged commit 73051d7 into main Aug 1, 2025
10 checks passed
@pedrobpereira pedrobpereira deleted the feature/adds-repo-info-CF-1766 branch August 1, 2025 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants