Completed
Pull Request — master (#1499)
by Sudheesh
01:38
created

bears.go.GoReturnsBear.run()   A

Complexity

Conditions 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 5
rs 9.4285
1
from coalib.bearlib.abstractions.Lint import Lint
2
from coalib.bears.LocalBear import LocalBear
3
4
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