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

[MAINTENANCE] Introduce usage of PHPStan checks for new PR #1052

Merged
merged 23 commits into from
Oct 24, 2023

Conversation

beatrycze-volk
Copy link
Collaborator

Depends on #1045

@sebastian-meyer sebastian-meyer added the 🛠 maintenance A task to keep the code up-to-date and manageable. label Oct 23, 2023
@sebastian-meyer sebastian-meyer changed the title Introduce usage of PHPStan checks for new PR [MAINTENANCE] Introduce usage of PHPStan checks for new PR Oct 23, 2023
Copy link
Member

@sebastian-meyer sebastian-meyer left a comment

Choose a reason for hiding this comment

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

Thank you very much for this pull request! I appreciate your hard work on improving and maintaining the code quality! Overall this looks very good and I'd like to add PHPStan to our array of static code analyzers.
What I don't like are a lot of those // @phpstan-ignore-next-line comments, which suggest, that there is some error in the code. Please, either also add a TODO to indicate what is wrong (as you did many times) or try to change PHPStan's configuration in order to not report false positives. (Disclaimer: I am no expert with PHPStan, so maybe my request is unrealistic...)

Classes/Common/AbstractDocument.php Outdated Show resolved Hide resolved
.github/phpstan.neon Outdated Show resolved Hide resolved
.github/phpstan.neon Show resolved Hide resolved
.github/phpstan.neon Outdated Show resolved Hide resolved
.github/workflows/phpstan.yml Outdated Show resolved Hide resolved
Classes/Common/AbstractDocument.php Outdated Show resolved Hide resolved
Classes/Common/Solr/SearchResult/Highlight.php Outdated Show resolved Hide resolved
Classes/Common/Solr/SolrSearchQuery.php Show resolved Hide resolved
Classes/Controller/Backend/NewTenantController.php Outdated Show resolved Hide resolved
Classes/Controller/Backend/NewTenantController.php Outdated Show resolved Hide resolved
Classes/Common/Helper.php Outdated Show resolved Hide resolved
@sebastian-meyer sebastian-meyer merged commit 0be9160 into kitodo:master Oct 24, 2023
6 checks passed
@beatrycze-volk beatrycze-volk deleted the phpstan branch October 24, 2023 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛠 maintenance A task to keep the code up-to-date and manageable.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants