Categories: Bug Risk, Clarity, Compatibility, Complexity, Duplication, Performance, Security, Style
SonarLint Version: 2.1
SonarJava Version: 4.14 (the
beta channel is pointing to 22.214.171.12488, also there is a dedicated channel for this version
SonarJava and SonarLint are products developed by SonarSource.
SonarJava is a code analyzer for Java projects. It uses the most advanced techniques (pattern matching, dataflow analysis) to analyze code and find code smells, bugs and security vulnerabilities.
To enable SonarJava analysis, add the following to your
.codeclimate.yml configuration file:
plugins: sonar-java: enabled: true
More information about the CLI is available in the README here: https://github.com/codeclimate/codeclimate
To ensure that SonarJava uses the correct rules for your version of Java, specify the version in the
plugins: sonar-java: enabled: true config: sonar.java.source: "7"
To use specific rules for test classes, you can specify them using the
plugins: sonar-java: enabled: true config: tests_patterns: - src/test/** - app/src/test/**
Setting a minimum severity forces Sonar to not create negligible issues.
Possible values are:
plugins: sonar-java: enabled: true config: minimum_severity: critical
For detailed information about SonarJava, please check out the documentation here:
Updated 2 months ago