Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgraded CodeNarc and GMetrics #83

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
disabled faulty rules from default profile
  • Loading branch information
musketyr committed Nov 1, 2018
commit 45f0054d7086f601501c18f645f7ae4482c3be11
2 changes: 1 addition & 1 deletion groovy-jacoco-previous/pom.xml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
<parent>
<groupId>org.sonarsource.groovy</groupId>
<artifactId>groovy</artifactId>
<version>1.6-RC5</version>
<version>1.6-RC6</version>
</parent>

<artifactId>groovy-jacoco-previous</artifactId>
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@

<groupId>org.sonarsource.groovy</groupId>
<artifactId>groovy</artifactId>
<version>1.6-RC5</version>
<version>1.6-RC6</version>
<packaging>pom</packaging>

<name>Sonar Groovy</name>
2 changes: 1 addition & 1 deletion sonar-groovy-plugin/pom.xml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
<parent>
<groupId>org.sonarsource.groovy</groupId>
<artifactId>groovy</artifactId>
<version>1.6-RC5</version>
<version>1.6-RC6</version>
</parent>

<artifactId>sonar-groovy-plugin</artifactId>
Original file line number Diff line number Diff line change
@@ -951,17 +951,17 @@
<!--<key>org.codenarc.rule.naming.AbstractClassNameRule.fixed</key>-->
<!--<priority>MINOR</priority>-->
<!--</rule>-->
<rule>
<repositoryKey>grvy</repositoryKey>
<key>org.codenarc.rule.naming.ClassNameRule</key>
<priority>MINOR</priority>
<parameters>
<parameter>
<key>doNotApplyToClassNames</key>
<value>([A-Z]\\w*\\$?)*</value>
</parameter>
</parameters>
</rule>
<!--<rule>-->
<!--<repositoryKey>grvy</repositoryKey>-->
<!--<key>org.codenarc.rule.naming.ClassNameRule</key>-->
<!--<priority>MINOR</priority>-->
<!--<parameters>-->
<!--<parameter>-->
<!--<key>doNotApplyToClassNames</key>-->
<!--<value>([A-Z]\w*\$?)*</value>-->
<!--</parameter>-->
<!--</parameters>-->
<!--</rule>-->
<rule>
<repositoryKey>grvy</repositoryKey>
<key>org.codenarc.rule.naming.FieldNameRule.fixed</key>
@@ -991,32 +991,32 @@
<!--<key>org.codenarc.rule.naming.InterfaceNameRule.fixed</key>-->
<!--<priority>MINOR</priority>-->
<!--</rule>-->
<rule>
<repositoryKey>grvy</repositoryKey>
<key>org.codenarc.rule.naming.MethodNameRule.fixed</key>
<priority>MINOR</priority>
<parameters>
<parameter>
<key>doNotApplyToClassNames</key>
<value>*Spec</value>
</parameter>
<parameter>
<key>regex</key>
<value>[a-z]\\w*</value>
</parameter>
</parameters>
</rule>
<rule>
<repositoryKey>grvy</repositoryKey>
<key>org.codenarc.rule.naming.PackageNameRule</key>
<priority>MINOR</priority>
<parameters>
<parameter>
<key>regex</key>
<value>[a-z]+[a-z0-9]*(\\.[a-z0-9]+)*</value>
</parameter>
</parameters>
</rule>
<!--<rule>-->
<!--<repositoryKey>grvy</repositoryKey>-->
<!--<key>org.codenarc.rule.naming.MethodNameRule.fixed</key>-->
<!--<priority>MINOR</priority>-->
<!--<parameters>-->
<!--<parameter>-->
<!--<key>doNotApplyToClassNames</key>-->
<!--<value>*Spec</value>-->
<!--</parameter>-->
<!--<parameter>-->
<!--<key>regex</key>-->
<!--<value>[a-z]\w*</value>-->
<!--</parameter>-->
<!--</parameters>-->
<!--</rule>-->
<!--<rule>-->
<!--<repositoryKey>grvy</repositoryKey>-->
<!--<key>org.codenarc.rule.naming.PackageNameRule</key>-->
<!--<priority>MINOR</priority>-->
<!--<parameters>-->
<!--<parameter>-->
<!--<key>regex</key>-->
<!--<value>[a-z]+[a-z0-9]*(\.[a-z0-9]+)*</value>-->
<!--</parameter>-->
<!--</parameters>-->
<!--</rule>-->
<rule>
<repositoryKey>grvy</repositoryKey>
<key>org.codenarc.rule.naming.ParameterNameRule.fixed</key>
@@ -1595,11 +1595,11 @@
<key>org.codenarc.rule.formatting.SpaceAroundClosureArrowRule</key>
<priority>MAJOR</priority>
</rule>
<rule>
<repositoryKey>grvy</repositoryKey>
<key>org.codenarc.rule.formatting.SpaceAroundMapEntryColonRule</key>
<priority>MAJOR</priority>
</rule>
<!--<rule>-->
<!--<repositoryKey>grvy</repositoryKey>-->
<!--<key>org.codenarc.rule.formatting.SpaceAroundMapEntryColonRule</key>-->
<!--<priority>MAJOR</priority>-->
<!--</rule>-->
<rule>
<repositoryKey>grvy</repositoryKey>
<key>org.codenarc.rule.formatting.ClosureStatementOnOpeningLineOfMultipleLineClosureRule</key>