| com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck com.puppycrawl.tools.checkstyle.checks.duplicates.StrictDuplicateCodeCheck
StrictDuplicateCodeCheck | final public class StrictDuplicateCodeCheck extends AbstractFileSetCheck (Code) | | Performs a line-by-line comparison of all code lines and reports
duplicate code if a sequence of lines differs only in
indentation. All import statements in Java code are ignored, any
other line - including javadoc, whitespace lines between methods,
etc. - is considered (which is why the check is called
strict).
author: Lars Kühne |
Field Summary | |
final static int | IGNORE |
Method Summary | |
public synchronized void | process(File[] aFiles) | public void | setBasedir(String aBasedir) | public void | setMin(int aMin) Sets the minimum number of lines that must be equivalent
before the check complains. |
IGNORE | final static int IGNORE(Code) | | the checksum value to use for lines that should be ignored
|
StrictDuplicateCodeCheck | public StrictDuplicateCodeCheck()(Code) | | Creates a new instance of this class.
|
process | public synchronized void process(File[] aFiles)(Code) | | |
setBasedir | public void setBasedir(String aBasedir)(Code) | | Parameters: aBasedir - the base directory to strip off in filenames |
setMin | public void setMin(int aMin)(Code) | | Sets the minimum number of lines that must be equivalent
before the check complains.
Parameters: aMin - the number of lines that must be equal beforetriggering a 'duplicate code' message. |
|
|