@Test public void test_configuration() { TooManyLinesInFunctionCheck check = new TooManyLinesInFunctionCheck(); String defaultConfigAsString = new Gson().toJson(check.configurations()); assertThat(defaultConfigAsString).isEqualTo("[200]"); check.max = 42; String configAsString = new Gson().toJson(check.configurations()); assertThat(configAsString).isEqualTo("[42]"); }
@Override public List<Object> configurations() { return Collections.singletonList(max); }
TooManyLinesInFunctionCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Collections.singletonList(max); } }
TooManyLinesInFunctionCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Collections.singletonList(max); }  }
TooManyLinesInFunctionCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Collections.singletonList(max); }  @Override List<Object> configurations(); @Override String eslintKey(); }
TooManyLinesInFunctionCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Collections.singletonList(max); }  @Override List<Object> configurations(); @Override String eslintKey(); @RuleProperty(
    key = "max",
    description = "Maximum authorized lines in a function",
    defaultValue = "" + DEFAULT)
  public int max; }