| Conditions | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | import re |
||
| 18 | def run(self, filename, file): |
||
| 19 | """ |
||
| 20 | Checks the code using `checkstyle` using the Google codestyle |
||
| 21 | specification. |
||
| 22 | """ |
||
| 23 | self.output_regex = re.compile( |
||
| 24 | r'\[(?P<severity>WARN|INFO)\]\s*' + abspath(filename) + |
||
| 25 | r':(?P<line>\d+)(:(?P<col>\d+))?:\s*' |
||
| 26 | r'(?P<message>.*?)\s*\[(?P<origin>[a-zA-Z]+?)\]') |
||
| 27 | self.arguments = '-jar ' + self.jar + ' -c ' + self.google_checks |
||
| 28 | return self.lint(filename) |
||
| 29 |