public class FindBugsParser extends Object implements hudson.plugins.analysis.core.AnnotationParser
| Constructor and Description |
|---|
FindBugsParser(boolean isRankActivated)
Creates a new instance of
FindBugsParser. |
FindBugsParser(boolean isRankActivated,
String excludePattern,
String includePattern)
Creates a new instance of
FindBugsParser. |
FindBugsParser(Collection<String> sourceFolders,
boolean isRankActivated,
String excludePattern,
String includePattern)
Creates a new instance of
FindBugsParser. |
| Modifier and Type | Method and Description |
|---|---|
Collection<hudson.plugins.analysis.util.model.FileAnnotation> |
parse(File file,
Collection<String> sources,
String moduleName)
Returns the parsed FindBugs analysis file.
|
Collection<hudson.plugins.analysis.util.model.FileAnnotation> |
parse(File file,
String moduleName) |
public FindBugsParser(boolean isRankActivated)
FindBugsParser.isRankActivated - determines whether to use the rank when evaluation the prioritypublic FindBugsParser(boolean isRankActivated,
String excludePattern,
String includePattern)
FindBugsParser.isRankActivated - determines whether to use the rank when evaluation the priorityexcludePattern - RegEx patterns of files to exclude from the reportincludePattern - RegEx patterns of files to include in the reportpublic FindBugsParser(Collection<String> sourceFolders, boolean isRankActivated, String excludePattern, String includePattern)
FindBugsParser.sourceFolders - a collection of folders to scan for source files. If empty, the source folders are guessed.isRankActivated - determines whether to use the rank when evaluation the priorityexcludePattern - RegEx patterns of files to exclude from the reportincludePattern - RegEx patterns of files to include in the reportpublic Collection<hudson.plugins.analysis.util.model.FileAnnotation> parse(File file, String moduleName) throws InvocationTargetException
parse in interface hudson.plugins.analysis.core.AnnotationParserInvocationTargetExceptionpublic Collection<hudson.plugins.analysis.util.model.FileAnnotation> parse(File file, Collection<String> sources, String moduleName) throws IOException, org.dom4j.DocumentException, SAXException
file - the FindBugs analysis filesources - a collection of folders to scan for source filesmoduleName - name of maven moduleIOException - if the file could not be parsedorg.dom4j.DocumentException - if the file could not be readSAXException - if the file could not be readCopyright © 2016–2018. All rights reserved.