diff options
author | Torsten Marek <tmarek@google.com> | 2013-06-17 19:57:05 +0200 |
---|---|---|
committer | Torsten Marek <tmarek@google.com> | 2013-06-17 19:57:05 +0200 |
commit | ad7b0027ce59c7091a3dc0c45c184c265e825521 (patch) | |
tree | 329254262587f366a75ccc7e4bad825a45bf96ec /utils.py | |
parent | ba4599a918a35414061021a46dc0eb0e0dd59cc7 (diff) | |
download | pylint-ad7b0027ce59c7091a3dc0c45c184c265e825521.tar.gz |
Extend the line length check.
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -17,6 +17,7 @@ main pylint class """ +import re import sys import tokenize from warnings import warn @@ -62,6 +63,7 @@ _MSG_ORDER = 'EWRCIF' MSG_STATE_SCOPE_CONFIG = 0 MSG_STATE_SCOPE_MODULE = 1 +OPTION_RGX = re.compile(r'\s*#.*\bpylint:(.*)') # The line/node distinction does not apply to fatal errors and reports. _SCOPE_EXEMPT = 'FR' |