mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
127e8e68d3
The new configuration file was initially generated by golangci-lint migrate, when tweaked to minimize and simplify. golangci-lint v2 switches to a new version of staticcheck which shows much more warnings. Some of them were fixed by a few previous commits, and the rest of them are disabled. In particular, ST1005 had to be disabled (an attempt to fix it was made in https://github.com/opencontainers/runc/pull/3857 but it wasn't merged). Also, golangci-extra was modified to include ALL staticcheck linters. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
22 lines
465 B
YAML
22 lines
465 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
|