@Test public void should_import_profile_with_xpath_rule() { Reader reader = read("/org/sonar/plugins/pmd/export_xpath_rules.xml"); RulesProfile profile = importer.importProfile(reader, messages); assertThat(profile.getActiveRules()).isEmpty(); assertThat(messages.hasWarnings()).isTrue(); }
@Override public RulesProfile importProfile(Reader pmdConfigurationFile, ValidationMessages messages) { PmdRuleset pmdRuleset = parsePmdRuleset(pmdConfigurationFile, messages); return createRuleProfile(pmdRuleset, messages); }
PmdProfileImporter extends ProfileImporter { @Override public RulesProfile importProfile(Reader pmdConfigurationFile, ValidationMessages messages) { PmdRuleset pmdRuleset = parsePmdRuleset(pmdConfigurationFile, messages); return createRuleProfile(pmdRuleset, messages); } }
PmdProfileImporter extends ProfileImporter { @Override public RulesProfile importProfile(Reader pmdConfigurationFile, ValidationMessages messages) { PmdRuleset pmdRuleset = parsePmdRuleset(pmdConfigurationFile, messages); return createRuleProfile(pmdRuleset, messages); } PmdProfileImporter(RuleFinder ruleFinder); }
PmdProfileImporter extends ProfileImporter { @Override public RulesProfile importProfile(Reader pmdConfigurationFile, ValidationMessages messages) { PmdRuleset pmdRuleset = parsePmdRuleset(pmdConfigurationFile, messages); return createRuleProfile(pmdRuleset, messages); } PmdProfileImporter(RuleFinder ruleFinder); @Override RulesProfile importProfile(Reader pmdConfigurationFile, ValidationMessages messages); }
PmdProfileImporter extends ProfileImporter { @Override public RulesProfile importProfile(Reader pmdConfigurationFile, ValidationMessages messages) { PmdRuleset pmdRuleset = parsePmdRuleset(pmdConfigurationFile, messages); return createRuleProfile(pmdRuleset, messages); } PmdProfileImporter(RuleFinder ruleFinder); @Override RulesProfile importProfile(Reader pmdConfigurationFile, ValidationMessages messages);  }