diff --git a/checkstyle-sonar-plugin/checkstyle.properties b/checkstyle-sonar-plugin/checkstyle.properties new file mode 100644 index 00000000..4e4784b6 --- /dev/null +++ b/checkstyle-sonar-plugin/checkstyle.properties @@ -0,0 +1,4 @@ +checkstyle.suppressions.file=checkstyle-sonar-plugin/suppressions.xml +checkstyle.header.file=https://raw.githubusercontent.com/checkstyle/checkstyle/master/config/java.header +checkstyle.regexp.header.file=https://raw.githubusercontent.com/checkstyle/checkstyle/master/config/java_regexp.header +checkstyle.importcontrol.file=checkstyle-sonar-plugin/import-control.xml diff --git a/checkstyle-sonar-plugin/import-control.xml b/checkstyle-sonar-plugin/import-control.xml new file mode 100644 index 00000000..20c6d84b --- /dev/null +++ b/checkstyle-sonar-plugin/import-control.xml @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/checkstyle-sonar-plugin/pom.xml b/checkstyle-sonar-plugin/pom.xml index 3f0651cf..2c1687de 100644 --- a/checkstyle-sonar-plugin/pom.xml +++ b/checkstyle-sonar-plugin/pom.xml @@ -14,6 +14,11 @@ Checkstyle SonarQube Plugin Checkstyle is a code analyser to help programmers write Java code that adheres to a coding standard. + + 7.3 + 2.17 + + org.codehaus.sonar @@ -122,6 +127,36 @@ + + org.apache.maven.plugins + maven-checkstyle-plugin + ${checkstyle.plugin.version} + + + com.puppycrawl.tools + checkstyle + ${checkstyle.version} + + + + + + process-classes + + check + + + https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-${checkstyle.version}/config/checkstyle_checks.xml + true + false + checkstyle.properties + ${project.basedir}/src + + + + org.sonarsource.sonar-packaging-maven-plugin sonar-packaging-maven-plugin diff --git a/checkstyle-sonar-plugin/suppressions.xml b/checkstyle-sonar-plugin/suppressions.xml new file mode 100644 index 00000000..347d35b3 --- /dev/null +++ b/checkstyle-sonar-plugin/suppressions.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + +