-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
LGTM.com should respect Java's @SuppressWarnings annotation #2076
Comments
We have discussed this a bit internally and opted to improve the query to only report immediate overrides, which should remove this FP. The problem with |
I am confused as to why a lack of standard suppression strings results in a close-won't-fix. You can simply use the same query-id that are going into the suppression comments. That's how @SuppressWarnings was designed to be used and is used in practice. Google's error-prone does this. Putting in tool-sepecific strings in |
If we were to add support for this it would probably look something like |
That or For a point of reference comment based inspection suppression is banned by our coding style, because |
We are looking into this, see #2152 |
Java has a standard mechanism (the @SuppressWarnings annotation) to suppress linting warnings that is used by Javac, FindBugs, Errorprone, and may other linters. LGTM should support it.
Specifically, this warning is already supporessed - https://lgtm.com/projects/g/hyperledger/besu/snapshot/02f6b9656d63edcaa1edff38c513a797d3a644ae/files/crypto/src/main/java/org/hyperledger/besu/crypto/PRNGSecureRandom.java?sort=name&dir=ASC&mode=heatmap#x9c62677733e6345:1
The text was updated successfully, but these errors were encountered: