hudson.plugins.violations.types.pylint
Class PyLintParser

java.lang.Object
  extended by hudson.plugins.violations.types.pylint.PyLintParser
All Implemented Interfaces:
ViolationsParser

public class PyLintParser
extends java.lang.Object
implements ViolationsParser

Parser for parsing PyLint reports. The parser only supports PyLint report that has the output format 'parseable'.

Author:
Erik Ramfelt

Constructor Summary
PyLintParser()
          Constructor - create the 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 PyLint line and adding a violation if regex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PyLintParser

public PyLintParser()
Constructor - create the pattern.

Method Detail

parse

public void parse(FullBuildModel model,
                  java.io.File projectPath,
                  java.lang.String fileName,
                  java.lang.String[] sourcePaths)
           throws java.io.IOException
Parse a violations file.

Specified by:
parse in interface ViolationsParser
Parameters:
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
Throws:
java.io.IOException - if there is an error.

parseLine

public void parseLine(FullBuildModel model,
                      java.lang.String line,
                      java.io.File projectPath)
Parses a PyLint line and adding a violation if regex

Parameters:
model - build model to add violations to
line - the line in the file.
projectPath - the path to use to resolve the file.


Copyright © 2004-2012. All Rights Reserved.