Skip to content

Commit

Permalink
ci: forbid the use of fmt.Print methods using linter (#355)
Browse files Browse the repository at this point in the history
Follow up for #354
  • Loading branch information
phm07 authored Dec 13, 2023
1 parent ade8fbd commit 69a03ba
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 69a03ba

Please sign in to comment.