Add .gitignore and .gitattributes for repo hygiene.#27
Merged
gustavofreze merged 2 commits intomainfrom Apr 22, 2026
Merged
Conversation
…ent/IDE folders (.claude, .idea, .vscode) from being versioned and exclude dev-only files (tests, phpstan, phpcs, phpunit configs) from the Packagist tarball via export-ignore.
…ent/IDE folders (.claude, .idea, .vscode) from being versioned and exclude dev-only files (tests, phpstan, phpcs, phpunit configs) from the Packagist tarball via export-ignore.
There was a problem hiding this comment.
Pull request overview
This PR improves repository hygiene and standardizes contributor/AI guidance, while also updating the PHP toolchain and CI setup.
Changes:
- Add repo-wide formatting and export configuration via
.editorconfigand revamped.gitattributes. - Introduce project rule documents under
.claude/and Copilot instructions for consistent code generation. - Update dev tooling in
composer.json, extendMakefiletargets, and adjust CI PHP setup (removebcmathextension).
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Internal/Exceptions/InvalidPayloadSize.php | Refactors exception constructor signature/usage. |
| src/Internal/Exceptions/InvalidKsuidForInspection.php | Refactors exception constructor signature/usage. |
| composer.json | Reorders metadata, adds composer-normalize, bumps dev tool versions, updates scripts/config. |
| Makefile | Adds composer normalize to configure, adds show-outdated, tweaks help text. |
| .github/workflows/ci.yml | Removes bcmath extension from PHP setup steps. |
| .github/copilot-instructions.md | Adds instructions pointing to .claude rule sources. |
| .gitattributes | Adds LF normalization, linguist settings, and export-ignore rules. |
| .editorconfig | Adds baseline editor formatting rules. |
| .claude/rules/php-library-testing.md | Adds PHPUnit/BDD testing conventions and mutation/coverage rules. |
| .claude/rules/php-library-modeling.md | Adds architectural and naming/modeling rules for the library. |
| .claude/rules/php-library-documentation.md | Adds README/documentation standards. |
| .claude/rules/php-library-code-style.md | Adds PHP code style and design checklist rules. |
| .claude/rules/github-workflows.md | Adds conventions for GitHub Actions workflow structure/style. |
| .claude/CLAUDE.md | Adds project summary, command list, and formatting requirements. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.