org.sonar.api.issue
Class NoSonarFilter

java.lang.Object
  extended by org.sonar.api.issue.NoSonarFilter
All Implemented Interfaces:
BatchComponent, BatchExtension, Extension, IssueFilter

public class NoSonarFilter
extends Object
implements IssueFilter

Issue filter used to ignore issues created on lines commented with the tag "NOSONAR".

Plugins, via BatchExtensions, must feed this filter by registering the lines that contain "NOSONAR". Note that filters are disabled for the issues reported by end-users from UI or web services.

Since:
3.6

Constructor Summary
NoSonarFilter()
           
 
Method Summary
 boolean accept(Issue issue)
           
 NoSonarFilter addComponent(String componentKey, Set<Integer> noSonarLines)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoSonarFilter

public NoSonarFilter()
Method Detail

addComponent

public NoSonarFilter addComponent(String componentKey,
                                  Set<Integer> noSonarLines)

accept

public boolean accept(Issue issue)
Specified by:
accept in interface IssueFilter


Copyright © 2009-2013 SonarSource. All Rights Reserved.