generated from ddev/ddev-addon-template
-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64c65e6
commit e284f0d
Showing
5 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
#ddev-generated | ||
## Command provided by https://github.com/ddev/ddev-drupal-contrib | ||
## Description: Run phpstan inside the web container | ||
## Usage: phpstan [flags] [args] | ||
## Example: "ddev phpstan" or "ddev phpstan -n" | ||
## ProjectTypes: drupal,drupal8,drupal9,drupal10 | ||
## ExecRaw: true | ||
|
||
if ! command -v phpstan >/dev/null; then | ||
echo "phpstan is not available. You may need to 'ddev poser'" | ||
exit 1 | ||
fi | ||
test -e phpstan.neon || curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/default-ref/assets/phpstan.neon | ||
# Add an empty baseline file to ensure it exists. | ||
test -e phpstan-baseline.neon || touch phpstan-baseline.neon | ||
phpstan analyse $DDEV_DOCROOT/modules/custom "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters