Restrict tabs validation to YAML files only #14
0
scripts/validate/changelog.sh
Normal file → Executable file
0
scripts/validate/changelog.sh
Normal file → Executable file
0
scripts/validate/language_structure.sh
Normal file → Executable file
0
scripts/validate/language_structure.sh
Normal file → Executable file
0
scripts/validate/license_headers.sh
Normal file → Executable file
0
scripts/validate/license_headers.sh
Normal file → Executable file
0
scripts/validate/manifest.sh
Normal file → Executable file
0
scripts/validate/manifest.sh
Normal file → Executable file
0
scripts/validate/no_secrets.sh
Normal file → Executable file
0
scripts/validate/no_secrets.sh
Normal file → Executable file
0
scripts/validate/paths.sh
Normal file → Executable file
0
scripts/validate/paths.sh
Normal file → Executable file
0
scripts/validate/php_syntax.sh
Normal file → Executable file
0
scripts/validate/php_syntax.sh
Normal file → Executable file
5
scripts/validate/tabs.sh
Normal file → Executable file
5
scripts/validate/tabs.sh
Normal file → Executable file
@@ -4,8 +4,9 @@ set -euo pipefail
|
||||
# Detect TAB characters in source files tracked by Git. Uses careful
|
||||
# handling of filenames and avoids heredoc pitfalls.
|
||||
|
||||
# Limit file globs as appropriate for the repo
|
||||
files=$(git ls-files '*.php' '*.js' '*.py' || true)
|
||||
# Check only YAML/YML files where tabs are not allowed by the YAML specification.
|
||||
# Note: Other file types (PHP, JS, etc.) allow tabs per .editorconfig.
|
||||
files=$(git ls-files '*.yml' '*.yaml' || true)
|
||||
|
||||
if [ -z "${files}" ]; then
|
||||
echo "No files to check"
|
||||
|
||||
0
scripts/validate/version_alignment.sh
Normal file → Executable file
0
scripts/validate/version_alignment.sh
Normal file → Executable file
0
scripts/validate/xml_wellformed.sh
Normal file → Executable file
0
scripts/validate/xml_wellformed.sh
Normal file → Executable file
Reference in New Issue
Block a user