Skip to content

Commit a9d90e4

Browse files
committed
minor #164 Lint "*.xlf" files (phansys)
This PR was merged into the 3.x branch. Discussion ---------- |Q |A | |--- |---| |Branch |3.x| |Bug fix? |no | |New feature? |no | |BC breaks? |no | |Deprecations?|no | |Tests pass? |yes| |Fixed tickets|n/a| |License |MIT| |Doc PR |n/a| Commits ------- 1a29933 Lint "*.xlf" files
2 parents 459d1ff + 1a29933 commit a9d90e4

17 files changed

Lines changed: 3346 additions & 3348 deletions

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ lint-yaml:
2727
.PHONY: lint-yaml
2828

2929
lint-xml:
30-
find . \( -name '*.xml' -or -name '*.xliff' \) \
30+
find . \( -name '*.xml' -or -name '*.xliff' -or -name '*.xlf' \) \
3131
-not -path './vendor/*' \
32-
-not -path './src/Resources/public/vendor/*' \
3332
| while read xmlFile; \
3433
do \
3534
XMLLINT_INDENT=' ' xmllint --encode UTF-8 --format "$$xmlFile"|diff - "$$xmlFile"; \
@@ -50,9 +49,8 @@ cs-fix-php:
5049
.PHONY: cs-fix-php
5150

5251
cs-fix-xml:
53-
find . \( -name '*.xml' -or -name '*.xliff' \) \
52+
find . \( -name '*.xml' -or -name '*.xliff' -or -name '*.xlf' \) \
5453
-not -path './vendor/*' \
55-
-not -path './src/Resources/public/vendor/*' \
5654
| while read xmlFile; \
5755
do \
5856
XMLLINT_INDENT=' ' xmllint --encode UTF-8 --format "$$xmlFile" --output "$$xmlFile"; \

0 commit comments

Comments
 (0)