actions-marketplace-validations/Run PHPStan PMMP Action
GitHub action for running phpstan analysis against PocketMine-MP plugin sources.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| php-version | Specifies the version of php to use. | no | 8.1.14 |
| phpstan-version | Specifies the version of phpstan to use. | no | 1.9.13 |
| pmmp-version | Specifies the version of pocketmine source to analyse against. | no | latest |
| pmmp-source-dir | Specifies the directory to install pocketmine sources to. | no | ./pocketmine |
| analyse | A space seperated list of paths to analyse. | no | undefined |
| level | Specifies the rule level to run. https://phpstan.org/user-guide/rule-levels Possible values: 1-9 | no | 9 |
| config | Path to phpstan configuration file. Relative paths are resolved based on the current working directory. | no | ./pocketmine/phpstan/phpstan.neon.dist |
| memory-limit | Specifies the memory limit in the same format php.ini accepts. | no | 1G |
| no-progress | Turns off the progress bar. | no | true |
| debug | Instead of the progress bar, it outputs lines with each analysed file before its analysis. | no | "" |
| quiet | Silences all the output. Useful if you’re interested only in the exit code. | no | "" |
| autoload-file | If your application uses a custom autoloader, you should set it up and register in a PHP file that is passed to this CLI option. Relative paths are resolved based on the current working directory. | no | ./pocketmine/phpstan/vendor/autoload.php |
| error-format | Specifies a custom error formatter. https://phpstan.org/user-guide/output-format | no | github |
| ansi | Overrides the auto-detection of whether colors should be used in the output and how nice the progress bar should be. | no | "" |
Outputs
no outputs