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