From 465a69372f39a1bb32a9def77d89565a8c756b18 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Mon, 16 Nov 2026 10:14:21 -0300 Subject: [PATCH 1/2] chore(git): update `.gitattributes` and `.gitignore` for improved file handling and exclusions. --- .gitattributes | 53 ++++++++++++++------------------------------------ .gitignore | 45 +++++++++++++++++++++++------------------- CHANGELOG.md | 1 + 3 files changed, 41 insertions(+), 58 deletions(-) diff --git a/.gitattributes b/.gitattributes index 61170e8..776d4ff 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,74 +5,51 @@ # Definitively text files *.php text -*.css text -*.js text *.txt text *.md text *.xml text *.json text +*.json5 text +*.neon text *.bat text *.sql text *.yml text +*.yaml text +*.svg text # Ensure those won't be messed up with *.png binary *.jpg binary *.gif binary *.ttf binary -*.woff2 binary # Exclude files from the archive +/.agents export-ignore +/.claude export-ignore +/.coderabbit.yaml export-ignore +/.codex export-ignore /.editorconfig export-ignore /.gitattributes export-ignore /.github export-ignore /.gitignore export-ignore -/.nvmrc export-ignore -/.prettierignore export-ignore -/.prettierrc.json export-ignore +/.idea export-ignore /.styleci.yml export-ignore -/.stylelintignore export-ignore +/.vscode export-ignore +/AGENTS.md export-ignore +/code_coverage export-ignore +/codeception.yml export-ignore /composer-require-checker.json export-ignore +/composer.lock export-ignore /docs export-ignore /ecs.php export-ignore /infection.json* export-ignore -/package-lock.json export-ignore -/package.json export-ignore +/internal export-ignore /phpstan*.neon* export-ignore /phpunit.xml.dist export-ignore /rector.php export-ignore -/resources/tests export-ignore /runtime export-ignore -/scaffold-lock.json export-ignore -/stryker.config.mjs export-ignore /tests export-ignore -/vite.config.js export-ignore -/vitest.config.js export-ignore # Avoid merge conflicts in CHANGELOG # https://about.gitlab.com/2015/02/10/gitlab-reduced-merge-conflicts-by-90-percent-with-changelog-placeholders/ /CHANGELOG.md merge=union - -/.agents export-ignore - -/.claude export-ignore - -/internal export-ignore -/vendor export-ignore -/node_modules export-ignore -/.env export-ignore -/.env.* export-ignore - -/.phpunit.cache export-ignore - -/.phpunit.result.cache export-ignore - -/.stryker-tmp export-ignore - -/.codex export-ignore - -/.config export-ignore - -/reports/mutation export-ignore - -/artifacts export-ignore diff --git a/.gitignore b/.gitignore index 73a398c..e1d5dfb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,16 @@ +# artifacs (if present) +artifacts + # Local AI agent, editor, and GitHub CLI config (if present) -.claude .codex .config/gh +# codecoverage (if present) +code_coverage + +# codeception (if present) +c3.php + # composer composer.lock @@ -14,12 +22,12 @@ composer.lock .github/prompts/** .github/skills/** -# Internal docs -internal - # mac ds_store (if present) .DS_Store +# netbeans project (if present) +nbproject + # node_modules (if present) node_modules @@ -33,12 +41,17 @@ node_modules .phpunit.cache .phpunit.result.cache -# mutation testing +# Private maintainer files (if present) +/internal/ + +# Report (if present) +reports + +# Stryker (if present) .stryker-tmp -reports/mutation -# local browser quality artifacts -artifacts +# vagrant (if present) +.vagrant # vendor vendor @@ -49,15 +62,7 @@ vendor # windows thumbnail cache (if present) Thumbs.db -# Package skill discovery; keep other local client state private. -!/.agents/ -/.agents/* -!/.agents/skills/ -/.agents/skills/* -!/.agents/skills/php-forge-debug-core -!/.claude/ -/.claude/* -!/.claude/skills/ -/.claude/skills/* -!/.claude/skills/php-forge-debug-core -/internal/ +# zend studio for eclipse project (if present) +.buildpath +.project +.settings diff --git a/CHANGELOG.md b/CHANGELOG.md index 530a94a..9bc4f20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## 0.1.3 Under development - docs(skills): add the package skill and AI guide; add `README.md` Security and Built with AI sections and Scorecard badge. +- chore(git): update `.gitattributes` and `.gitignore` for improved file handling and exclusions. ## 0.1.2 November 6, 2026 From 6b9e962a7c133a22c5e7d569109cd42cf006b58e Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Mon, 16 Nov 2026 10:50:00 -0300 Subject: [PATCH 2/2] Apply fixed Coderabbitai review. --- .gitattributes | 9 +++++++++ .gitignore | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 776d4ff..e9798e8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,6 +5,8 @@ # Definitively text files *.php text +*.css text +*.js text *.txt text *.md text *.xml text @@ -22,17 +24,22 @@ *.jpg binary *.gif binary *.ttf binary +*.woff2 binary # Exclude files from the archive /.agents export-ignore /.claude export-ignore /.coderabbit.yaml export-ignore /.codex export-ignore +/.config/gh export-ignore /.editorconfig export-ignore /.gitattributes export-ignore /.github export-ignore /.gitignore export-ignore /.idea export-ignore +/.nvmrc export-ignore +/.prettierignore export-ignore +/.prettierrc.json export-ignore /.styleci.yml export-ignore /.vscode export-ignore /AGENTS.md export-ignore @@ -44,11 +51,13 @@ /ecs.php export-ignore /infection.json* export-ignore /internal export-ignore +/node_modules export-ignore /phpstan*.neon* export-ignore /phpunit.xml.dist export-ignore /rector.php export-ignore /runtime export-ignore /tests export-ignore +/vendor export-ignore # Avoid merge conflicts in CHANGELOG # https://about.gitlab.com/2015/02/10/gitlab-reduced-merge-conflicts-by-90-percent-with-changelog-placeholders/ diff --git a/.gitignore b/.gitignore index e1d5dfb..d0477ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# artifacs (if present) +# artifacts (if present) artifacts # Local AI agent, editor, and GitHub CLI config (if present)