Continued implementing a checker for import statements. eric7

Thu, 25 Nov 2021 17:49:25 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 25 Nov 2021 17:49:25 +0100
branch
eric7
changeset 8791
0c24be2a75d8
parent 8790
548df4df8256
child 8792
ec56afbf5532

Continued implementing a checker for import statements.

eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py file | annotate | diff | comparison | revisions
--- a/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py	Thu Nov 25 17:48:51 2021 +0100
+++ b/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py	Thu Nov 25 17:49:25 2021 +0100
@@ -307,33 +307,6 @@
         
         CodeStyleCheckerUtilities.setItemIcon(
             itm, 1, msgCode, result.get("severity"))
-#        # TODO: extract this as a method
-#        if msgCode.startswith(("W", "-", "C", "M")):
-#            itm.setIcon(1, UI.PixmapCache.getIcon("warning"))
-#        elif msgCode.startswith(("A", "N")):
-#            itm.setIcon(1, UI.PixmapCache.getIcon("namingError"))
-#        elif msgCode.startswith("D"):
-#            itm.setIcon(1, UI.PixmapCache.getIcon("docstringError"))
-#        elif msgCode.startswith("I"):
-#            itm.setIcon(1, UI.PixmapCache.getIcon("imports"))
-#        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":
-#                    itm.setIcon(1, UI.PixmapCache.getIcon("securityLow"))
-#                elif result["severity"] == "M":
-#                    itm.setIcon(1, UI.PixmapCache.getIcon("securityMedium"))
-#                elif result["severity"] == "L":
-#                    itm.setIcon(1, UI.PixmapCache.getIcon("securityHigh"))
-#                else:
-#                    itm.setIcon(1, UI.PixmapCache.getIcon("securityLow"))
-#            else:
-#                itm.setIcon(1, UI.PixmapCache.getIcon("securityLow"))
-#        else:
-#            itm.setIcon(1, UI.PixmapCache.getIcon("syntaxError"))
         
         if result["fixed"]:
             itm.setIcon(0, UI.PixmapCache.getIcon("issueFixed"))

eric ide

mercurial