mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
c4a61aa918
This adds a new GHA CI job which runs a few extra linters. This is only done for pull requests, and should only warn about new code. The justification is simple: we want more linters, but since this is not a new project, adding a new linter meaning we have to fix all the existing warnings. In some cases having all the warnings fixed is difficult and takes time, plus it is usually a low priority task. Therefore, we are stuck with inability to add new linters because we can't fix all their warnings. Meanwhile, new pull requests add more code which is not linted. This is an attempt to break this vicious cycle. Let's enable godot and revive for now and see how it is going. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
16 lines
385 B
YAML
16 lines
385 B
YAML
# This is golangci-lint config file which is used to check new code in
|
|
# github PRs only (see lint-extra job 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.
|
|
|
|
run:
|
|
build-tags:
|
|
- seccomp
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- godot
|
|
- revive
|