sonarqube - How do I alter checkstyle configuration file when using sonar? -


I am trying to suppress specific checklist warnings in my code. By default the code begins to wrap in comments such as: // Checkstyle: Off ... // Checkstyle: On At least I want to give a reason for which I have received the post. I do not know where configuration files will be used when using sonar, can anybody help?

An example of how to configure filters:

  & lt; Module name = "suppression comment filter" & gt; & Lt; Property Name = "Off Comform Format" value = "CSOFF: ([w |] + /") & Lt; Property Name = "onCommentFormat" value = "CSON: ([w |) + /") & Lt; Property Name = "Check Form" Value = "$ 1" /> & Lt; / Module & gt;  

You can use the following to close this check required for a block of code:

  // CSOFF: RequireThis .. Code // SSON: Required This  

Sonar log on as admin , Then go to "Settings" (link next to your user name, select the "Java" category, then select the "Checkstyle" tab, next to it.

Next, in "Poster" "" Text.


Comments

Popular posts from this blog

eclipse plugin - Run java code error: Workspace is closed -

ios - How do I use CFArrayRef in Swift? -

scala - Play Framework - how to bind form to a session field -