Total Complexity | 2 |
Total Lines | 10 |
Duplicated Lines | 0 % |
1 | from coalib.bearlib.abstractions.CorrectionBasedBear import CorrectionBasedBear |
||
4 | class GofmtBear(CorrectionBasedBear): |
||
5 | executable = 'gofmt' |
||
6 | RESULT_MESSAGE = "Formatting can be improved." |
||
7 | |||
8 | def run(self, filename, file): |
||
9 | """ |
||
10 | Proposes corrections of Go code using gofmt. |
||
11 | """ |
||
12 | for result in self.retrieve_results(filename, file, cli_options=''): |
||
13 | yield result |
||
14 |