Skip to content

Commit

Permalink
linter: Add lint config with extra checks which are commonly used
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamacedo86 committed Sep 23, 2023
1 parent 7af8eda commit 91f987b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
run:
deadline: 5m
allow-parallel-runners: true

linters:
enable:
- dupl
- errcheck
- exportloopref
- goconst
- gocyclo
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- misspell
- staticcheck
- typecheck
- unconvert
- unparam
- unused
#FIXME: Required fix the errors to allow enable the following checks
#- lll
#- nakedret
#- revive

0 comments on commit 91f987b

Please sign in to comment.