Skip to content

Commit

Permalink
build(deps): bump github.com/golangci/misspell 0.4.0 to 0.4.1 (#3918)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jun 19, 2023
1 parent 28f0560 commit cecd497
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ require (
github.com/golangci/gofmt v0.0.0-20220901101216-f2edd75033f2
github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0
github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca
github.com/golangci/misspell v0.4.0
github.com/golangci/misspell v0.4.1
github.com/golangci/revgrep v0.0.0-20220804021717-745bb2f7c2e6
github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4
github.com/gordonklaus/ineffassign v0.0.0-20230610083614-0e73809eb601
Expand Down
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pkg/config/linters_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,8 @@ type MalignedSettings struct {
}

type MisspellSettings struct {
Locale string
Locale string
// TODO(ldez): v2 the options must be renamed to `IgnoredRules`.
IgnoreWords []string `mapstructure:"ignore-words"`
}

Expand Down
2 changes: 2 additions & 0 deletions test/testdata/configs/misspell.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
linters-settings:
misspell:
locale: US
ignore-words:
- langauge
- Dialogue
1 change: 1 addition & 0 deletions test/testdata/misspell.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ func Misspell() {
}

// the word langauge should be ignored here: it's set in config
// the word Dialogue should be ignored here: it's set in config

0 comments on commit cecd497

Please sign in to comment.