@Test public void custom_configuration() { LineLengthCheck check = new LineLengthCheck(); check.maximumLineLength = 120; expectedConfigurationsMap.put("tabWidth", 1); expectedConfigurationsMap.put("code", 120); assertThat(check.configurations()).containsExactly(expectedConfigurationsMap); }
@Override public List<Object> configurations() { Map<String, Object> configurationsMap = new HashMap<>(); configurationsMap.put("code", maximumLineLength); configurationsMap.put("tabWidth", 1); return Collections.singletonList(configurationsMap); }
LineLengthCheck implements EslintBasedCheck { @Override public List<Object> configurations() { Map<String, Object> configurationsMap = new HashMap<>(); configurationsMap.put("code", maximumLineLength); configurationsMap.put("tabWidth", 1); return Collections.singletonList(configurationsMap); } }
LineLengthCheck implements EslintBasedCheck { @Override public List<Object> configurations() { Map<String, Object> configurationsMap = new HashMap<>(); configurationsMap.put("code", maximumLineLength); configurationsMap.put("tabWidth", 1); return Collections.singletonList(configurationsMap); }  }
LineLengthCheck implements EslintBasedCheck { @Override public List<Object> configurations() { Map<String, Object> configurationsMap = new HashMap<>(); configurationsMap.put("code", maximumLineLength); configurationsMap.put("tabWidth", 1); return Collections.singletonList(configurationsMap); }  @Override List<Object> configurations(); @Override String eslintKey(); }
LineLengthCheck implements EslintBasedCheck { @Override public List<Object> configurations() { Map<String, Object> configurationsMap = new HashMap<>(); configurationsMap.put("code", maximumLineLength); configurationsMap.put("tabWidth", 1); return Collections.singletonList(configurationsMap); }  @Override List<Object> configurations(); @Override String eslintKey(); @RuleProperty(
    key = "maximumLineLength",
    description = "The maximum authorized line length.",
    defaultValue = "" + DEFAULT_MAXIMUM_LINE_LENGTH)
  public int maximumLineLength; }