There was an error while loading. Please reload this page.
1 parent b1d8344 commit 14b5c83Copy full SHA for 14b5c83
1 file changed
scripts/validate-json-yaml.sh
@@ -12,16 +12,6 @@ EXCLUDE_PATTERN='(charts/external-dns/templates|mkdocs\.yml)'
12
13
errors=0
14
15
-while IFS= read -r -d '' file; do
16
- if [[ "$file" =~ $EXCLUDE_PATTERN ]]; then
17
- continue
18
- fi
19
- if ! python3 -m json.tool "$file" > /dev/null 2>&1; then
20
- echo "FAIL: $file"
21
- errors=$((errors + 1))
22
23
-done < <(find . -name '*.json' -print0)
24
-
25
while IFS= read -r -d '' file; do
26
if [[ "$file" =~ $EXCLUDE_PATTERN ]]; then
27
continue
@@ -30,7 +20,7 @@ while IFS= read -r -d '' file; do
30
echo "FAIL: $file"
31
errors=$((errors + 1))
32
fi
33
-done < <(find . \( -name '*.yaml' -o -name '*.yml' \) -print0)
+done < <(find . \( -name '*.json' -o -name '*.yaml' -o -name '*.yml' \) -print0)
34
35
if [ "$errors" -gt 0 ]; then
36
echo ""
0 commit comments