diff --git a/.golangci.yml b/.golangci.yml index 33ff97d445e4..a5d37a136d58 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -121,11 +121,15 @@ linters-settings: min-len: 3 # minimal occurrences count to trigger, 3 by default min-occurrences: 3 - # depguard: - # list-type: blacklist - # include-go-root: false - # packages: - # - github.com/davecgh/go-spew/spew + depguard: + rules: + osuser: + files: + - "!**/osutil/user/*.go" + deny: + - pkg: "os/user" + desc: "Please use osutil/user instead" + misspell: # Correct spellings using locale preferences for US or UK. # Default is to use a neutral variety of English.