mirror of
https://gitee.com/mirrors_adrian-thurston/yq.git
synced 2026-01-15 07:53:35 +08:00
lint : define golangci configuration file
This put everything concerning golangci following [this](https://golangci-lint.run/usage/configuration/). This way, anyone running golangci with a command line or with it's favorite Ide will use the same configuration for the current project.
This commit is contained in:
committed by
Mike Farah
parent
a17c97b515
commit
38855bf646
13
.golangci.yml
Normal file
13
.golangci.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
run:
|
||||
timeout: 5m
|
||||
linters:
|
||||
enable:
|
||||
- gofmt
|
||||
- goimports
|
||||
- gosec
|
||||
issues:
|
||||
exclude-rules:
|
||||
- linters:
|
||||
- gosec
|
||||
text: "Implicit memory aliasing in for loop."
|
||||
path: _test\.go
|
||||
Reference in New Issue
Block a user