SonarQube custom plugins, little improvement
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Tue, 23 Aug 2016 00:47:38 +0000 (02:47 +0200)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Tue, 23 Aug 2016 00:47:38 +0000 (02:47 +0200)
Sonar/Plugins/sonar-custom-java-plugin/pom.xml
Sonar/Plugins/sonar-custom-javascript-plugin/src/main/java/de/example/plugins/custom/javascript/CustomRulesDefinition.java

index 05a04de..48fb547 100644 (file)
@@ -19,8 +19,8 @@
     <sonar.apiVersion>5.6.1</sonar.apiVersion>
     <java.plugin.version>4.0</java.plugin.version>
     <jdk.min.version>1.8</jdk.min.version>
-        <maven.javadoc.version>2.10.4</maven.javadoc.version>
-        <maven.source.version>3.0.1</maven.source.version>
+       <maven.javadoc.version>2.10.4</maven.javadoc.version>
+       <maven.source.version>3.0.1</maven.source.version>
     <!-- Be careful these two paths must match the ones configured in SONARQUBE JaCoCo plugin -->
     <jacoco.it.execution.data.file>${project.basedir}/target/jacoco-it.exec</jacoco.it.execution.data.file>
     <jacoco.ut.execution.data.file>${project.basedir}/target/jacoco.exec</jacoco.ut.execution.data.file>
index bc0c573..172b4cf 100644 (file)
@@ -143,11 +143,11 @@ public class CustomRulesDefinition extends CustomJavaScriptRulesDefinition {
   }
 
   private static class Remediation {
-    String func;
-    String constantCost;
-    String linearDesc;
-    String linearOffset;
-    String linearFactor;
+    private String func;
+    private String constantCost;
+    private String linearDesc;
+    private String linearOffset;
+    private String linearFactor;
 
     public DebtRemediationFunction remediationFunction(DebtRemediationFunctions drf) {
       if(func.startsWith("Constant")) {