Skip to content

Commit 53120da

Browse files
committed
Fix rector validation
1 parent c903b40 commit 53120da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/makefile/tests.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,19 @@ endif
8888

8989
## Validate drupal-rector
9090
drupalrectorval:
91+
ifneq ("$(wildcard rector.yml)","")
9192
@echo "Drupal Rector validation..."
9293
$(call php, composer install -o)
9394
$(call php, vendor/bin/rector -V)
9495
$(call php, vendor/bin/rector process --dry-run --no-progress-bar web/modules/custom web/themes/custom)
96+
else
97+
@echo "rector.yml file does not exist"
98+
endif
9599

96100
## Validate upgrade-status
97101
upgradestatusval:
98-
ifneq ("$(wildcard rector.yml)","")
99102
@echo "Upgrade status validation..."
100103
@$(call php, /bin/sh ./scripts/makefile/upgrade-status-validation.sh)
101-
else
102-
@echo "rector.yml file does not exist"
103-
endif
104104

105105
## Validate newline at the end of files
106106
newlineeof:

0 commit comments

Comments
 (0)