Skip to content
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

csgrep --warning-rate-limit: drop location from key events #185

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

kdudka
Copy link
Member

@kdudka kdudka commented May 28, 2024

... to ease finding deduplication. If a checker is too noisy, a small change in the code could unexpectedly change the location (including the file path) of the error[too-many] key event, which would hamper the deduplication of findings.

Related: https://issues.redhat.com/browse/OSH-496

@jperezdealgaba
Copy link
Contributor

jperezdealgaba commented Jun 11, 2024

I can not speak for the correctness of the code, but I have been testing this for #187 and it works as expected.

So LGTM!

... so that `csdiff` can parse the output when processing it later on
The JSON-based output formats do not have problems with empty strings.

Related: https://issues.redhat.com/browse/OSH-496
... to ease finding deduplication.  If a checker is too noisy, a small
change in the code could unexpectedly change the location (including the
file path) of the `error[too-many]` key event, which would hamper the
deduplication of findings.

Related: https://issues.redhat.com/browse/OSH-496
Copy link
Member

@lzaoral lzaoral left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you, @kdudka!

@kdudka
Copy link
Member Author

kdudka commented Jun 12, 2024

@lzaoral Thanks for review!

@kdudka kdudka merged commit be1def4 into csutils:main Jun 12, 2024
29 checks passed
@kdudka kdudka deleted the too-many-noloc branch June 12, 2024 07:57
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