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

bears.go.GoReturnsBear   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %
Metric Value
dl 0
loc 11
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 5 1
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