mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-14 23:28:06 +00:00
e347090571
* refactor: move from io/ioutil to io and os packages The io/ioutil package has been deprecated as of Go 1.16, see https://golang.org/doc/go1.16#ioutil. This commit replaces the existing io/ioutil functions with their new definitions in io and os packages. Signed-off-by: Eng Zer Jun <engzerjun@gmail.com> * build: update snapcraft `go-channel` to 1.17 Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
41 lines
763 B
YAML
41 lines
763 B
YAML
run:
|
|
timeout: 5m
|
|
linters:
|
|
enable:
|
|
- asciicheck
|
|
- depguard
|
|
- errorlint
|
|
- gci
|
|
- gochecknoinits
|
|
- gofmt
|
|
- goimports
|
|
- gosec
|
|
- megacheck
|
|
- misspell
|
|
- nakedret
|
|
- nolintlint
|
|
- predeclared
|
|
- revive
|
|
- unconvert
|
|
- unparam
|
|
linters-settings:
|
|
depguard:
|
|
list-type: blacklist
|
|
include-go-root: true
|
|
packages:
|
|
- io/ioutil
|
|
packages-with-error-message:
|
|
- io/ioutil: "The 'io/ioutil' package is deprecated. Use corresponding 'os' or 'io' functions instead."
|
|
issues:
|
|
exclude-rules:
|
|
- linters:
|
|
- gosec
|
|
text: "Implicit memory aliasing in for loop."
|
|
path: _test\.go
|
|
- linters:
|
|
- revive
|
|
text: "unexported-return"
|
|
- linters:
|
|
- revive
|
|
text: "var-naming"
|