Total Complexity | 1 |
Total Lines | 12 |
Duplicated Lines | 0 % |
1 | import re |
||
7 | class GoVetBear(LocalBear, Lint): |
||
8 | executable = 'go' |
||
9 | arguments = 'vet' |
||
10 | output_regex = re.compile( |
||
11 | r'(?P<file_name>.+):(?P<line>\d+): (?P<message>.*)\n') |
||
12 | use_stderr = True |
||
13 | |||
14 | def run(self, filename, file): |
||
15 | ''' |
||
16 | Checks the code using `go vet`. |
||
17 | ''' |
||
18 | return self.lint(filename) |
||
19 |