CognitiveComplexityFunctionCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Collections.singletonList(threshold); }  @Override String eslintKey(); @Override List<Object> configurations();  }
@Test public void testConfig() { CognitiveComplexityFunctionCheck check = new CognitiveComplexityFunctionCheck(); assertThat(check.configurations()).containsExactly(15); check.threshold = 42; assertThat(check.configurations()).containsExactly(42); }