summaryrefslogtreecommitdiff
path: root/pylint/checkers/misc.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-04-24 16:27:59 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2018-04-24 16:27:59 +0200
commit74eba315afaf7f06654b13d19bd93fcb314b2a4d (patch)
tree0c50cf58b9c3a595de054f3c3c1bd0c531f8d08a /pylint/checkers/misc.py
parent96f4ca10cb787217064d2ee21b2209e2bcbde2f3 (diff)
downloadpylint-git-74eba315afaf7f06654b13d19bd93fcb314b2a4d.tar.gz
fixme check accounts for lowercase todos
Close #2029
Diffstat (limited to 'pylint/checkers/misc.py')
-rw-r--r--pylint/checkers/misc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pylint/checkers/misc.py b/pylint/checkers/misc.py
index 1eefc0715..9e96776e0 100644
--- a/pylint/checkers/misc.py
+++ b/pylint/checkers/misc.py
@@ -102,8 +102,8 @@ class EncodingChecker(BaseChecker):
# but rather only on lines which may actually contain one of the notes.
# This prevents a pathological problem with lines that are hundreds
# of thousands of characters long.
- for note in self.config.notes:
- if note in line:
+ for note in map(str.lower, self.config.notes):
+ if note in line.lower():
break
else:
return
@@ -151,7 +151,7 @@ class EncodingChecker(BaseChecker):
"""
if self.config.notes:
notes = re.compile(
- r'.*?#\s*(%s)(:*\s*.*)' % "|".join(self.config.notes))
+ r'.*?#\s*(%s)(:*\s*.*)' % "|".join(self.config.notes), re.I)
else:
notes = None
if module.file_encoding: