PluginVulture.py

changeset 42
1fd6f13504d1
parent 40
6b6361ec584d
child 44
9be43ed02aaa
equal deleted inserted replaced
41:5e5f9cf00b75 42:1fd6f13504d1
22 # Start-Of-Header 22 # Start-Of-Header
23 name = "Unused Code Checker Plug-in" 23 name = "Unused Code Checker 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 = "1.0.1" 27 version = "1.0.2"
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."""
330 """ 330 """
331 project = e5App().getObject("Project") 331 project = e5App().getObject("Project")
332 project.saveAllScripts() 332 project.saveAllScripts()
333 ppath = project.getProjectPath() 333 ppath = project.getProjectPath()
334 files = [os.path.join(ppath, file_) 334 files = [os.path.join(ppath, file_)
335 for file_ in project.pdata["SOURCES"] 335 for file_ in project.getSources()
336 if file_.endswith( 336 if file_.endswith(
337 tuple(Preferences.getPython("Python3Extensions")) + 337 tuple(Preferences.getPython("Python3Extensions")) +
338 tuple(Preferences.getPython("PythonExtensions")))] 338 tuple(Preferences.getPython("PythonExtensions")))]
339 339
340 if self.__projectVultureCheckerDialog is None: 340 if self.__projectVultureCheckerDialog is None:

eric ide

mercurial