From 56faa6f5ae11f0e9832d7836f7f8db49f44b2d09 Mon Sep 17 00:00:00 2001 From: roxblnfk Date: Fri, 20 Nov 2026 10:10:47 +0400 Subject: [PATCH] chore: whitelist files shipped in the dist archive chore: ignore dot-directories except tracked ones Assisted-By: Claude Opus 5.5 --- .gitattributes | 33 ++++++++++++++++++++++---------- .gitignore | 13 ++++--------- vendor-bin/code-style/.gitignore | 4 ++++ vendor-bin/infection/.gitignore | 4 ++++ vendor-bin/psalm/.gitignore | 4 ++++ 5 files changed, 39 insertions(+), 19 deletions(-) create mode 100644 vendor-bin/code-style/.gitignore create mode 100644 vendor-bin/infection/.gitignore create mode 100644 vendor-bin/psalm/.gitignore diff --git a/.gitattributes b/.gitattributes index dcc7079..e6461c7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,10 +1,23 @@ -/.* export-ignore -/tests export-ignore -/*.xml export-ignore -/*.yml export-ignore -/*.yaml export-ignore -/*.lock export-ignore -/*.dist export-ignore -/*.json export-ignore -/CLAUDE.md export-ignore -/composer.json -export-ignore +# Line-ending normalization for text files. +* text=auto + +# PHP-aware hunk headers in `git diff`. +*.php diff=php + +# List-like manifests: concurrent additions to the same list merge instead of conflicting. +/composer.json merge=union + +# Default: nothing goes into the dist archive. Re-include only what the installed package needs. +* export-ignore + +# Manifest and top-level documentation. +/composer.json -export-ignore +/LICENSE.md -export-ignore +/README.md -export-ignore +/CHANGELOG.md -export-ignore + +# Autoloaded source code and runtime resources. +/src -export-ignore +/src/** -export-ignore +/resources -export-ignore +/resources/** -export-ignore diff --git a/.gitignore b/.gitignore index 2658870..9574c5d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,8 @@ -/.* +/.*/ !/.github/ !/.well-known/ -!/.pre-commit-config.yaml /runtime/ /vendor/ -.env -composer.lock -*.db -clover.xml -docker-compose.override.yml -/vendor-bin/*/vendor/ -/vendor-bin/*/composer.lock +/composer.lock +/.env +*.log diff --git a/vendor-bin/code-style/.gitignore b/vendor-bin/code-style/.gitignore new file mode 100644 index 0000000..d4da745 --- /dev/null +++ b/vendor-bin/code-style/.gitignore @@ -0,0 +1,4 @@ +/vendor/ +/composer.lock +/.*/ +/skills.json diff --git a/vendor-bin/infection/.gitignore b/vendor-bin/infection/.gitignore new file mode 100644 index 0000000..d4da745 --- /dev/null +++ b/vendor-bin/infection/.gitignore @@ -0,0 +1,4 @@ +/vendor/ +/composer.lock +/.*/ +/skills.json diff --git a/vendor-bin/psalm/.gitignore b/vendor-bin/psalm/.gitignore new file mode 100644 index 0000000..d4da745 --- /dev/null +++ b/vendor-bin/psalm/.gitignore @@ -0,0 +1,4 @@ +/vendor/ +/composer.lock +/.*/ +/skills.json