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

Run PHPStan in CI #1017

Merged
merged 1 commit into from Jul 14, 2023
Merged

Run PHPStan in CI #1017

merged 1 commit into from Jul 14, 2023

Conversation

AJenbo
Copy link
Member

@AJenbo AJenbo commented Jul 8, 2023

Mostly copied from PDepend with a few adjustments for dependencies

@szepeviktor
Copy link
Contributor

In docblocks and exceptions FQCN should be used.
For example the fix in SARIFRenderer

        /** @var \PHPMD\RuleViolation $violation */

@AJenbo
Copy link
Member Author

AJenbo commented Jul 8, 2023

I'm not sure how this is relevant for this PR, but for PDepend we actually settled on importing the classes rather then using FQN, see pdepend/pdepend#587 I expect the same to hold true here.

@szepeviktor
Copy link
Contributor

All right, all right.

@AJenbo
Copy link
Member Author

AJenbo commented Jul 13, 2023

Here is a breakdown of how many issues are left at each level of PHPStan:

2: 61
3: 20
4: 29
5: 42
6: 125
7: 60
8: 40
9: 25

All in all very few issues.

@tvbeek tvbeek merged commit 10f8159 into phpmd:master Jul 14, 2023
26 checks passed
@AJenbo AJenbo deleted the phpstan-ci branch July 14, 2023 12:34
@ravage84 ravage84 added this to the 2.x (unspecific) milestone May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants