Skip to content

Commit

Permalink
ci: add depguard for gopkg.in/yaml.v2 (#1246)
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Renatus <[email protected]>
  • Loading branch information
srenatus authored Nov 7, 2024
1 parent 8c7cafd commit 24f8553
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ linters:
- ireturn
- funlen
- nolintlint
- depguard
- gomoddirectives # need replacements for wasip1
- execinquery # deprecated
- exportloopref # deprecated
Expand Down Expand Up @@ -58,6 +57,13 @@ linters-settings:
- blank
- dot

depguard:
rules:
main:
deny:
- pkg: "gopkg.in/yaml.v2"
desc: use yaml.v3 only

issues:
exclude-dirs:
- internal/lsp/opa

0 comments on commit 24f8553

Please sign in to comment.