Skip to content

Commit

Permalink
ci: forbid the use of fmt.Print methods using linter
Browse files Browse the repository at this point in the history
  • Loading branch information
phm07 committed Dec 13, 2023
1 parent ade8fbd commit 8ecd0e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ linters-settings:
We do not currently need to parse properties files. At the same
time this module has an assert package which tends to get
imported by accident. It is therefore blocked.
forbidigo:
forbid:
- ^print.*$
- ^fmt\.Print.*$
misspell:
locale: "US"

Expand Down Expand Up @@ -53,6 +57,7 @@ linters:
- unparam
- unused
- whitespace
- forbidigo

issues:
exclude-rules:
Expand Down

0 comments on commit 8ecd0e3

Please sign in to comment.