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 f82a92b commit 2ad3a7a
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"

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 2ad3a7a

Please sign in to comment.