org.sonar.api.checks
Class NoSonarFilter

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

public class NoSonarFilter
extends Object
implements ViolationFilter

Since:
2.1

Constructor Summary
NoSonarFilter()
           
 
Method Summary
 void addResource(Resource resource, Set<Integer> noSonarLines)
           
 boolean isIgnored(Violation violation)
          Return true if the violation must be ignored, else it's saved into database.
 
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

addResource

public void addResource(Resource resource,
                        Set<Integer> noSonarLines)

isIgnored

public boolean isIgnored(Violation violation)
Description copied from interface: ViolationFilter
Return true if the violation must be ignored, else it's saved into database.

Specified by:
isIgnored in interface ViolationFilter


Copyright © 2009-2012 SonarSource. All Rights Reserved.