You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
590 B
29 lines
590 B
|
2 weeks ago
|
version: "2"
|
||
|
|
|
||
|
|
linters:
|
||
|
|
default: none
|
||
|
|
enable:
|
||
|
|
- errcheck
|
||
|
|
- govet
|
||
|
|
- staticcheck
|
||
|
|
- ineffassign
|
||
|
|
- unparam
|
||
|
|
exclusions:
|
||
|
|
# Unchecked Close of read-only files, fmt.Fprint* to the terminal and
|
||
|
|
# os.Remove of temporary files, as in golangci-lint v1.
|
||
|
|
presets:
|
||
|
|
- std-error-handling
|
||
|
|
rules:
|
||
|
|
# Tests may ignore errors of set-up writes and helpers.
|
||
|
|
- path: _test\.go
|
||
|
|
linters: [errcheck, unparam]
|
||
|
|
|
||
|
|
formatters:
|
||
|
|
enable:
|
||
|
|
- gofmt
|
||
|
|
- goimports
|
||
|
|
settings:
|
||
|
|
goimports:
|
||
|
|
local-prefixes:
|
||
|
|
- github.com/datekeys/datekeys-go
|