mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00: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:
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
|
Loading…
Reference in New Issue
Block a user