22 # Start-Of-Header |
22 # Start-Of-Header |
23 name = "Unused Code Cheker Plug-in" |
23 name = "Unused Code Cheker Plug-in" |
24 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
24 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
25 autoactivate = True |
25 autoactivate = True |
26 deactivateable = True |
26 deactivateable = True |
27 version = "0.1.0" |
27 version = "0.2.0" |
28 className = "VulturePlugin" |
28 className = "VulturePlugin" |
29 packageName = "VultureChecker" |
29 packageName = "VultureChecker" |
30 shortDescription = "Plug-in to detect unused code using the vulture library" |
30 shortDescription = "Plug-in to detect unused code using the vulture library" |
31 longDescription = ( |
31 longDescription = ( |
32 """Plug-in to detect unused code using the vulture library.""" |
32 """Plug-in to detect unused code using the vulture library.""" |
327 Private slot used to check the project for unused code. |
327 Private slot used to check the project for unused code. |
328 """ |
328 """ |
329 project = e5App().getObject("Project") |
329 project = e5App().getObject("Project") |
330 project.saveAllScripts() |
330 project.saveAllScripts() |
331 ppath = project.getProjectPath() |
331 ppath = project.getProjectPath() |
332 files = [os.path.join(ppath, file) |
332 files = [os.path.join(ppath, file_) |
333 for file in project.pdata["SOURCES"] |
333 for file_ in project.pdata["SOURCES"] |
334 if file.endswith( |
334 if file_.endswith( |
335 tuple(Preferences.getPython("Python3Extensions")) + |
335 tuple(Preferences.getPython("Python3Extensions")) + |
336 tuple(Preferences.getPython("PythonExtensions")))] |
336 tuple(Preferences.getPython("PythonExtensions")))] |
337 |
337 |
338 if self.__projectVultureCheckerDialog is None: |
338 if self.__projectVultureCheckerDialog is None: |
339 from VultureChecker.VultureCheckerDialog import \ |
339 from VultureChecker.VultureCheckerDialog import \ |