You've already forked top-wallpaper
Update dependencies and add linting configuration
Some checks failed
Lint Code Base / golangci-lint (push) Failing after 2m32s
Some checks failed
Lint Code Base / golangci-lint (push) Failing after 2m32s
This commit is contained in:
61
.golangci.yml
Normal file
61
.golangci.yml
Normal file
@@ -0,0 +1,61 @@
|
||||
version: "2"
|
||||
linters:
|
||||
default: none
|
||||
enable:
|
||||
- bodyclose
|
||||
- gocritic
|
||||
- govet
|
||||
- ineffassign
|
||||
- staticcheck
|
||||
- testifylint
|
||||
- unused
|
||||
settings:
|
||||
govet:
|
||||
disable:
|
||||
- fieldalignment
|
||||
enable-all: true
|
||||
exclusions:
|
||||
generated: lax
|
||||
presets:
|
||||
- comments
|
||||
- common-false-positives
|
||||
- legacy
|
||||
- std-error-handling
|
||||
rules:
|
||||
- linters:
|
||||
- bodyclose
|
||||
path: .*_test.go
|
||||
- linters:
|
||||
- bodyclose
|
||||
path: router/timeout_response.go
|
||||
# False positives on CGO generated code
|
||||
- linters:
|
||||
- staticcheck
|
||||
path: vips/.*
|
||||
text: 'SA4000:'
|
||||
# False positives on CGO generated code
|
||||
- linters:
|
||||
- gocritic
|
||||
path: vips/.*
|
||||
text: dupSubExpr
|
||||
# False positives on CGO generated code
|
||||
- linters:
|
||||
- staticcheck
|
||||
text: 'ST1005:'
|
||||
paths:
|
||||
- .tmp
|
||||
- vendor
|
||||
- third_party$
|
||||
- builtin$
|
||||
- examples$
|
||||
formatters:
|
||||
enable:
|
||||
- goimports
|
||||
exclusions:
|
||||
generated: lax
|
||||
paths:
|
||||
- .tmp
|
||||
- vendor
|
||||
- third_party$
|
||||
- builtin$
|
||||
- examples$
|
||||
Reference in New Issue
Block a user