mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-04-27 03:11:14 +00:00
robot: Add golangci file
This commit is contained in:
parent
648b755add
commit
e9b07938cc
12
.golangci.yml
Normal file
12
.golangci.yml
Normal file
@ -0,0 +1,12 @@
|
||||
run:
|
||||
timeout: 5m
|
||||
tests: false
|
||||
linters:
|
||||
enable:
|
||||
- revive # replacement for golint
|
||||
- dupl # check duplicated code
|
||||
- goconst # check strings that can turn into constants
|
||||
- gofmt # check fmt
|
||||
- goheader # Check license headers, only checks files in current year
|
||||
- goimports # check imports
|
||||
- gocyclo # check complexity
|
Loading…
Reference in New Issue
Block a user