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
commitb5f41f97aa0c66da62f6c1d6521f91c350a9ab4b (patch)
tree8708be8af7764809c32eb6e6c4786deb613e9918 /utils.py
parent3b19d873f3ed0ea8aee3a1e2692e86aa86b74e03 (diff)
downloadpylint-git-b5f41f97aa0c66da62f6c1d6521f91c350a9ab4b.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 b48717dd5..86b0417ef 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'