@Test public void external_repositories_not_supported() { RulesDefinition.Context context = new RulesDefinition.Context(); RuboCopRulesDefinition rulesDefinition = new RuboCopRulesDefinition(false); rulesDefinition.define(context); assertThat(context.repositories()).isEmpty(); }
@Override public void define(Context context) { if (externalIssuesSupported) { RULE_LOADER.createExternalRuleRepository(context); } }
RuboCopRulesDefinition implements RulesDefinition { @Override public void define(Context context) { if (externalIssuesSupported) { RULE_LOADER.createExternalRuleRepository(context); } } }
RuboCopRulesDefinition implements RulesDefinition { @Override public void define(Context context) { if (externalIssuesSupported) { RULE_LOADER.createExternalRuleRepository(context); } } RuboCopRulesDefinition(boolean externalIssuesSupported); }
RuboCopRulesDefinition implements RulesDefinition { @Override public void define(Context context) { if (externalIssuesSupported) { RULE_LOADER.createExternalRuleRepository(context); } } RuboCopRulesDefinition(boolean externalIssuesSupported); @Override void define(Context context); }
RuboCopRulesDefinition implements RulesDefinition { @Override public void define(Context context) { if (externalIssuesSupported) { RULE_LOADER.createExternalRuleRepository(context); } } RuboCopRulesDefinition(boolean externalIssuesSupported); @Override void define(Context context);  }