Repository navigation
Move coding standards to the shared v1 workflow and modernize tooling - #8
Conversation
- Call ray-di/.github coding-standards.yml@v1 with php_version 8.4 instead of the stale v2 branch.
- PHPUnit ^11.5 (the newest major PHP 8.2 allows), PHPStan ^2.1, PHPMD ^3.0, PHP_CodeSniffer ^4.0; Psalm ^6.0 || ^7.0 since Psalm 5 cannot install next to PHPUnit 11. - Remove the unused bamarni/composer-bin-plugin and its config; there is no vendor-bin directory. - Point the PHPUnit and Psalm schema locations at the installed versions and use the phpmd analyze syntax in the sa script. - Drop assertions PHPStan 2 reports as always true, and supply the missing-entity class name from a fixture instead of a @var on a literal.
- Add .gitattributes so tests and tool configs are left out of the dist archive. - Ignore the build/ and coverage.xml outputs of the coverage scripts. - Remove RELEASE-NOTES-1.0.0-rc1.md; the GitHub release and CHANGELOG.md hold the same notes. - Point the fixtures' $schema at docs/web_query.json, where the schema lives.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 1.x #8 +/- ##
===========================================
Coverage 100.00% 100.00%
Complexity 66 66
===========================================
Files 11 11
Lines 167 167
===========================================
Hits 167 167 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@coderabbitai review |
Action performed
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
ray-di/.github/.github/workflows/coding-standards.yml@v2(stale branch, PHP fixed at 8.3) →@v1withphp_version: 8.4. CI and Static Analysis were already on@v1.^5.18 || ^6.0 || ^7.0→^6.0 || ^7.0(Psalm 5 needs nikic/php-parser 4 and cannot install next to PHPUnit 11; Psalm 7 keeps PHP 8.6 installable).bamarni/composer-bin-plugin(novendor-bin/directory) and the staledealerdirectallow-plugins entry.phpunit.xml.distschema 11.5,psalm.xmlschemaLocation points tovendor/vimeo/psalm,composer sauses thephpmd analyzesyntax.assertIsArray,@var class-stringon literals)..gitattributes(export-ignorefor tests and tool configs), ignoredbuild/andcoverage.xml, removedRELEASE-NOTES-1.0.0-rc1.md(duplicates the GitHub release and CHANGELOG), fixed the fixtures'$schemapath.LICENSEfile declared incomposer.json.No change to
src/, the PHP floor (^8.2), or runtime dependencies.Local checks (PHP 8.4)
phpunit, phpcs, phpstan, psalm, phpmd, composer-require-checker,
composer validate --strictpass; lowest dependencies pass PHPUnit on PHP 8.2.Summary by CodeRabbit