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

Commit

Permalink
Merge pull request #134 from client9/master
Browse files Browse the repository at this point in the history
Issue #118 - add client9/misspell
  • Loading branch information
alecthomas authored Jun 11, 2016
2 parents bad57b0 + 5c7e520 commit a5b3685
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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

0 comments on commit a5b3685

Please sign in to comment.