Skip to content

Conversation

@pedrobpereira
Copy link
Contributor

No description provided.

@codacy-production
Copy link

codacy-production bot commented Sep 17, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.48% (target: -0.50%) 73.33% (target: 50.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (ee1b0e6) 5690 1126 19.79%
Head commit (a765c93) 5702 (+12) 1156 (+30) 20.27% (+0.48%)

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 (#175) 15 11 73.33%

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 fix/semgrep-config-CF-1809 branch 3 times, most recently from a30823c to 8131133 Compare September 17, 2025 09:15
@pedrobpereira pedrobpereira force-pushed the fix/semgrep-config-CF-1809 branch 11 times, most recently from 80d9d78 to 091f086 Compare September 18, 2025 15:04
machadoit
machadoit previously approved these changes Sep 18, 2025
Copy link
Contributor

@machadoit machadoit left a comment

Choose a reason for hiding this comment

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

LGTM!

// Create a map of enabled pattern IDs for faster lookup
enabledPatterns := make(map[string]bool)
for _, pattern := range config {
if pattern.Enabled && pattern.PatternDefinition.Enabled {
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh wow 😅


onlyRecommendedPatterns := make([]domain.PatternConfiguration, 0)
for _, pattern := range allPaterns {
if pattern.PatternDefinition.Enabled {
Copy link
Contributor

Choose a reason for hiding this comment

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

This one here is fine beucase it is about the global patterns, not repo specific ones, right?

Copy link
Contributor Author

@pedrobpereira pedrobpereira Sep 19, 2025

Choose a reason for hiding this comment

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

yeah, this is platform default patterns, recommended, so that Enabled true.

@pedrobpereira pedrobpereira merged commit c62cd20 into main Sep 19, 2025
10 checks passed
@pedrobpereira pedrobpereira deleted the fix/semgrep-config-CF-1809 branch September 19, 2025 08:47
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