|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hudson.plugins.violations.types.perlcritic.PerlCriticParser
public class PerlCriticParser
Parser for parsing Perl::Critic reports. The parser supports stock Perl::Critic output, without output-modifying option flags (e.g.: `perlcritic --brutal .`). Also adapted from the pylint parser
Constructor Summary | |
---|---|
PerlCriticParser()
Constructor - compile the regex to a Pattern. |
Method Summary | |
---|---|
void |
parse(FullBuildModel model,
java.io.File projectPath,
java.lang.String fileName,
java.lang.String[] sourcePaths)
Parse a violations file. |
void |
parseLine(FullBuildModel model,
java.lang.String line,
java.io.File projectPath)
Parses a Perl::Critic line and adds a Violation if this.pattern matches |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PerlCriticParser()
Method Detail |
---|
public void parse(FullBuildModel model, java.io.File projectPath, java.lang.String fileName, java.lang.String[] sourcePaths) throws java.io.IOException
parse
in interface ViolationsParser
model
- the model to store the violations in.projectPath
- the project path used for resolving paths.fileName
- the name of the violations file to parse
(relative to the projectPath).sourcePaths
- a list of source paths to resolve classes against
java.io.IOException
- if there is an error.public void parseLine(FullBuildModel model, java.lang.String line, java.io.File projectPath)
model
- build model to which violations should be addedline
- the line in the source file on which violation occurredprojectPath
- the project path to use to resolve the source file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |