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

Notes:

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 must match the package declaration. For example, the following class:

MyClass.java

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

Log

Tests and Code Coverage

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