if (!applySuppressions || !project.getSuppressionFilter().match(bugInstance)) { bugInstance.writeXML(xmlOutput, this, withMessages);
if (!reporter.isApplySuppressions() || !bugCollection.getProject().getSuppressionFilter().match(warning)) { int rank = warning.getBugRank(); BugPattern pattern = warning.getBugPattern();
@Test public void readXML() throws Exception { SourceMatcher sm = new SourceMatcher(fileName); String xml = writeXMLAndGetStringOutput(sm, false); xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + "\n<FindBugsFilter>" + "\n<Match>" + "\n" + xml + "\n</Match>" + "\n</FindBugsFilter>\n"; Filter filter = new Filter(new StringInputStream(xml)); assertFalse(filter.match(bug)); bug.addClass("bla", fileName); assertTrue(filter.match(bug)); }
if (applySuppressionSpecified && applySuppression && suppressionFilter.match(bug)) { return false;
boolean shouldDisplayIssue(BugInstance b) { Project project = getProject(); Filter suppressionFilter = project.getSuppressionFilter(); if (null == getBugCollection() || suppressionFilter.match(b)) { return false; } return viewFilter.show(b); }
private boolean shouldDisplayIssueIgnoringPackagePrefixes(BugInstance b) { Project project = getProject(); Filter suppressionFilter = project.getSuppressionFilter(); if (null == getBugCollection() || suppressionFilter.match(b)) { return false; } return viewFilter.showIgnoringPackagePrefixes(b); }
if (!applySuppressions || !project.getSuppressionFilter().match(bugInstance)) { bugInstance.writeXML(xmlOutput, this, withMessages);
if (!reporter.isApplySuppressions() || !bugCollection.getProject().getSuppressionFilter().match(warning)) { int rank = warning.getBugRank(); BugPattern pattern = warning.getBugPattern();
if (!project.getSuppressionFilter().match(warning)) { int rank = BugRanker.findRank(warning); if (rank > BugRanker.VISIBLE_RANK_MAX) {
if (applySuppressionSpecified && applySuppression && suppressionFilter.match(bug)) { return false;