1 package de.example.plugins.custom.java;
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;
8 public class CustomSensor implements Sensor {
11 public void describe(SensorDescriptor descriptor) {
12 descriptor.onlyOnLanguage(Java.KEY);
13 descriptor.name("Custom Sensor");
17 public void execute(SensorContext context) {