From 446d360b5c508720118305de54f46371c87bc911 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sat, 4 Sep 2021 22:44:13 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - README.rst - pylinter.py Fixes: - Should read `dissect` rather than `disect`. - Should read `separate` rather than `seperate`. - Should read `propagate` rather than `propogate`. - Should read `particularly` rather than `particulary`. - Should read `message` rather than `messaage`. - Should read `following` rather than `followig`. - Should read `errors` rather than `erros`. --- README.rst | 4 ++-- pylinter.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index ec51d69..875a0d2 100755 --- a/README.rst +++ b/README.rst @@ -72,7 +72,7 @@ Thanks to KristoforMaynard for the following additions: **2012-09-06** * Pylinter now allows for platform and/or host specific configuration to be - stored in a single configuration file. This is particulary useful for the + stored in a single configuration file. This is particularly useful for the ``pylint_path`` setting. Simply change a setting like @@ -102,7 +102,7 @@ Thanks to KristoforMaynard for the following additions: ``#pylint: disable=`` statements/comments. * Included wuub's error colouring. Either use the included ``MonokaiPylinter.tmTheme`` file, or have a look at it to see how you can - colour the different erros and warnings. + colour the different errors and warnings. diff --git a/pylinter.py b/pylinter.py index 6f3f23e..fa86aac 100755 --- a/pylinter.py +++ b/pylinter.py @@ -53,10 +53,10 @@ # Indicates if we're displaying info in the status line STATUS_ACTIVE = False -# The followig global values will be set by the `set_globals` function +# The following global values will be set by the `set_globals` function PYLINT_VERSION = None PYLINT_SETTINGS = None -# Regular expression to disect Pylint error messages +# Regular expression to dissect Pylint error messages P_PYLINT_ERROR = None # The default Pylint command will be stored in this variable. It will either be @@ -79,7 +79,7 @@ def plugin_loaded(): # Pylint version < 1.0 if PYLINT_VERSION[0] == 0: - # Regular expression to disect Pylint error messages + # Regular expression to dissect Pylint error messages P_PYLINT_ERROR = re.compile(r""" ^(?P.+?):(?P[0-9]+):\ # file name and line number \[(?P[a-z])(?P\d+) # message type and error number @@ -434,7 +434,7 @@ def is_enabled(self): class PylintThread(threading.Thread): - """ This class creates a seperate thread to run Pylint in """ + """ This class creates a separate thread to run Pylint in """ def __init__(self, view, pbin, ppath, cwd, lpath, lrc, ignore, disable_msgs, extra_pylint_args, plugins): @@ -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, propagate those to the user, for + # instance, 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"):