SonarJava

SonarQube Java Analyzer is the static code analyzer for Java from SonarSource Team.

https://www.sonarsource.com/products/codeanalyzers/sonarjava.html

Enable SonarJava

To enable SonarQube Java Analyzer, simply add following configuration to your .scrutinizer.yml:

build:
    nodes:
        analysis:
            tests:
                override:
                    -
                        command: java-sonar-run
                        use_website_config: true

By default, we have already enabled some recommended checks for you.

Configuration

If you would like to customize the checks settings you can use checks editor.