Plugins/PluginSyntaxChecker.py

changeset 3591
2f2a4a76dd22
parent 3558
7f2bc8910d28
child 3621
15f23ed3f216
equal deleted inserted replaced
3590:5280e37405b8 3591:2f2a4a76dd22
159 "IgnoreStarImportWarnings") 159 "IgnoreStarImportWarnings")
160 return checkFlakes, ignoreStarImportWarnings 160 return checkFlakes, ignoreStarImportWarnings
161 161
162 def __translateSyntaxCheck(self, fn, problems): 162 def __translateSyntaxCheck(self, fn, problems):
163 """ 163 """
164 Slot to translate the resulting messages. 164 Private slot to translate the resulting messages.
165 165
166 If checkFlakes is True, warnings contains a list of strings containing 166 If checkFlakes is True, warnings contains a list of strings containing
167 the warnings (marker, file name, line number, message) 167 the warnings (marker, file name, line number, message)
168 The values are only valid, if nok is False. 168 The values are only valid, if nok is False.
169 169
298 if not self.__projectBrowserAct in menu.actions(): 298 if not self.__projectBrowserAct in menu.actions():
299 menu.addAction(self.__projectBrowserAct) 299 menu.addAction(self.__projectBrowserAct)
300 300
301 def __projectSyntaxCheck(self): 301 def __projectSyntaxCheck(self):
302 """ 302 """
303 Public slot used to check the project files for syntax errors. 303 Private slot used to check the project files for syntax errors.
304 """ 304 """
305 project = e5App().getObject("Project") 305 project = e5App().getObject("Project")
306 project.saveAllScripts() 306 project.saveAllScripts()
307 ppath = project.getProjectPath() 307 ppath = project.getProjectPath()
308 extensions = tuple(self.syntaxCheckService.getExtensions()) 308 extensions = tuple(self.syntaxCheckService.getExtensions())

eric ide

mercurial