Skip to content

Commit

Permalink
add golangci config with basic rules
Browse files Browse the repository at this point in the history
  • Loading branch information
can3p committed Apr 14, 2024
1 parent 2fa1528 commit d0eb9d7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
linters:
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
- forbidigo

linters-settings:
forbidigo:
# Forbid the following identifiers (list of regexp).
# Default: ["^(fmt\\.Print(|f|ln)|print|println)$"]
forbid:
# Builtin function:
- ^print.*$
# Optional message that gets included in error reports.
- p: ^fmt\.Print.*$
msg: Do not commit print statements.

0 comments on commit d0eb9d7

Please sign in to comment.