mirror of
https://github.com/sbrow/nix.git
synced 2026-06-27 18:58:32 -04:00
fix(go): Added linters/linter config.
This commit is contained in:
22
templates/go/.golangci.yml
Normal file
22
templates/go/.golangci.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
version: "2"
|
||||
linters:
|
||||
default: standard
|
||||
enable:
|
||||
- bidichk
|
||||
- contextcheck
|
||||
- decorder
|
||||
- exhaustive
|
||||
- fatcontext
|
||||
- gosec
|
||||
- govet
|
||||
- intrange
|
||||
- maintidx
|
||||
- modernize
|
||||
- noctx
|
||||
- prealloc
|
||||
- recvcheck
|
||||
- sloglint
|
||||
- usestdlibvars
|
||||
formatters:
|
||||
enable:
|
||||
- goimports
|
||||
Reference in New Issue
Block a user