-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Allow rules without codes #28049
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
Allow rules without codes #28049
Changes from all commits
ae299b8
cc3a964
54b79e9
0b16927
01c1b41
1596c5a
daec1c3
65201b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -169,9 +169,9 @@ impl AddAssign for FixMap { | |
| continue; | ||
| } | ||
| let fixed_in_file = self.0.entry(filename).or_default(); | ||
| for (rule, name, count) in fixed.iter() { | ||
| for (id, code, count) in fixed.iter() { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What we do in this commit seems the right approach to me. We use the name as identifier, and only carry code along because we need it to preserve existing display behavior. |
||
| if count > 0 { | ||
| *fixed_in_file.entry(rule).or_default(name) += count; | ||
| *fixed_in_file.entry(id).or_default(code) += count; | ||
| } | ||
| } | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.