Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py

branch
5_4_x
changeset 3818
2155e837ee74
parent 3817
0f58961a074f
child 3819
4cef255aef4b
equal deleted inserted replaced
3817:0f58961a074f 3818:2155e837ee74
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 lineno == 0 or "__IGNORE_WARNING__" not in \ 478 if source and \
479 Utilities.extractLineFlags( 479 "__IGNORE_WARNING__" not in \
480 Utilities.extractLineFlags(
480 source[lineno - 1].strip()): 481 source[lineno - 1].strip()):
481 self.noResults = False 482 self.noResults = False
482 if fixer: 483 if fixer:
483 res, msg, id_ = fixer.fixIssue(lineno, 484 res, msg, id_ = fixer.fixIssue(lineno,
484 position, text) 485 position, text)

eric ide

mercurial