eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py

changeset 7615
ca2949b1a29a
parent 7613
382f89c11e27
child 7923
91e843545d9a
diff -r 646742c260bd -r ca2949b1a29a eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py	Tue Jun 09 20:10:59 2020 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py	Wed Jun 10 17:52:53 2020 +0200
@@ -61,7 +61,14 @@
         for code in sorted(selectableCodes):
             message = getTranslatedMessage(code, [], example=True)
             if message is None:
-                continue
+                # try with extension
+                for ext in ("L", "M", "H", "1"):
+                    message = getTranslatedMessage("{0}.{1}".format(code, ext),
+                                                   [], example=True)
+                    if message is not None:
+                        break
+                else:
+                    continue
             itm = QTreeWidgetItem(self.codeTable, [
                 code, "\n".join(textWrapper.wrap(message))])
             if code.startswith(("W", "C", "M")):

eric ide

mercurial