@Test public void test() { ExpressionComplexityCheck check = new ExpressionComplexityCheck(); String defaultConfigAsString = new Gson().toJson(check.configurations()); assertThat(defaultConfigAsString).isEqualTo("[3]"); check.max = 10; String configAsString = new Gson().toJson(check.configurations()); assertThat(configAsString).isEqualTo("[10]"); }
@Override public List<Object> configurations() { return Collections.singletonList(max); }
ExpressionComplexityCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Collections.singletonList(max); } }
ExpressionComplexityCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Collections.singletonList(max); }  }
ExpressionComplexityCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Collections.singletonList(max); }  @Override List<Object> configurations(); @Override String eslintKey(); }
ExpressionComplexityCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Collections.singletonList(max); }  @Override List<Object> configurations(); @Override String eslintKey(); @RuleProperty(description = "Maximum number of allowed conditional operators in an expression", defaultValue = "" + DEFAULT)
  public int max; }