Skip to content

Commit

Permalink
Make errcheck a default linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sridharv committed Nov 5, 2016
1 parent e8b925f commit 4a392eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func TestLint(t *testing.T) {
- `golint` - [https://github.com/golang/lint](https://github.com/golang/lint)
- `gosimple` - [https://github.com/dominikh/go-simple](https://github.com/dominikh/go-simple)
- `gostaticcheck` - [https://github.com/dominikh/go-staticcheck](https://github.com/dominikh/go-staticcheck)
- `errcheck` - [https://github.com/kisielk/errcheck](https://github.com/kisielk/errcheck)

### Why `lint`?

Expand Down
3 changes: 3 additions & 0 deletions lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"reflect"

"github.com/surullabs/lint/checkers"
"github.com/surullabs/lint/errcheck"
"github.com/surullabs/lint/gofmt"
"github.com/surullabs/lint/golint"
"github.com/surullabs/lint/gosimple"
Expand All @@ -23,12 +24,14 @@ import (
// - golint
// - gosimple (https://github.com/dominikh/go-simple)
// - gostaticcheck (https://github.com/dominikh/go-staticcheck)
// - errcheck (https://github.com/kisielk/errcheck)
var Default = Group{
gofmt.Check{}, // Verify that all files are properly formatted
govet.Shadow, // go vet
golint.Check{}, // golint
gosimple.Check{}, // honnef.co/go/simple
gostaticcheck.Check{}, // honnef.co/go/staticcheck
errcheck.Check{},
}

type errors interface {
Expand Down

0 comments on commit 4a392eb

Please sign in to comment.