mirror of
https://github.com/containers/podman.git
synced 2025-07-02 00:30:00 +08:00
Merge pull request #22236 from edsantiago/golangci-lint-update-options
[CI:DOCS] golangci-lint: update deprecated flags
This commit is contained in:
@ -2,12 +2,6 @@
|
|||||||
run:
|
run:
|
||||||
concurrency: 6
|
concurrency: 6
|
||||||
deadline: 5m
|
deadline: 5m
|
||||||
skip-dirs-use-default: true
|
|
||||||
skip-dirs:
|
|
||||||
- contrib
|
|
||||||
- dependencies
|
|
||||||
skip-files:
|
|
||||||
- swagger.go
|
|
||||||
modules-download-mode: readonly
|
modules-download-mode: readonly
|
||||||
linters:
|
linters:
|
||||||
enable-all: true
|
enable-all: true
|
||||||
@ -97,3 +91,9 @@ issues:
|
|||||||
# Set to 0 to disable.
|
# Set to 0 to disable.
|
||||||
# Default: 3
|
# Default: 3
|
||||||
max-same-issues: 0
|
max-same-issues: 0
|
||||||
|
exclude-dirs-use-default: true
|
||||||
|
exclude-dirs:
|
||||||
|
- contrib
|
||||||
|
- dependencies
|
||||||
|
exclude-files:
|
||||||
|
- swagger.go
|
||||||
|
@ -40,6 +40,6 @@ for to_lint in "${to_lint[@]}"; do
|
|||||||
# Make it really easy for a developer to copy-paste the command-line
|
# Make it really easy for a developer to copy-paste the command-line
|
||||||
# to focus or debug a single, specific linting category.
|
# to focus or debug a single, specific linting category.
|
||||||
set -x
|
set -x
|
||||||
./bin/golangci-lint run --timeout=10m --build-tags="${!tags_var}" --skip-dirs="${!skip_var}" "$@"
|
./bin/golangci-lint run --timeout=10m --build-tags="${!tags_var}" --exclude-dirs="${!skip_var}" "$@"
|
||||||
)
|
)
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user