Skip to content

Commit

Permalink
.golangci.yml: verify for forbidden use of os/user
Browse files Browse the repository at this point in the history
  • Loading branch information
valentindavid committed Sep 19, 2024
1 parent 35411f1 commit 45a215d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 45a215d

Please sign in to comment.