46 lines
691 B
YAML
46 lines
691 B
YAML
version: "2"
|
|
|
|
run:
|
|
timeout: 5m
|
|
tests: true
|
|
|
|
linters:
|
|
enable:
|
|
- errcheck
|
|
- govet
|
|
- ineffassign
|
|
- staticcheck
|
|
- unused
|
|
- gocritic
|
|
- goconst
|
|
- misspell
|
|
- prealloc
|
|
- revive
|
|
- unparam
|
|
settings:
|
|
revive:
|
|
rules:
|
|
- name: early-return
|
|
- name: empty-lines
|
|
- name: errorf
|
|
- name: unexported-return
|
|
exclusions:
|
|
rules:
|
|
- path: _test\.go
|
|
linters:
|
|
- goconst
|
|
- dupl
|
|
- gosec
|
|
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- gofumpt
|
|
- goimports
|
|
settings:
|
|
gofumpt:
|
|
extra-rules: true
|
|
goimports:
|
|
local-prefixes:
|
|
- github.com/steipete/goplaces
|