Skip to content
This repository was archived by the owner on Apr 10, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Disabled by default (enable with `--enable=<linter>`):
- [gofmt -s](https://golang.org/cmd/gofmt/) - Checks if the code is properly formatted and could not be further simplified.
- [goimports](https://godoc.org/golang.org/x/tools/cmd/goimports) - Checks missing or unreferenced package imports.
- [lll](https://github.com/walle/lll) - Report long lines (see `--line-length=N`).
- [misspell](https://github.com/client9/misspell) - Finds commonly misspelled English words.

Additional linters can be added through the command line with `--linter=NAME:COMMAND:PATTERN` (see [below](#details)).

Expand Down
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ var (
"unconvert": "unconvert .:PATH:LINE:COL:MESSAGE",
"gosimple": "gosimple .:PATH:LINE:COL:MESSAGE",
"staticcheck": "staticcheck .:PATH:LINE:COL:MESSAGE",
"misspell": "misspell ./*.go:PATH:LINE:COL:MESSAGE",
}
disabledLinters = []string{"testify", "test", "gofmt", "goimports", "lll"}
disabledLinters = []string{"testify", "test", "gofmt", "goimports", "lll", "misspell"}
enabledLinters = []string{}
linterMessageOverrideFlag = map[string]string{
"errcheck": "error return value not checked ({message})",
Expand All @@ -163,6 +164,7 @@ var (
"aligncheck": "github.com/opennota/check/cmd/aligncheck",
"deadcode": "github.com/tsenart/deadcode",
"gocyclo": "github.com/alecthomas/gocyclo",
"misspell": "github.com/client9/misspell/cmd/misspell",
"ineffassign": "github.com/gordonklaus/ineffassign",
"dupl": "github.com/mibk/dupl",
"interfacer": "github.com/mvdan/interfacer/cmd/interfacer",
Expand Down