From de048d4691d379ce08320a13832fcc454f678e02 Mon Sep 17 00:00:00 2001 From: vauhochzett Date: Thu, 5 Apr 2018 17:31:11 +0200 Subject: [PATCH 1/2] Rewords comment --- pylinter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylinter.py b/pylinter.py index 6f3f23e..fb53e37 100755 --- a/pylinter.py +++ b/pylinter.py @@ -525,8 +525,8 @@ def process_errors(self, lines, errlines): view_id = self.view.id() PYLINTER_ERRORS[view_id] = {"visible": True} - # if pylint raised any exceptions, propogate those to the user, for - # instance, trying to disable a messaage id that does not exist + # If pylint raised any exceptions, propogate those to the user. + # E. g. trying to disable a message id that does not exist. if len(errlines) > 1: err = errlines[-2] if not err.startswith("No config file found"): From ed5f5b4606e2fd4a1bdf2f3a1b81e387233fad0c Mon Sep 17 00:00:00 2001 From: vauhochzett Date: Thu, 5 Apr 2018 17:33:48 +0200 Subject: [PATCH 2/2] Adds 'Using config file' as allowed pylint message --- pylinter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylinter.py b/pylinter.py index fb53e37..ffa9459 100755 --- a/pylinter.py +++ b/pylinter.py @@ -529,7 +529,8 @@ def process_errors(self, lines, errlines): # E. g. trying to disable a message id that does not exist. if len(errlines) > 1: err = errlines[-2] - if not err.startswith("No config file found"): + if not (err.startswith("No config file found") + or err.startswith("Using config file")): sublime.error_message("Fatal pylint error:\n%s" % (errlines[-2])) for line in lines: