Package se.bjurr.violations.lib.parsers
Class Flake8Parser
- java.lang.Object
-
- se.bjurr.violations.lib.parsers.Flake8Parser
-
- All Implemented Interfaces:
ViolationsParser
public class Flake8Parser extends java.lang.Object implements ViolationsParser
PyLint. Format used by Flake8.
msg-template(pylint)='{path1}:{line2}: [{severity4}{code5}] {msg6}' msg-template(default)='{path1}:{line2}:{column7}: {severity8}{code9} {msg10}'
-
-
Constructor Summary
Constructors Constructor Description Flake8Parser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<Violation>parseReportOutput(java.lang.String string, ViolationsLogger violationsLogger)SEVERITYtoSeverity(java.lang.String severity)The different message types are: (C) convention, for programming standard violation (R) refactor, for bad code smell (W) warning, for python specific problems (E) error, for much probably bugs in the code (F) fatal, if an error occured which prevented pylint from doing further processing.
-
-
-
Method Detail
-
parseReportOutput
public java.util.Set<Violation> parseReportOutput(java.lang.String string, ViolationsLogger violationsLogger) throws java.lang.Exception
- Specified by:
parseReportOutputin interfaceViolationsParser- Throws:
java.lang.Exception
-
toSeverity
public SEVERITY toSeverity(java.lang.String severity)
The different message types are: (C) convention, for programming standard violation (R) refactor, for bad code smell (W) warning, for python specific problems (E) error, for much probably bugs in the code (F) fatal, if an error occured which prevented pylint from doing further processing.
-
-