Skip to content

Commit

Permalink
Revert "Issue #249: Switch phpstan to include phpstan.neon.dist (#627)"
Browse files Browse the repository at this point in the history
This reverts commit cd5d5f6.
  • Loading branch information
mrdavidburns authored Aug 8, 2024
1 parent c3e6bb1 commit ef469c6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/TestStatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ jobs:
- name: Verify files were created
run: |
test -f phpcs.xml.dist
test -f phpstan.neon.dist
- name: Fix settings.php
run: |
Expand Down
3 changes: 1 addition & 2 deletions drainpipe-dev/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
"[web-root]/sites/sites.php": "scaffold/nightwatch/sites.php",
"[project-root]/.ddev/docker-compose.selenium.yaml": "scaffold/nightwatch/docker-compose.selenium.yaml",
"[project-root]/test/nightwatch/example.nightwatch.js": "scaffold/nightwatch/example.nightwatch.js",
"[project-root]/phpcs.xml.dist": "scaffold/phpcs.xml.dist",
"[project-root]/phpstan.neon.dist": "scaffold/phpstan.neon.dist"
"[project-root]/phpcs.xml.dist": "scaffold/phpcs.xml.dist"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
includes:
- ./vendor/mglaman/phpstan-drupal/extension.neon
- ./vendor/phpstan/phpstan-deprecation-rules/rules.neon
- ../../../mglaman/phpstan-drupal/extension.neon
- ../../../phpstan/phpstan-deprecation-rules/rules.neon

parameters:
excludePaths:
Expand Down
8 changes: 6 additions & 2 deletions tasks/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,15 @@ tasks:
- |
{{ .FUNC_ENSURE_DIRS }}
- |
CONFIG="phpstan.neon"
if [ ! -f phpstan.neon ]; then
CONFIG="vendor/lullabot/drainpipe/scaffold/phpstan.neon"
fi
if [ "{{.format}}" == "junit" ]; then
mkdir -p test_result
./vendor/bin/phpstan analyse --error-format=junit {{.TEST_DIRS}} > test_result/phpstan.xml
./vendor/bin/phpstan analyse --error-format=junit -c $CONFIG {{.TEST_DIRS}} > test_result/phpstan.xml
else
./vendor/bin/phpstan analyse {{.TEST_DIRS}}
./vendor/bin/phpstan analyse -c $CONFIG {{.TEST_DIRS}}
fi
phpunit:
desc: Runs PHPUnit
Expand Down

0 comments on commit ef469c6

Please sign in to comment.