We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 717a469 commit 5c02594Copy full SHA for 5c02594
integration-tests/run.sh
@@ -50,14 +50,13 @@ normalize_config() {
50
' "$file" | sort
51
;;
52
xml)
53
- # For XML files, ignore order of <rule ref=.../> lines for comparison
+ # For XML files, ignore order of <rule ref=.../> lines and strip leading spaces
54
awk '
55
BEGIN { n = 0; end = ""; }
56
/^ *<rule ref=/ { rules[++n] = $0; next }
57
/^ *<\/ruleset>/ { end = $0; next }
58
- { print }
+ { gsub(/^ +/, "", $0); print }
59
END {
60
- # Sort and print rules
61
n = asort(rules, sorted_rules)
62
for (i = 1; i <= n; i++) print sorted_rules[i]
63
if (end) print end
0 commit comments