boolean accept(Issue issue, IssueFilterChain chain)
acceptmethod is called for each
Issuecreated during analysis, to check if it has to be persisted. Examples of use cases are:
//NOSONARcomments, semantic annotations)
chainparameter allows for fine control of the filtering logic: it is each filter's duty to either pass the issue to the next filter, by calling the
IssueFilterChain.accept(org.sonar.api.issue.Issue)method, or return directly if the issue has to be accepted or not
issue- the issue being filtered
chain- the rest of the filters
trueto accept the issue,
falseto reject it,
IssueFilterChain.accept(org.sonar.api.issue.Issue)to let the other filters decide.
Copyright © 2009–2017 SonarSource. All rights reserved.