public class CpdParser extends AbstractDryParser<Duplication>
| Constructor and Description |
|---|
CpdParser()
Creates a new instance of
CpdParser. |
CpdParser(int highThreshold,
int normalThreshold)
Creates a new instance of
CpdParser. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureParser(org.apache.commons.digester3.Digester digester)
Configures the Digester parser.
|
protected Report |
convertDuplicationsToIssues(List<Duplication> duplications)
Converts the parsed duplications from the original format to an
Report instance. |
getPriority, parseaccepts, isXmlFilepublic CpdParser(int highThreshold,
int normalThreshold)
CpdParser.highThreshold - minimum number of duplicate lines for high priority warningsnormalThreshold - minimum number of duplicate lines for normal priority warningspublic CpdParser()
CpdParser. The highThreshold is set to 50, the normalThreshold
is set to 25.protected void configureParser(org.apache.commons.digester3.Digester digester)
AbstractDryParserconfigureParser in class AbstractDryParser<Duplication>digester - the parser to configureprotected Report convertDuplicationsToIssues(List<Duplication> duplications)
AbstractDryParserReport instance.convertDuplicationsToIssues in class AbstractDryParser<Duplication>duplications - the parsed warningsCopyright © 2018. All rights reserved.