initial
This commit is contained in:
46
.golangci.yml
Normal file
46
.golangci.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
run:
|
||||
timeout: 5m
|
||||
tests: true
|
||||
|
||||
linters:
|
||||
enable:
|
||||
- gofmt
|
||||
- revive
|
||||
- govet
|
||||
- errcheck
|
||||
- staticcheck
|
||||
- unused
|
||||
- gosimple
|
||||
- ineffassign
|
||||
- typecheck
|
||||
- gosec
|
||||
- misspell
|
||||
- unparam
|
||||
- prealloc
|
||||
- copyloopvar
|
||||
- gocritic
|
||||
- gochecknoinits
|
||||
- gochecknoglobals
|
||||
|
||||
linters-settings:
|
||||
gofmt:
|
||||
simplify: true
|
||||
revive:
|
||||
confidence: 0.8
|
||||
govet:
|
||||
enable:
|
||||
- shadow
|
||||
errcheck:
|
||||
check-type-assertions: true
|
||||
check-blank: true
|
||||
|
||||
issues:
|
||||
exclude-rules:
|
||||
# Exclude globals check for version variables in main
|
||||
- path: cmd/webhooker/main.go
|
||||
linters:
|
||||
- gochecknoglobals
|
||||
# Exclude globals check for version variables in globals package
|
||||
- path: internal/globals/globals.go
|
||||
linters:
|
||||
- gochecknoglobals
|
||||
Reference in New Issue
Block a user