Package net.sourceforge.pmd.cpd
Class CPDConfiguration
java.lang.Object
net.sourceforge.pmd.AbstractConfiguration
net.sourceforge.pmd.cpd.CPDConfiguration
- Author:
- Brian Remedios, Romain Pelisse - <[email protected]>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCheck that it is correct to use the given language with this configuration.intbooleanisHelp()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanDeprecated.This option will be removed.voidsetHelp(boolean help) voidsetIgnoreAnnotations(boolean ignoreAnnotations) voidsetIgnoreIdentifierAndLiteralSequences(boolean ignoreIdentifierAndLiteralSequences) voidsetIgnoreIdentifiers(boolean ignoreIdentifiers) voidsetIgnoreLiterals(boolean ignoreLiterals) voidsetIgnoreLiteralSequences(boolean ignoreLiteralSequences) voidsetIgnoreUsings(boolean ignoreUsings) voidsetMinimumTileSize(int minimumTileSize) voidsetNoSkipBlocks(boolean noSkipBlocks) voidsetRendererName(String rendererName) voidsetSkipBlocksPattern(String skipBlocksPattern) voidsetSkipDuplicates(boolean skipDuplicates) voidsetSkipLexicalErrors(boolean skipLexicalErrors) Deprecated.This option will be removed.voidsetSourceEncoding(Charset sourceEncoding) Set the character encoding of source files.Methods inherited from class net.sourceforge.pmd.AbstractConfiguration
addInputPath, addRelativizeRoot, addRelativizeRoots, collectFilesRecursively, collectFilesRecursively, getExcludes, getForceLanguageVersion, getIgnoreFile, getInputFile, getInputPathList, getLanguageProperties, getLanguageRegistry, getLanguageVersionDiscoverer, getLanguageVersionOfFile, getRelativizeRoots, getReporter, getReportFilePath, getSourceEncoding, getUri, isFailOnError, isFailOnViolation, isForceLanguageVersion, setDefaultLanguageVersion, setDefaultLanguageVersions, setExcludes, setFailOnError, setFailOnViolation, setForceLanguageVersion, setIgnoreFilePath, setInputFilePath, setInputPathList, setInputUri, setOnlyRecognizeLanguage, setReporter, setReportFile
-
Field Details
-
DEFAULT_LANGUAGE
- See Also:
-
DEFAULT_RENDERER
- See Also:
-
-
Constructor Details
-
CPDConfiguration
public CPDConfiguration() -
CPDConfiguration
-
-
Method Details
-
setSourceEncoding
Description copied from class:AbstractConfigurationSet the character encoding of source files.- Overrides:
setSourceEncodingin classAbstractConfiguration- Parameters:
sourceEncoding- The character encoding.
-
getRenderers
-
getMinimumTileSize
public int getMinimumTileSize() -
setMinimumTileSize
public void setMinimumTileSize(int minimumTileSize) -
isSkipDuplicates
public boolean isSkipDuplicates() -
setSkipDuplicates
public void setSkipDuplicates(boolean skipDuplicates) -
getRendererName
-
setRendererName
-
getCPDReportRenderer
-
isIgnoreLiterals
public boolean isIgnoreLiterals() -
setIgnoreLiterals
public void setIgnoreLiterals(boolean ignoreLiterals) -
isIgnoreIdentifiers
public boolean isIgnoreIdentifiers() -
setIgnoreIdentifiers
public void setIgnoreIdentifiers(boolean ignoreIdentifiers) -
isIgnoreAnnotations
public boolean isIgnoreAnnotations() -
setIgnoreAnnotations
public void setIgnoreAnnotations(boolean ignoreAnnotations) -
isIgnoreUsings
public boolean isIgnoreUsings() -
setIgnoreUsings
public void setIgnoreUsings(boolean ignoreUsings) -
isIgnoreLiteralSequences
public boolean isIgnoreLiteralSequences() -
setIgnoreLiteralSequences
public void setIgnoreLiteralSequences(boolean ignoreLiteralSequences) -
isIgnoreIdentifierAndLiteralSequences
public boolean isIgnoreIdentifierAndLiteralSequences() -
setIgnoreIdentifierAndLiteralSequences
public void setIgnoreIdentifierAndLiteralSequences(boolean ignoreIdentifierAndLiteralSequences) -
isSkipLexicalErrors
Deprecated.This option will be removed. WithAbstractConfiguration.isFailOnError(), you can control whether lexical errors should fail the build or not. -
setSkipLexicalErrors
Deprecated.This option will be removed. WithAbstractConfiguration.setFailOnError(boolean), you can control whether lexical errors should fail the build or not. -
isHelp
public boolean isHelp() -
setHelp
public void setHelp(boolean help) -
isNoSkipBlocks
public boolean isNoSkipBlocks() -
setNoSkipBlocks
public void setNoSkipBlocks(boolean noSkipBlocks) -
getSkipBlocksPattern
-
setSkipBlocksPattern
-
checkLanguageIsAcceptable
Description copied from class:AbstractConfigurationCheck that it is correct to use the given language with this configuration.- Overrides:
checkLanguageIsAcceptablein classAbstractConfiguration- Throws:
UnsupportedOperationException- if the language isn't supported.
-