diff --git a/.golangci.yml b/.golangci.yml index 33ff97d445e..71a0cecb78e 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. See https://github.com/canonical/snapd/pull/13776" + misspell: # Correct spellings using locale preferences for US or UK. # Default is to use a neutral variety of English.