summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorTorsten Marek <tmarek@google.com>2013-06-17 19:57:05 +0200
committerTorsten Marek <tmarek@google.com>2013-06-17 19:57:05 +0200
commitad7b0027ce59c7091a3dc0c45c184c265e825521 (patch)
tree329254262587f366a75ccc7e4bad825a45bf96ec /utils.py
parentba4599a918a35414061021a46dc0eb0e0dd59cc7 (diff)
downloadpylint-ad7b0027ce59c7091a3dc0c45c184c265e825521.tar.gz
Extend the line length check.
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index b48717d..86b0417 100644
--- a/utils.py
+++ b/utils.py
@@ -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'