From 5e51c1a447f0c0f089874a3a49073e2ed73a34e5 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Rofes Date: Mon, 25 Apr 2016 16:53:59 +0200 Subject: [PATCH] Set severity of Pylint info messages to "Low" instead of "Medium". Fixes issue #49 --- .../hudson/plugins/violations/types/pylint/PyLintParser.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/hudson/plugins/violations/types/pylint/PyLintParser.java b/src/main/java/hudson/plugins/violations/types/pylint/PyLintParser.java index cfe0304..156d60f 100644 --- a/src/main/java/hudson/plugins/violations/types/pylint/PyLintParser.java +++ b/src/main/java/hudson/plugins/violations/types/pylint/PyLintParser.java @@ -131,6 +131,7 @@ PyLintViolation getPyLintViolation(String line) { * *
      * The different message types are:
+     * (I) information, e.g. if some violations have been locally disabled
      * (C) convention, for programming standard violation
      * (R) refactor, for bad code smell
      * (W) warning, for python specific problems
@@ -146,6 +147,7 @@ PyLintViolation getPyLintViolation(String line) {
     private void setServerityLevel(Violation violation, String messageType) {
 
         switch (messageType.charAt(0)) {
+        case 'I':
         case 'C':
             violation.setSeverity(Severity.LOW);
             violation.setSeverityLevel(Severity.LOW_VALUE);