Fri, 16 Sep 2016 19:31:38 +0200
Added capaibility to ignore warnings by code (use __IGNORE_WARNING_<code>__, e.g. __IGNORE_WARNING_M613__).
Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py | file | annotate | diff | comparison | revisions | |
changelog | file | annotate | diff | comparison | revisions |
--- a/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py Fri Sep 16 19:28:39 2016 +0200 +++ b/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py Fri Sep 16 19:31:38 2016 +0200 @@ -272,8 +272,10 @@ errors.sort(key=lambda x: x[0], reverse=True) for position, text in errors: if source: - if "__IGNORE_WARNING__" not in \ - extractLineFlags(source[lineno - 1].strip()): + code = text[0] + lineFlags = extractLineFlags(source[lineno - 1].strip()) + if "__IGNORE_WARNING__" not in lineFlags and \ + "__IGNORE_WARNING_{0}__".format(code) not in lineFlags: if fixer: res, msg, id_ = fixer.fixIssue(lineno, position, text) if res == -1:
--- a/changelog Fri Sep 16 19:28:39 2016 +0200 +++ b/changelog Fri Sep 16 19:31:38 2016 +0200 @@ -5,6 +5,9 @@ - General -- added a status bar icon to show the online status to the main window -- added an action to clear the private data of the IDE +- Checkers + -- added capaibility to ignore warnings by code (use + __IGNORE_WARNING_<code>__, e.g. __IGNORE_WARNING_M613__) - Debugger -- added a debugger interface registry to allow debuggers being implemented as plug-ins