sonar Java plugin: non required Sensor because we will be running whenever JavaSquidS...
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 21 Aug 2016 03:27:37 +0000 (05:27 +0200)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 21 Aug 2016 03:27:37 +0000 (05:27 +0200)
JavaSquidSensor calls CustomRulesCheckRegistrar

Sonar/Plugins/sonar-custom-java-plugin/src/main/java/de/example/plugins/custom/java/CustomSensor.java [deleted file]
Sonar/Plugins/sonar-custom-java-plugin/src/test/files/checks/ParameterCheck.java

diff --git a/Sonar/Plugins/sonar-custom-java-plugin/src/main/java/de/example/plugins/custom/java/CustomSensor.java b/Sonar/Plugins/sonar-custom-java-plugin/src/main/java/de/example/plugins/custom/java/CustomSensor.java
deleted file mode 100644 (file)
index a00c662..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-package de.example.plugins.custom.java;
-
-import org.sonar.api.batch.sensor.Sensor;
-import org.sonar.api.batch.sensor.SensorContext;
-import org.sonar.api.batch.sensor.SensorDescriptor;
-import org.sonar.plugins.java.Java;
-
-public class CustomSensor implements Sensor {
-
-       @Override
-       public void describe(SensorDescriptor descriptor) {
-           descriptor.onlyOnLanguage(Java.KEY);
-           descriptor.name("Custom Java Sensor");
-       }
-
-       @Override
-       public void execute(SensorContext context) {
-               
-       }
-
-}
index 488a749..8902379 100644 (file)
@@ -6,12 +6,12 @@ class MyClass {
        
        void foo2(int value) { }
        
-       // Noncompliant@+1 [[startColumn=6;endLine=+0;endColumn=10;effortToFix=4]] {{Never do that!}}
+       // Noncompliant@+1 [[startColumn=6;endLine=+0;endColumn=10;effortToFix=4]] {{Remove this method}}
        int foo3(int value) { return 0; }
        
        Object foo4(int value) { return null; }
        
-       // Noncompliant@+1 [[startColumn=10;endLine=+0;endColumn=14;effortToFix=4]] {{Never do that!}}
+       // Noncompliant@+1 [[startColumn=10;endLine=+0;endColumn=14;effortToFix=4]] {{Remove this method}}
        MyClass foo5(MyClass value) { return null; }
  
 }