Code Style Checker

Thu, 01 Apr 2021 17:23:35 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 01 Apr 2021 17:23:35 +0200
changeset 8188
bfa6c0969acf
parent 8187
7bfee4d12551
child 8189
17df5c8df8c1

Code Style Checker
- added icons for the new simplification checks

eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py file | annotate | diff | comparison | revisions
eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py file | annotate | diff | comparison | revisions
eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleStatisticsDialog.py file | annotate | diff | comparison | revisions
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py	Thu Apr 01 17:22:48 2021 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py	Thu Apr 01 17:23:35 2021 +0200
@@ -295,6 +295,8 @@
             itm.setIcon(1, UI.PixmapCache.getIcon("docstringError"))
         elif msgCode.startswith("P"):
             itm.setIcon(1, UI.PixmapCache.getIcon("dirClosed"))
+        elif msgCode.startswith("Y"):
+            itm.setIcon(1, UI.PixmapCache.getIcon("filePython"))
         elif msgCode.startswith("S"):
             if "severity" in result:
                 if result["severity"] == "H":
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py	Thu Apr 01 17:22:48 2021 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py	Thu Apr 01 17:23:35 2021 +0200
@@ -83,6 +83,8 @@
                 itm.setIcon(0, UI.PixmapCache.getIcon("securityLow"))
             elif code.startswith("P"):
                 itm.setIcon(0, UI.PixmapCache.getIcon("dirClosed"))
+            elif code.startswith("Y"):
+                itm.setIcon(0, UI.PixmapCache.getIcon("filePython"))
             else:
                 # unknown category prefix => warning
                 itm.setIcon(0, UI.PixmapCache.getIcon("warning"))
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleStatisticsDialog.py	Thu Apr 01 17:22:48 2021 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleStatisticsDialog.py	Thu Apr 01 17:23:35 2021 +0200
@@ -98,6 +98,8 @@
             itm.setIcon(1, UI.PixmapCache.getIcon("securityLow"))
         elif code.startswith("P"):
             itm.setIcon(1, UI.PixmapCache.getIcon("dirClosed"))
+        elif code.startswith("Y"):
+            itm.setIcon(1, UI.PixmapCache.getIcon("filePython"))
         
         itm.setTextAlignment(
             0, Qt.AlignmentFlag.AlignRight | Qt.AlignmentFlag.AlignVCenter)

eric ide

mercurial