Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php-stan "passes" on internal error #24

Open
ghost opened this issue Feb 22, 2022 · 0 comments
Open

php-stan "passes" on internal error #24

ghost opened this issue Feb 22, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 22, 2022

% pre-commit run --all-files php-stan
<a bunch of errors appear here>
% echo 'not a valid config file' >phpstan.neon
% pre-commit run --all-files php-stan
PHPStan..................................................................Passed
% pre-commit run --all-files --verbose php-stan
PHPStan..................................................................Passed
- hook id: php-stan
- duration: 0.76s

Begin PHPStan
Running command  vendor/bin/phpstan analyse ….php
────────────────────────────────────────────────────────────────────────────────
Note: Using configuration file …/phpstan.neon.

No rules detected

You have the following choices:

* while running the analyse option, use the --level option to adjust your rule level - the higher the stricter

* create your own custom ruleset by selecting which rules you want to check by copying the service definitions from the built
-in config level files in phar:///…/vendor/phpstan/phpstan/phpstan.phar/conf.
  * in this case, don't forget to define parameter customRulesetUsed in your config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants