d34c92fc7207eac391d9440d46e4719cc4b8e90b
[JavaForFun] /
1 package de.example.plugins.custom.java;
2
3 import org.sonar.api.batch.sensor.Sensor;
4 import org.sonar.api.batch.sensor.SensorContext;
5 import org.sonar.api.batch.sensor.SensorDescriptor;
6 import org.sonar.plugins.java.Java;
7
8 public class CustomSensor implements Sensor {
9
10         @Override
11         public void describe(SensorDescriptor descriptor) {
12             descriptor.onlyOnLanguage(Java.KEY);
13             descriptor.name("Custom Sensor");
14         }
15
16         @Override
17         public void execute(SensorContext context) {
18                 
19         }
20
21 }