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