From 3243252e10fd86b2ba845d287e3ef0058955385f Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Wed, 30 Nov 2011 10:55:26 +0400 Subject: SONAR-1836 Upgrade to Checkstyle 5.5 New rules in 5.2: * InnerTypeLast Modified rules in 5.2: * DeclarationOrder * ImportOrder New rules in 5.3: * OuterTypeFilename * NestedForDepth * MethodCount * OneStatementPerLine Modified rules in 5.3: * PackageDeclaration * MagicNumber * AbstractClassName * AvoidStarImport Modified rules in 5.4: * UnusedImports * MagicNumber * EqualsAvoidNull * IllegalThrows * RedundantModifier --- plugins/sonar-checkstyle-plugin/pom.xml | 40 ++------- .../org/sonar/plugins/checkstyle/rules.xml | 94 +++++++++++++++++----- 2 files changed, 82 insertions(+), 52 deletions(-) (limited to 'plugins/sonar-checkstyle-plugin') diff --git a/plugins/sonar-checkstyle-plugin/pom.xml b/plugins/sonar-checkstyle-plugin/pom.xml index fafb431f097..1d94817ee37 100644 --- a/plugins/sonar-checkstyle-plugin/pom.xml +++ b/plugins/sonar-checkstyle-plugin/pom.xml @@ -14,24 +14,9 @@ Checkstyle is a code analyser to help programmers write Java code that adheres to a coding standard. - 5.1.2 + 5.5 - - - - sonar - Sonar - http://repository.sonarsource.org/content/repositories/sonar - - true - - - false - - - - org.codehaus.sonar @@ -39,8 +24,8 @@ provided - com.sonarsource.checkstyle - checkstyle-java7 + com.puppycrawl.tools + checkstyle ${checkstyle.version} @@ -68,6 +53,11 @@ commons-beanutils commons-beanutils-core + + + com.sun + tools + @@ -105,20 +95,6 @@ - - - org.apache.maven.plugins - maven-enforcer-plugin - - - enforce-no-repositories - - true - - - - - org.codehaus.sonar sonar-packaging-maven-plugin diff --git a/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml b/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml index 4f9030f57f5..af6e0f68cae 100644 --- a/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml +++ b/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml @@ -93,7 +93,9 @@ - + + false + @@ -278,17 +280,12 @@ ^Abstract.*$|^.*Factory$ - MAJOR @@ -339,9 +336,13 @@ - - + + + false + + + false @@ -424,7 +425,9 @@ - + + + MAJOR @@ -634,9 +637,9 @@ - - + + @@ -933,12 +936,15 @@ - - - + + + false + + + false @@ -1177,7 +1183,7 @@ - + @@ -1239,9 +1245,7 @@ - - - + @@ -1519,7 +1523,9 @@ - + + false + MINOR @@ -1589,4 +1595,52 @@ - \ No newline at end of file + + + INFO + + + + + + MAJOR + + + + + + MAJOR + + + + 1 + + + + + MAJOR + + + + 100 + + + 100 + + + 100 + + + 100 + + + 100 + + + + + MAJOR + + + + -- cgit v1.2.3