172 self.progress = 0 |
172 self.progress = 0 |
173 self.check(codestring) |
173 self.check(codestring) |
174 |
174 |
175 def check(self, codestring=''): |
175 def check(self, codestring=''): |
176 """ |
176 """ |
177 Start a check for one file. |
177 Public method to start a check for one file. |
178 |
178 |
179 The results are reported to the __processResult slot. |
179 The results are reported to the __processResult slot. |
180 @keyparam codestring optional sourcestring (str) |
180 @keyparam codestring optional sourcestring (str) |
181 """ |
181 """ |
182 self.filename = self.files.pop(0) |
182 self.filename = self.files.pop(0) |
209 |
209 |
210 self.syntaxCheckService.syntaxCheck(None, self.filename, self.source) |
210 self.syntaxCheckService.syntaxCheck(None, self.filename, self.source) |
211 |
211 |
212 def __processResult(self, fn, problems): |
212 def __processResult(self, fn, problems): |
213 """ |
213 """ |
214 Slot to display the reported messages. |
214 Private slot to display the reported messages. |
215 |
215 |
216 @param fn filename of the checked file (str) |
216 @param fn filename of the checked file (str) |
217 @param problems dictionary with the keys 'error' and 'warnings' which |
217 @param problems dictionary with the keys 'error' and 'warnings' which |
218 hold a list containing details about the error/ warnings |
218 hold a list containing details about the error/ warnings |
219 (file name, line number, column, codestring (only at syntax |
219 (file name, line number, column, codestring (only at syntax |