|
|
@ -47,7 +47,7 @@ class LintProblem(object):
|
|
|
|
@property
|
|
|
|
@property
|
|
|
|
def message(self):
|
|
|
|
def message(self):
|
|
|
|
if self.rule is not None:
|
|
|
|
if self.rule is not None:
|
|
|
|
return '%s (%s)' % (self.desc, self.rule)
|
|
|
|
return '{} ({})'.format(self.desc, self.rule)
|
|
|
|
return self.desc
|
|
|
|
return self.desc
|
|
|
|
|
|
|
|
|
|
|
|
def __eq__(self, other):
|
|
|
|
def __eq__(self, other):
|
|
|
@ -78,7 +78,7 @@ def get_cosmetic_problems(buffer, conf, filepath):
|
|
|
|
class DisableDirective:
|
|
|
|
class DisableDirective:
|
|
|
|
def __init__(self):
|
|
|
|
def __init__(self):
|
|
|
|
self.rules = set()
|
|
|
|
self.rules = set()
|
|
|
|
self.all_rules = set([r.ID for r in rules])
|
|
|
|
self.all_rules = {r.ID for r in rules}
|
|
|
|
|
|
|
|
|
|
|
|
def process_comment(self, comment):
|
|
|
|
def process_comment(self, comment):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|