Turning Sonar off for certain code

Is it possible to turn off sonar (www.sonarsource.org) measurements for specific blocks of code, which one doesn’t want to be measured?

An example is the “Preserve Stack Trace” warning which Findbugs outputs. When leaving the server, I might well want to only pass the message back to the client, not including the actual exception which I just caught, if that exception is unknown to the client (because the client doesn’t have the JAR in which that exception was contained for example).

6 Answers
6

Leave a Comment