-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace individual linters with golangci-lint
Add .golangci.yml config file for golangci-lint. Simplify the Travis config and Gopkg.toml because now there is only one linter to go get. Don't vendor golangci-lint because dep fetches the wrong versions of golangci-lint's dependencies.
- Loading branch information
Showing
113 changed files
with
32 additions
and
31,655 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
run: | ||
deadline: 1h | ||
tests: true | ||
|
||
linters: | ||
enable: | ||
- gocyclo | ||
- gofmt | ||
- golint | ||
|
||
linters-settings: | ||
gocyclo: | ||
min-complexity: 11 | ||
|
||
gofmt: | ||
simplify: true | ||
|
||
golint: | ||
min-confidence: 0.25 # ignore missing package comment false positive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,8 @@ | ||
required = [ | ||
"github.com/fzipp/gocyclo", | ||
"golang.org/x/lint", | ||
"golang.org/x/lint/golint", | ||
"honnef.co/go/tools/cmd/megacheck", | ||
] | ||
|
||
[[constraint]] | ||
name = "github.com/fzipp/gocyclo" | ||
branch = "master" | ||
|
||
[[constraint]] | ||
name = "golang.org/x/lint" | ||
branch = "master" | ||
name = "github.com/kr/pretty" | ||
version = "^0.1.0" | ||
|
||
[prune] | ||
go-tests = true | ||
non-go = true | ||
unused-packages = true | ||
go-tests = true | ||
non-go = true | ||
unused-packages = true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.