28 # Start-Of-Header |
28 # Start-Of-Header |
29 name = "Radon Metrics Plugin" |
29 name = "Radon Metrics Plugin" |
30 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
30 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
31 autoactivate = True |
31 autoactivate = True |
32 deactivateable = True |
32 deactivateable = True |
33 version = "10.2.0" |
33 version = "10.2.1" |
34 className = "RadonMetricsPlugin" |
34 className = "RadonMetricsPlugin" |
35 packageName = "RadonMetrics" |
35 packageName = "RadonMetrics" |
36 shortDescription = "Code metrics plugin using radon package" |
36 shortDescription = "Code metrics plugin using radon package" |
37 longDescription = ( |
37 longDescription = ( |
38 """This plug-in implements dialogs to show various code metrics. These""" |
38 """This plug-in implements dialogs to show various code metrics. These""" |
629 "Warning: translation file '{0}' could not be" |
629 "Warning: translation file '{0}' could not be" |
630 " loaded.".format(translation) |
630 " loaded.".format(translation) |
631 ) |
631 ) |
632 print("Using default.") |
632 print("Using default.") |
633 |
633 |
634 def __projectShowMenu(self, menuName, menu): |
634 def __projectShowMenu(self, menuName, menu): # noqa: U100 |
635 """ |
635 """ |
636 Private slot called, when the the project menu or a submenu is |
636 Private slot called, when the the project menu or a submenu is |
637 about to be shown. |
637 about to be shown. |
638 |
638 |
639 @param menuName name of the menu to be shown |
639 @param menuName name of the menu to be shown |
779 if menu is not None: |
779 if menu is not None: |
780 menu.addAction(self.__editorSeparatorActs[0]) |
780 menu.addAction(self.__editorSeparatorActs[0]) |
781 menu.addActions(self.__editorMetricsActs) |
781 menu.addActions(self.__editorMetricsActs) |
782 menu.addAction(self.__editorSeparatorActs[1]) |
782 menu.addAction(self.__editorSeparatorActs[1]) |
783 |
783 |
784 def __editorShowMenu(self, menuName, menu, editor): |
784 def __editorShowMenu(self, menuName, menu, editor): # noqa: U100 |
785 """ |
785 """ |
786 Private slot called, when the the editor context menu or a submenu is |
786 Private slot called, when the the editor context menu or a submenu is |
787 about to be shown. |
787 about to be shown. |
788 |
788 |
789 @param menuName name of the menu to be shown |
789 @param menuName name of the menu to be shown |