Skip to content
This repository has been archived by the owner on Apr 10, 2019. It is now read-only.

Issue alecthomas/gometalinter#118 - add client9/misspell #134

Merged
merged 1 commit into from Jun 11, 2016
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
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
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