@Test public void testDescriptor() { DefaultSensorDescriptor descriptor = new DefaultSensorDescriptor(); sensor.describe(descriptor); assertThat(descriptor.name()).isEqualTo("Lua"); assertThat(descriptor.languages()).containsOnly("lua"); }
@Override public void describe(SensorDescriptor descriptor) { descriptor .name("Lua") .onlyOnFileType(InputFile.Type.MAIN) .onlyOnLanguage(Lua.KEY); }
LuaSquidSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .name("Lua") .onlyOnFileType(InputFile.Type.MAIN) .onlyOnLanguage(Lua.KEY); } }
LuaSquidSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .name("Lua") .onlyOnFileType(InputFile.Type.MAIN) .onlyOnLanguage(Lua.KEY); } LuaSquidSensor(CheckFactory checkFactory, FileLinesContextFactory fileLinesContextFactory); }
LuaSquidSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .name("Lua") .onlyOnFileType(InputFile.Type.MAIN) .onlyOnLanguage(Lua.KEY); } LuaSquidSensor(CheckFactory checkFactory, FileLinesContextFactory fileLinesContextFactory); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); }
LuaSquidSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .name("Lua") .onlyOnFileType(InputFile.Type.MAIN) .onlyOnLanguage(Lua.KEY); } LuaSquidSensor(CheckFactory checkFactory, FileLinesContextFactory fileLinesContextFactory); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context);  }