Thu, 01 Apr 2021 17:23:35 +0200
Code Style Checker
- added icons for the new simplification checks
--- 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)