@Test public void test_description() { DefaultSensorDescriptor descriptor = new DefaultSensorDescriptor(); getSensor("S2068").describe(descriptor); assertThat(descriptor.name()).isEqualTo("Code Quality and Security for Go"); assertThat(descriptor.languages()).containsOnly("go"); }
@Override public void describe(SensorDescriptor descriptor) { descriptor.onlyOnLanguage(GoLanguage.KEY) .name("Code Quality and Security for Go"); }
GoSensor extends SlangSensor { @Override public void describe(SensorDescriptor descriptor) { descriptor.onlyOnLanguage(GoLanguage.KEY) .name("Code Quality and Security for Go"); } }
GoSensor extends SlangSensor { @Override public void describe(SensorDescriptor descriptor) { descriptor.onlyOnLanguage(GoLanguage.KEY) .name("Code Quality and Security for Go"); } GoSensor(CheckFactory checkFactory, FileLinesContextFactory fileLinesContextFactory, NoSonarFilter noSonarFilter, GoLanguage language); }
GoSensor extends SlangSensor { @Override public void describe(SensorDescriptor descriptor) { descriptor.onlyOnLanguage(GoLanguage.KEY) .name("Code Quality and Security for Go"); } GoSensor(CheckFactory checkFactory, FileLinesContextFactory fileLinesContextFactory, NoSonarFilter noSonarFilter, GoLanguage language); @Override void describe(SensorDescriptor descriptor); }
GoSensor extends SlangSensor { @Override public void describe(SensorDescriptor descriptor) { descriptor.onlyOnLanguage(GoLanguage.KEY) .name("Code Quality and Security for Go"); } GoSensor(CheckFactory checkFactory, FileLinesContextFactory fileLinesContextFactory, NoSonarFilter noSonarFilter, GoLanguage language); @Override void describe(SensorDescriptor descriptor);  }