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

Add PHPStan checks (level 1) #39

Merged
merged 2 commits into from
Nov 6, 2023

Conversation

cedric-anne
Copy link
Contributor

@cedric-anne cedric-anne commented Nov 3, 2023

@cedric-anne cedric-anne self-assigned this Nov 3, 2023
@cedric-anne cedric-anne marked this pull request as ready for review November 4, 2023 09:19
Copy link
Contributor

@trasher trasher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phpstan is not run

vendor/bin/parallel-lint --colors --checkstyle --exclude ./vendor/ . | vendor/bin/cs2pr
- name: "PHP_CodeSniffer"
run: |
vendor/bin/phpcs -q --report=checkstyle | vendor/bin/cs2pr
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one seems not running

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are, but as output is piped to cs2pr, it is actually hard to know it. I will fix this.

@cedric-anne cedric-anne force-pushed the feature/phpstan-lvl-1 branch 3 times, most recently from 9890f4d to 1eb18b8 Compare November 6, 2023 08:44
@cedric-anne
Copy link
Contributor Author

I removed usage to cs2pr for now and added some messages (in yellow in following screenshots).
image

@cedric-anne cedric-anne merged commit 06a4492 into pluginsGLPI:develop Nov 6, 2023
4 checks passed
@cedric-anne cedric-anne deleted the feature/phpstan-lvl-1 branch February 9, 2024 10:28
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

Successfully merging this pull request may close these issues.

2 participants