hudson.plugins.dry.parser
Class DuplicationParserRegistry
java.lang.Object
hudson.plugins.dry.parser.DuplicationParserRegistry
- All Implemented Interfaces:
- hudson.plugins.analysis.core.AnnotationParser, Serializable
public class DuplicationParserRegistry
- extends Object
- implements hudson.plugins.analysis.core.AnnotationParser
Registry for duplication parsers.
- Author:
- Ulli Hafner
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DuplicationParserRegistry
public DuplicationParserRegistry(int normalThreshold,
int highThreshold,
String defaultEncoding)
- Creates a new instance of
DuplicationParserRegistry.
- Parameters:
highThreshold - minimum number of duplicate lines for high priority warningsnormalThreshold - minimum number of duplicate lines for normal priority warningsdefaultEncoding - default encoding of the files
DuplicationParserRegistry
public DuplicationParserRegistry(int normalThreshold,
int highThreshold,
String workspacePath,
String defaultEncoding)
- Creates a new instance of
DuplicationParserRegistry.
- Parameters:
highThreshold - minimum number of duplicate lines for high priority warningsnormalThreshold - minimum number of duplicate lines for normal priority warningsworkspacePath - path to the workspace filesdefaultEncoding - default encoding of the files
parse
public Collection<hudson.plugins.analysis.util.model.FileAnnotation> parse(File file,
String moduleName)
throws InvocationTargetException
-
- Specified by:
parse in interface hudson.plugins.analysis.core.AnnotationParser
- Throws:
InvocationTargetException
Copyright © 2004-2013 Hudson. All Rights Reserved.