Total Complexity | 1 |
Total Lines | 11 |
Duplicated Lines | 0 % |
1 | from coalib.bearlib.abstractions.Lint import Lint |
||
5 | class GoReturnsBear(Lint, LocalBear): |
||
6 | executable = 'goreturns' |
||
7 | diff_message = "Imports and returns need to be added/removed." |
||
8 | use_stdin = True |
||
9 | gives_corrected = True |
||
10 | |||
11 | def run(self, filename, file): |
||
12 | """ |
||
13 | Proposes corrections of Go code using gofmt. |
||
14 | """ |
||
15 | return self.lint(filename, file) |
||
16 |