mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-24 22:08:58 -05:00
use golangci-lint as linter
This commit is contained in:
@@ -62,10 +62,10 @@ def testing(ctx):
|
||||
},
|
||||
{
|
||||
'name': 'staticcheck',
|
||||
'image': 'webhippie/golang:1.13',
|
||||
'image': 'golangci/golangci-lint:latest',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'make staticcheck',
|
||||
'golangci-lint run',
|
||||
],
|
||||
'volumes': [
|
||||
{
|
||||
|
||||
34
.golangci.yaml
Normal file
34
.golangci.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
issues:
|
||||
# exclude-rules:
|
||||
# - path: pkg/proto/v0/settings.pb.go
|
||||
# text: "SA1019:"
|
||||
# linters:
|
||||
# - staticcheck
|
||||
# - path: pkg/store/filesystem/io.go
|
||||
# text: "SA1019:"
|
||||
# linters:
|
||||
# - staticcheck
|
||||
linters:
|
||||
enable:
|
||||
- bodyclose
|
||||
- deadcode
|
||||
- errcheck
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
- staticcheck
|
||||
- structcheck
|
||||
- typecheck
|
||||
- unused
|
||||
- varcheck
|
||||
- depguard
|
||||
- golint
|
||||
- goimports
|
||||
- unconvert
|
||||
- scopelint
|
||||
- maligned
|
||||
- misspell
|
||||
# - gocritic
|
||||
- prealloc
|
||||
#- gosec
|
||||
|
||||
Reference in New Issue
Block a user