eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py

changeset 8166
bd5cd5858503
parent 8143
2c730d5fd177
child 8186
655b658aa7ee
equal deleted inserted replaced
8165:61ca9619decb 8166:bd5cd5858503
80 "CheckerCategories", 80 "CheckerCategories",
81 "Miscellaneous"), 81 "Miscellaneous"),
82 "N": QCoreApplication.translate( 82 "N": QCoreApplication.translate(
83 "CheckerCategories", 83 "CheckerCategories",
84 "Naming"), 84 "Naming"),
85 "P": QCoreApplication.translate(
86 "CheckerCategories",
87 "'pathlib' Usage"),
85 "S": QCoreApplication.translate( 88 "S": QCoreApplication.translate(
86 "CheckerCategories", 89 "CheckerCategories",
87 "Security"), 90 "Security"),
88 "W": QCoreApplication.translate( 91 "W": QCoreApplication.translate(
89 "CheckerCategories", 92 "CheckerCategories",
285 itm.setIcon(1, UI.PixmapCache.getIcon("warning")) 288 itm.setIcon(1, UI.PixmapCache.getIcon("warning"))
286 elif msgCode.startswith(("A", "N")): 289 elif msgCode.startswith(("A", "N")):
287 itm.setIcon(1, UI.PixmapCache.getIcon("namingError")) 290 itm.setIcon(1, UI.PixmapCache.getIcon("namingError"))
288 elif msgCode.startswith("D"): 291 elif msgCode.startswith("D"):
289 itm.setIcon(1, UI.PixmapCache.getIcon("docstringError")) 292 itm.setIcon(1, UI.PixmapCache.getIcon("docstringError"))
293 elif msgCode.startswith("P"):
294 itm.setIcon(1, UI.PixmapCache.getIcon("dirClosed"))
290 elif msgCode.startswith("S"): 295 elif msgCode.startswith("S"):
291 if "severity" in result: 296 if "severity" in result:
292 if result["severity"] == "H": 297 if result["severity"] == "H":
293 itm.setIcon(1, UI.PixmapCache.getIcon("securityLow")) 298 itm.setIcon(1, UI.PixmapCache.getIcon("securityLow"))
294 elif result["severity"] == "M": 299 elif result["severity"] == "M":

eric ide

mercurial