com.twitter.common.checkstyle
Class SplitSuppressionFilter

java.lang.Object
  extended by com.puppycrawl.tools.checkstyle.api.AutomaticBean
      extended by com.twitter.common.checkstyle.SplitSuppressionFilter
All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.Configurable, com.puppycrawl.tools.checkstyle.api.Contextualizable, com.puppycrawl.tools.checkstyle.api.Filter

public class SplitSuppressionFilter
extends com.puppycrawl.tools.checkstyle.api.AutomaticBean
implements com.puppycrawl.tools.checkstyle.api.Filter

This filter accepts AuditEvents according to file, check, line, and column, as specified in one or more suppression files.


Constructor Summary
SplitSuppressionFilter()
           
 
Method Summary
 boolean accept(com.puppycrawl.tools.checkstyle.api.AuditEvent auditEvent)
           
 void setFiles(String[] files)
          Loads the suppressions defined in the list of files given.
 
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplitSuppressionFilter

public SplitSuppressionFilter()
Method Detail

setFiles

public void setFiles(String[] files)
              throws com.puppycrawl.tools.checkstyle.api.CheckstyleException
Loads the suppressions defined in the list of files given.

Parameters:
files - Names of the suppressions files.
Throws:
com.puppycrawl.tools.checkstyle.api.CheckstyleException - if there is an error loading any of the suppression files.

accept

public boolean accept(com.puppycrawl.tools.checkstyle.api.AuditEvent auditEvent)
Specified by:
accept in interface com.puppycrawl.tools.checkstyle.api.Filter