@Test public void configurations() { FunctionNameCheck check = new FunctionNameCheck(); String defaultConfigAsString = new Gson().toJson(check.configurations()); assertThat(defaultConfigAsString).isEqualTo("[{\"format\":\"^[_a-z][a-zA-Z0-9]*$\"}]"); check.format = "^[a-zA-Z0-9]*$"; String customConfigAsString = new Gson().toJson(check.configurations()); assertThat(customConfigAsString).isEqualTo("[{\"format\":\"^[a-zA-Z0-9]*$\"}]"); }
@Override public List<Object> configurations() { return Collections.singletonList(new FormatRuleProperty(format)); }
FunctionNameCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Collections.singletonList(new FormatRuleProperty(format)); } }
FunctionNameCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Collections.singletonList(new FormatRuleProperty(format)); }  }
FunctionNameCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Collections.singletonList(new FormatRuleProperty(format)); }  @Override List<Object> configurations(); @Override String eslintKey(); }
FunctionNameCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Collections.singletonList(new FormatRuleProperty(format)); }  @Override List<Object> configurations(); @Override String eslintKey(); static final String DEFAULT; @RuleProperty(
    key = "format",
    description = "Regular expression used to check the function names against.",
    defaultValue = "" + DEFAULT)
  public String format; }