19 from eric7.EricWidgets.EricApplication import ericApp |
19 from eric7.EricWidgets.EricApplication import ericApp |
20 from eric7.Project.ProjectBrowserModel import ProjectBrowserFileItem |
20 from eric7.Project.ProjectBrowserModel import ProjectBrowserFileItem |
21 from eric7.SystemUtilities import FileSystemUtilities, PythonUtilities |
21 from eric7.SystemUtilities import FileSystemUtilities, PythonUtilities |
22 |
22 |
23 # Start-Of-Header |
23 # Start-Of-Header |
24 name = "Radon Metrics Plugin" |
24 __header__ = { |
25 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
25 "name": "Radon Metrics Plugin", |
26 autoactivate = True |
26 "author": "Detlev Offenbach <detlev@die-offenbachs.de>", |
27 deactivateable = True |
27 "autoactivate": True, |
28 version = "10.3.2" |
28 "deactivateable": True, |
29 className = "RadonMetricsPlugin" |
29 "version": "10.3.3", |
30 packageName = "RadonMetrics" |
30 "className": "RadonMetricsPlugin", |
31 shortDescription = "Code metrics plugin using radon package" |
31 "packageName": "RadonMetrics", |
32 longDescription = ( |
32 "shortDescription": "Code metrics plugin using radon package", |
33 """This plug-in implements dialogs to show various code metrics. These""" |
33 "longDescription": ( |
34 """ are determined using the radon code metrics package. 'Raw code""" |
34 """This plug-in implements dialogs to show various code metrics. These""" |
35 """ metrics', 'Maintainability Index' and 'McCabe Complexity' can be""" |
35 """ are determined using the radon code metrics package. 'Raw code""" |
36 """ requested through different dialogs for one file or the whole""" |
36 """ metrics', 'Maintainability Index' and 'McCabe Complexity' can be""" |
37 """ project.""" |
37 """ requested through different dialogs for one file or the whole""" |
38 ) |
38 """ project.""" |
39 needsRestart = False |
39 ), |
40 hasCompiledForms = True |
40 "needsRestart": False, |
41 pyqtApi = 2 |
41 "hasCompiledForms": True, |
|
42 "hasCompiledForms": True, |
|
43 "pyqtApi": 2, |
|
44 } |
42 # End-Of-Header |
45 # End-Of-Header |
43 |
46 |
44 error = "" |
47 error = "" |
45 |
48 |
46 |
49 |
75 self.__ui = ui |
78 self.__ui = ui |
76 self.__initialize() |
79 self.__initialize() |
77 |
80 |
78 self.backgroundService = ericApp().getObject("BackgroundService") |
81 self.backgroundService = ericApp().getObject("BackgroundService") |
79 |
82 |
80 path = os.path.join(os.path.dirname(__file__), packageName) |
83 path = os.path.join(os.path.dirname(__file__), __header__["packageName"]) |
81 |
84 |
82 # raw code metrics calculation |
85 # raw code metrics calculation |
83 self.backgroundService.serviceConnect( |
86 self.backgroundService.serviceConnect( |
84 "radon_raw", |
87 "radon_raw", |
85 "Python3", |
88 "Python3", |