Update tabs validation to only check YAML files where tabs are not allowed

Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-03 21:31:52 +00:00
parent 39bca37eae
commit 835632460e
10 changed files with 3 additions and 2 deletions

5
scripts/validate/tabs.sh Normal file → Executable file
View 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"