57 r'noqa', |
57 r'noqa', |
58 r'type:\s*ignore', |
58 r'type:\s*ignore', |
59 r'fmt:\s*(on|off)', |
59 r'fmt:\s*(on|off)', |
60 r'TODO', |
60 r'TODO', |
61 r'FIXME', |
61 r'FIXME', |
62 r'XXX', |
62 r'XXX' |
63 ) |
63 ) |
64 WHITELIST_REGEX = re.compile(r'|'.join(DEFAULT_WHITELIST), flags=re.IGNORECASE) |
64 WHITELIST_REGEX = re.compile(r'|'.join(DEFAULT_WHITELIST), flags=re.IGNORECASE) |
65 |
65 |
66 def comment_contains_code(self, line, aggressive=True): |
66 def comment_contains_code(self, line, aggressive=True): |
67 """Return True comment contains code.""" |
67 """Return True comment contains code.""" |