toString duplicate code block

68 views
Skip to first unread message

Andre Frintrop

unread,
Mar 29, 2017, 3:34:54 AM3/29/17
to SonarQube, af@objectiveit. de
I want Sonarqube to ignore our generated toString methods in each class, as there are many "false positives" for duplicated code blocks.
Therefore we configured 
  • sonar.issue.ignore.block from "toString" to "return" statement
but sonarqube ignores that.

somebody a suggestion ?

Freddy Mallet

unread,
Mar 29, 2017, 12:10:37 PM3/29/17
to Andre Frintrop, SonarQube, af@objectiveit. de
I know that it's not the expected answer but the only option that I could think about is to annotate your "toString()" methods with the @SuppressWarnings("all")  annotation. 
Kind regards
Freddy

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/cbee5eb4-e8be-487c-b34f-f0a301716c6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Freddy MALLET | SonarSource
Reply all
Reply to author
Forward
0 new messages