Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use PHP-Code-Style 2.0 #25

Merged
merged 3 commits into from
Dec 20, 2021
Merged

Use PHP-Code-Style 2.0 #25

merged 3 commits into from
Dec 20, 2021

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Dec 18, 2021

PHPCS: use PHP-Code-Style 2.0

  • Composer: require php-parallel-lint/php-code-style at 2.0 or higher.
  • Composer: remove the requirement for PHPCS. This will now be inherited from the code style repo.
  • GH Actions, test workflow: adjust the removal of the PHPCS dependency to match.

Ruleset: various tweaks for PHP-Code-Style 2.0

  • Scan all PHP files, not just the file in src for improved consistency across the code base, but exclude the vendor and the build (code coverage) directories.
  • Enable parallel scanning for faster results.
  • Use the ruleset from PHP-Code-Style by name.
  • Set the testVersion for use with PHPCompatibility.
  • Include minimal documentation in the ruleset.

CS: various minor fixes

Fix up the issues which will be flagged by PHP-Code-Style 2.0 and explicitly ignore a couple of (non-)issues.

Includes no longer allowing warnings in the GH Actions build.

* Composer: require `php-parallel-lint/php-code-style` at 2.0 or higher.
* Composer: remove the requirement for PHPCS. This will now be inherited from the code style repo.
* GH Actions, test workflow: adjust the removal of the PHPCS dependency to match.
* Scan all PHP files, not just the file in `src` for improved consistency across the code base, but exclude the `vendor` and the `build` (code coverage) directories.
* Enable parallel scanning for faster results.
* Use the ruleset from PHP-Code-Style by name.
* Set the `testVersion` for use with PHPCompatibility.
* Include minimal documentation in the ruleset.
Fix up the issues which will be flagged by PHP-Code-Style 2.0 and explicitly ignore a couple of (non-)issues.

Includes no longer allowing warnings in the GH Actions build.
@jrfnl jrfnl added this to the 1.x Next Release milestone Dec 18, 2021
@jrfnl jrfnl requested a review from grogy December 18, 2021 02:54
@grogy
Copy link
Member

grogy commented Dec 20, 2021

Thank you for the PR

@grogy grogy merged commit 0d14a2d into master Dec 20, 2021
@jrfnl jrfnl deleted the feature/update-code-style branch December 20, 2021 12:58
# for free to join this conversation on GitHub. Already have an account? # to comment
Development

Successfully merging this pull request may close these issues.

2 participants