File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 88
99ifneq ("$(shell whoami) ", "skpr")
1010 EXEC =$(DOCKER_COMPOSE ) exec -T php-cli
11+ EXEC_APP =$(DOCKER_COMPOSE ) exec -w /data/app -T php-cli
1112endif
1213
1314DRUSH =$(EXEC ) ./bin/drush
@@ -45,6 +46,12 @@ login:
4546switch :
4647 $(GIT_SWITCH ) $(BRANCH )
4748
49+ phpstan :
50+ $(EXEC_APP ) /data/bin/phpstan --configuration=./core/phpstan.neon.dist --memory-limit=1G
51+
52+ phpstan-baseline :
53+ $(EXEC_APP ) /data/bin/phpstan --configuration=./core/phpstan.neon.dist --generate-baseline=./core/.phpstan-baseline.php --memory-limit=1G
54+
48559.3 : php8.0
4956 $(GIT_SWITCH ) 9.3.x
5057 make clean
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ Make commands should be executed on the host machine.
5151* ` umami ` - installs Drupal with the demo_umami profile
5252* ` login ` - gets a one-time login link
5353* ` switch ` - switches branch, e.g. ` make BRANCH=9.3 switch `
54+ * ` phpstan ` - runs phpstan for core
55+ * ` phpstan-baseline ` - generates phpstan baseline for core
5456* ` 10.2|10.3|10.4|10.5|11.0|11.1|11.x ` - provides a clean environment with the specified Drupal version
5557* ` php8.1|php8.2|php8.3 ` - starts the stack with the specified php version
5658
Original file line number Diff line number Diff line change 7676 "mstrelan\\ DrupalContrib\\ " : " src/"
7777 }
7878 },
79+ "autoload-dev" : {
80+ "psr-4" : {
81+ "Drupal\\ PHPStan\\ Rules\\ " : " app/core/tests/PHPStan/Rules"
82+ }
83+ },
7984 "extra" : {
8085 "drupal-scaffold" : {
8186 "locations" : {
You can’t perform that action at this time.
0 commit comments