-
Notifications
You must be signed in to change notification settings - Fork 10
fix: not recommended patterns are now included in semgrep config CF-1809 #175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
a30823c to
8131133
Compare
80d9d78 to
091f086
Compare
machadoit
left a comment
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
091f086 to
a765c93
Compare
No description provided.