HardcodedCredentialsCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Arrays.asList((Object[])credentialWords.split("\\s*,\\s*")); }  @Override List<Object> configurations(); @Override String eslintKey(); @RuleProperty(
    key = "credentialWords",
    description = "Comma separated list of words identifying potential credentials.",
    defaultValue = "" + DEFAULT)
  public String credentialWords; }
@Test public void configurations() { HardcodedCredentialsCheck check = new HardcodedCredentialsCheck(); assertThat(check.configurations()).containsExactly("password", "pwd", "passwd"); check.credentialWords = "foo, bar"; assertThat(check.configurations()).containsExactly("foo", "bar"); }