Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py

branch
5_4_x
changeset 3817
0f58961a074f
parent 3175
1a6638ccce9d
child 3818
2155e837ee74
equal deleted inserted replaced
3805:f6f6aa84d429 3817:0f58961a074f
473 deferredFixes = {} 473 deferredFixes = {}
474 for error in errors: 474 for error in errors:
475 fname, lineno, position, text = error 475 fname, lineno, position, text = error
476 if lineno > len(source): 476 if lineno > len(source):
477 lineno = len(source) 477 lineno = len(source)
478 if "__IGNORE_WARNING__" not in \ 478 if lineno == 0 or "__IGNORE_WARNING__" not in \
479 Utilities.extractLineFlags( 479 Utilities.extractLineFlags(
480 source[lineno - 1].strip()): 480 source[lineno - 1].strip()):
481 self.noResults = False 481 self.noResults = False
482 if fixer: 482 if fixer:
483 res, msg, id_ = fixer.fixIssue(lineno, 483 res, msg, id_ = fixer.fixIssue(lineno,

eric ide

mercurial