mirror of
https://github.com/opencontainers/runc.git
synced 2025-04-18 19:44:09 +03:00
That is, > QF1008: could remove embedded field "Resources" from selector (staticcheck) While occasionally useful, in other cases it actually decreases readability, so let's disable it even for "extra" (i.e. "new code") linters. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
23 lines
576 B
YAML
23 lines
576 B
YAML
# This is golangci-lint config file which is used to check new code in
|
|
# github PRs only (see lint-extra in .github/workflows/validate.yml).
|
|
#
|
|
# For the default linter config, see .golangci.yml. This config should
|
|
# only enable additional linters not enabled in the default config.
|
|
version: "2"
|
|
|
|
run:
|
|
build-tags:
|
|
- seccomp
|
|
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- godot
|
|
- revive
|
|
- staticcheck
|
|
settings:
|
|
staticcheck:
|
|
checks:
|
|
- all
|
|
- -QF1008 # https://staticcheck.dev/docs/checks/#QF1008 Omit embedded fields from selector expression.
|