Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Other optional plugins are available for download: AndroidCobertura, EmmaCloverClirr and fb-contrib.

It The Java Ecosystem is compatible with the SonarQube Eclipse plugin to track  for tracking issues while coding. It is also compatible with the Issues Report plugin to run pre-commit local analysis.

...

Sample projects for each analyzer are available on GitHub that can be browsed or downloaded: /projects/languages/java

...

  • The source directory must be set to the directory containing the top parent package. For example, if your directory structure is 'src/main/java/com/mycompany/...', the source directory must be set to 'src/main/java'.
  • The source directory tree has to must match the package declaration. For example, the following class:

...

must be located in the following directory: [mySourceDirectory]/com/mycompany/mypackage/MyClass.java. Otherwise you would get such an error like this while running your analysis:

...

The default code coverage engine for unit tests can be set in Settings > General Settings > Java > Code coverage plugin property.

By default the code coverage engine is JaCoCo, but CoberturaEmma or Clover can also be used.

...