sonarqube - SONAR undocumented public API skewed by unit tests -


the sonar metrics include section evaluating documentation quality, having item public undocumented api. high in our project because reports each , every unit test. however, unit test methods have public junit.

is there easy way remove unit test methods undocumented api metric?

i'm aware of these alternatives:

  • we add javadoc comments each test method. not useful, pollutes code.
  • the tests in eclipse test fragment projects. exclude test classes sonar analysis. however, want have same rules applied test code , production code (e.g. when checking violations).

i have not found section in sonar configuration matching metric, may have missed it.

this metric not fed unit test classes, must have missed in configuration.

as example, check out sonar analysed sonar (on nemo): you'll see no test class reported "public_undocumented_api".


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -