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

Using PHPStan on contrib module develompnent. #22

Open
RuZniki opened this issue Nov 21, 2023 · 1 comment
Open

Using PHPStan on contrib module develompnent. #22

RuZniki opened this issue Nov 21, 2023 · 1 comment

Comments

@RuZniki
Copy link

RuZniki commented Nov 21, 2023

Hello, thanks a lot for a great project.
Someone in Drupal slack suggest me to us this build, and it's very easy to use.
I am working on enabling PHPStan check for pagerer module issue #3402666.

  1. I use ddev stan pagerer -l 2 to run check, but I get much more warnings and errors locally than I have in Gitlab CI (pipeline).
    Do you have any ideas why this can happen?

  2. I was trying to generate new phpstan-baseline.neon file. But I wasn't able to pass argument --generate-baseline to ddev stan command. Do you how to do that?

@RuZniki
Copy link
Author

RuZniki commented Nov 21, 2023

Looks like I found answer for my 1st question.
It was so obvious:

$ ddev stan pagerer -l 2
======================
Running PHPStan against: /web/modules/contrib/pagerer at level 2
======================
Note: Using configuration file /var/www/html/phpstan.neon.

phpstan.neon from project root is used instead of pagerer module.

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

1 participant