SonarLint for Eclipse - Mark false positives

616 views
Skip to first unread message

Matthias Kolley

unread,
Nov 9, 2016, 3:30:15 AM11/9/16
to SonarLint
Hi.

I have the problem that (squid:S2068) produces a false positive.
That is totally ok for me.
But i would like to mark this one as false positive so that it does not show up anymore.

I'm using SonarLint Standalone Version 2.2.1.201608261350-RELEASE

Is there a way to achieve this?

Julien HENRY

unread,
Nov 9, 2016, 3:33:22 AM11/9/16
to Matthias Kolley, SonarLint
Hi Matthias,

You can use @SuppressWarnings("squid:S2068")

++

Julien

Matthias Kolley

unread,
Nov 9, 2016, 7:50:31 AM11/9/16
to SonarLint, matthia...@googlemail.com
Hi Julien.

Thanks for your quick answer.
With your suggestion the SonarLint warning goes away but i get an "Unsupported @SuppressWarnings("squid:S2068")" warning cause Eclipse does not know that this is a valid warning.
Due to the fact that it is currently not possible to add custom supported warnings i will have a warning either way.

So I guess i have to wait. :(

Julien HENRY

unread,
Nov 9, 2016, 7:55:12 AM11/9/16
to Matthias Kolley, SonarLint
On my side I have disabled this warning from Eclipse:
Images intégrées 1

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/6ef7bdcd-e706-4879-b4f2-a57d5c5735d9%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Matthias Kolley

unread,
Nov 9, 2016, 9:10:02 AM11/9/16
to SonarLint
Well, I already read about this option and it looks like this is the way I have to go if i want those warnings to go away.....
Thanks again for your quick answer.


Am Mittwoch, 9. November 2016 13:55:12 UTC+1 schrieb Julien HENRY:
On my side I have disabled this warning from Eclipse:
Images intégrées 1
2016-11-09 13:50 GMT+01:00 'Matthias Kolley' via SonarLint <sona...@googlegroups.com>:
Hi Julien.

Thanks for your quick answer.
With your suggestion the SonarLint warning goes away but i get an "Unsupported @SuppressWarnings("squid:S2068")" warning cause Eclipse does not know that this is a valid warning.
Due to the fact that it is currently not possible to add custom supported warnings i will have a warning either way.

So I guess i have to wait. :(


Am Mittwoch, 9. November 2016 09:33:22 UTC+1 schrieb Julien HENRY:
Hi Matthias,

You can use @SuppressWarnings("squid:S2068")

++

Julien

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages