Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Feb 27, 2023
1 parent 4572723 commit 54d3016
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/lint/lintersdb/manager.go
Expand Up @@ -648,7 +648,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
WithURL("https://github.com/junk1tm/musttag"),

linter.NewConfig(golinters.NewNakedefer(nakedeferCfg)).
WithSince("v1.51.0").
WithSince("v1.52.0").
WithPresets(linter.PresetStyle).
WithLoadForGoAnalysis().
WithURL("https://github.com/GaijinEntertainment/go-nakedefer"),
Expand Down
6 changes: 5 additions & 1 deletion test/testdata/configs/nakedefer.yml
@@ -1,3 +1,7 @@
linters-settings:
nakedefer:
exclude: os\.(Create|WriteFile|Chmod),fmt\.Print.*,io\.Close,ignoreFunc
exclude:
- os\.(Create|WriteFile|Chmod)
- fmt\.Print.*
- io\.Close
- ignoreFunc

0 comments on commit 54d3016

Please sign in to comment.