Align repository with tiny-blocks canonical rules.#19
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Aligns the repository with the tiny-blocks canonical standards by updating tooling/CI configuration, documentation templates, and test/style conventions to match the ecosystem’s shared rules.
Changes:
- Standardize dev tooling (Composer scripts, PHPUnit/PHPStan/PHPCS/Infection configs, report paths under
reports/, Makefile targets). - Adopt canonical GitHub repo templates and workflows (CI pipeline shape, CodeQL/auto-assign concurrency and permissions, issue/PR templates, SECURITY policy).
- Update library docs/tests to follow tiny-blocks conventions (README example shape, BDD-style test naming/structure, Currency doc refinements).
Reviewed changes
Copilot reviewed 29 out of 30 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
tests/CurrencyTest.php |
Renames/restructures tests to match canonical BDD conventions and data providers. |
src/Currency.php |
Refines enum/class docs and normalizes getFractionDigits() match formatting. |
SECURITY.md |
Adds canonical security policy. |
README.md |
Aligns README structure and code example format with canonical documentation rules. |
phpunit.xml |
Switches to strict canonical PHPUnit settings and report paths under reports/. |
phpstan.neon.dist |
Sets PHPStan to level: max, includes tests, and adds scoped ignores per rules. |
phpcs.xml |
Adds canonical PHPCS ruleset configuration. |
Makefile |
Updates targets to delegate to standardized Composer scripts and new report paths. |
infection.json.dist |
Aligns Infection config and output paths with canonical rules. |
composer.json |
Adds keywords and standardizes scripts to the canonical tiny-blocks set. |
.gitignore |
Updates ignore list to canonical grouping and reports/ directory conventions. |
.github/workflows/codeql.yml |
Adds workflow concurrency and timeout alignment. |
.github/workflows/ci.yml |
Reworks CI into canonical 4-job pipeline with PHP version resolution from composer.json. |
.github/workflows/auto-assign.yml |
Adds concurrency/timeout and renames job to a descriptive identifier. |
.github/PULL_REQUEST_TEMPLATE.md |
Adds canonical PR template. |
.github/ISSUE_TEMPLATE/feature_request.md |
Adds canonical feature request template. |
.github/ISSUE_TEMPLATE/bug_report.md |
Adds canonical bug report template. |
.github/copilot-instructions.md |
Updates Copilot guidance to reference .claude/ rule sources. |
.gitattributes |
Updates export-ignore list to exclude dev-only artifacts like reports/ and caches. |
.editorconfig |
Adds canonical max_line_length = 120. |
.claude/rules/php-library-tooling.md |
Adds canonical tooling rulebook. |
.claude/rules/php-library-testing.md |
Expands canonical testing rules (BDD, fixtures, coverage discipline). |
.claude/rules/php-library-modeling.md |
Expands canonical modeling/nomenclature rules. |
.claude/rules/php-library-github-workflows.md |
Adds canonical workflow structure and pinning rules. |
.claude/rules/php-library-documentation.md |
Adds canonical README/Markdown documentation rules and templates. |
.claude/rules/php-library-commits.md |
Adds canonical Conventional Commits guidance (when requested). |
.claude/rules/php-library-code-style.md |
Adds canonical semantic code rules and formatting overrides. |
.claude/rules/php-library-architecture.md |
Adds canonical folder layout and public API boundary rules. |
.claude/rules/github-workflows.md |
Removes superseded workflow rule file in favor of the new canonical workflows ruleset. |
.claude/CLAUDE.md |
Simplifies top-level guidance to point to the scoped rule files. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.