Skip to content

Commit

Permalink
golangci-lint: Initial configuration file
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Trangoni <[email protected]>
  • Loading branch information
mjtrangoni authored and mgumz committed Dec 23, 2022
1 parent a17e317 commit e940d1e
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# options for analysis running
run:
modules-download-mode: mod
linters-settings:
funlen:
lines: 140
misspell:
locale: US
goimports:
local-prefixes: github.com/golangci/golangci-lint
gocritic:
enabled-tags:
- performance
- style
- experimental
disabled-checks:
- whyNoLint
- wrapperFunc

linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- exportloopref
- exhaustive
- funlen
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- gomnd
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- noctx
- nolintlint
- revive
- rowserrcheck
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
- wsl

issues:
exclude-rules:
- text: "Subprocess launched with a potential tainted input or cmd arguments"
linters:
- gosec

0 comments on commit e940d1e

Please sign in to comment.