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 code quality tools and configuration (PHP Code Sniffer, PHPStan, PHPUnit) #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jensschuppe
Copy link
Contributor

Steps to be done locally:

  • copy phpstan.neon.template to phpstan.neon and replace {VENDOR_DIR} inside it
  • run composer composer-tools update inside the extension directory

PHPCS and PHPStan configuration might need updates for which files/directories to scan, so this PR is just a starting point.

@jensschuppe jensschuppe added the enhancement New feature or request label Dec 5, 2024
@jensschuppe jensschuppe added this to the Protoype milestone Dec 5, 2024
@jensschuppe jensschuppe requested a review from bjendres December 5, 2024 12:45
@jensschuppe jensschuppe mentioned this pull request Dec 6, 2024
@bjendres
Copy link
Member

bjendres commented Dec 6, 2024

I don't think I can "review" this - does it work @jensschuppe ?

@bjendres bjendres mentioned this pull request Dec 6, 2024
@jensschuppe
Copy link
Contributor Author

Sure, the tools run, but they produce loads of code quality errors, which could be either suppressed for now by adjusting the configuration, or not - which is why this is on "needs review".

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

Successfully merging this pull request may close these issues.

2 participants