Skip to content

checkstyle/sonar-checkstyle

Repository files navigation

Sonar Checkstyle

This plugin provides coding rules from Checkstyle for Sonar.


Compatiblity

Compatibility matrix from Sonar: https://docs.sonarsource.com/sonarqube/latest/instance-administration/plugin-version-matrix/

Compatibility matrix from Checkstyle:

Checkstyle Plugin Sonar min Sonar max Checkstyle Jdk
10.20.2 9.9 10.7+ 10.20.2 11
10.20.1 9.9 10.7+ 10.20.1 11
10.19.0 9.9 10.7+ 10.19.0 11
10.17.0 9.9 10.0+ 10.17.0 11
10.16.0 9.9 10.0+ 10.16.0 11
10.15.0 9.9 10.0+ 10.15.0 11
10.14.2 9.9 10.0+ 10.14.2 11
10.14.1 9.9 10.0+ 10.14.1 11
10.12.5 9.0 10.0+ 10.12.5 11
10.12.3 9.0 10.0+ 10.12.3 11
10.12.1 9.0 10.0+ 10.12.1 11
10.12.0 9.0 10.0+ 10.12.0 11
10.11.0 9.0 10.0+ 10.11.0 11
10.9.3 9.0 10.0+ 10.9.3 11
10.8.1 9.0 9.0+ 10.8.1 11
10.8.0 9.0 9.0+ 10.8.0 11
10.7.0 9.0 9.0+ 10.7.0 11
10.6.0 9.0 9.0+ 10.6.0 11
10.5 9.0 9.0+ 10.5 11
10.4 9.0 9.0+ 10.4 11
10.3.4 9.0 9.0+ 10.3.4 11
10.3.3 9.0 9.0+ 10.3.3 11
10.3.2 9.0 9.0+ 10.3.2 11
10.3.1 9.0 9.0+ 10.3.1 11
10.3 9.0 9.0+ 10.3 11
10.2 9.0 9.0+ 10.2 11
10.1 9.0 9.0+ 10.1 11
10.0 9.0 9.0+ 10.0 11
9.3 8.9 8.9+ 9.3 1.8
9.2.1 8.9 8.9+ 9.2.1 1.8
9.2 8.9 8.9+ 9.2 1.8
9.1 8.9 8.9+ 9.1 1.8
9.0.1 8.9 8.9+ 9.0.1 1.8
8.45.1 7.9 7.9+ 8.45.1 1.8
8.42 7.9 7.9+ 8.42 1.8
8.41.1 7.9 7.9+ 8.41.1 1.8
8.40 7.9 7.9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 7.5 1.8
3.4 5.6.4 7.2 7.4 1.8
3.3 5.6.4 7.2 7.3 1.8
3.2 5.6.4 7.2 7.2 1.8
3.1.2 5.6.4 7.2 7.1.2 1.8
3.1.1 5.6.4 7.2 7.1.1 1.8
3.1 5.6.4 -- 7.1 1.8
2.4 4.5.2 -- 6.12.1 1.7
2.3 4.5.1 -- 6.4.1 1.7
2.2 4.5.1 -- 6.1 1.6
2.1.1 3.6 -- 5.6 1.6
2 3.6 -- 5.6 1.6

Installation

  1. Follow the official Sonar documentation to install a plugin from the marketplace, or manually (pick your release from https://github.com/checkstyle/sonar-checkstyle/releases.
  2. Configure instances from template rules for the Checkstyle repository.
  3. Add rules/instances from the Checkstyle repository to your Quality Profile.