mirror of
https://github.com/containers/skopeo.git
synced 2025-04-28 03:10:18 +00:00
Lint many more files in validate-lint
- Always lint everything, not just changed files; that means that if we upgrade the linter, we will need to clean everything up, but that's a good thing for contributors who come after that linter upgrade. - Don't skip linting the integration tests, there's no good reason to skip them. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
parent
43090b2917
commit
694b1565d1
@ -1,12 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname "$BASH_SOURCE")/.validate"
|
||||
|
||||
# We will eventually get to the point where packages should be the complete list
|
||||
# of subpackages, vendoring excluded, as given by:
|
||||
#
|
||||
IFS=$'\n'
|
||||
files=( $(validate_diff --diff-filter=ACMR --name-only -- '*.go' | grep -v '^vendor/\|^integration' || true) )
|
||||
files=( $(find . -name '*.go' | grep -v '^\./vendor/' | sort || true) )
|
||||
unset IFS
|
||||
|
||||
errors=()
|
||||
|
Loading…
Reference in New Issue
Block a user