Skip to content

Commit d9cb7e8

Browse files
committed
chore: add psalm-all and style-all Makefile targets
Add targets to run psalm and php-cs-fixer across all packages, similar to the existing rector-all target.
1 parent a407d11 commit d9cb7e8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,20 @@ rector-all: ## Run rector on all packages (with composer update)
7272
$(MAKE) --no-print-directory PROJECT=$$pkg update && \
7373
$(MAKE) --no-print-directory PROJECT=$$pkg rector || exit 1; \
7474
done
75+
76+
psalm-all: ## Run psalm on all packages (with composer update)
77+
@for pkg in $(PACKAGES); do \
78+
echo "=== Running psalm on $$pkg ==="; \
79+
$(MAKE) --no-print-directory PROJECT=$$pkg update && \
80+
$(MAKE) --no-print-directory PROJECT=$$pkg psalm || exit 1; \
81+
done
82+
83+
style-all: ## Run php-cs-fixer on all packages (with composer update)
84+
@for pkg in $(PACKAGES); do \
85+
echo "=== Running style on $$pkg ==="; \
86+
$(MAKE) --no-print-directory PROJECT=$$pkg update && \
87+
$(MAKE) --no-print-directory PROJECT=$$pkg style || exit 1; \
88+
done
7589
validate: ## Validate composer file
7690
$(DC_RUN_PHP) env XDEBUG_MODE=off composer validate --no-plugins
7791
packages-composer: ## Validate all composer packages

0 commit comments

Comments
 (0)