Skip to content

Exclude tests folder when using composer - #9

Merged
fivefilters merged 4 commits into
masterfrom
ignore-tests
Nov 28, 2022
Merged

Exclude tests folder when using composer#9
fivefilters merged 4 commits into
masterfrom
ignore-tests

Conversation

@fivefilters

Copy link
Copy Markdown
Owner

Closes #8

@fivefilters
fivefilters merged commit aae0ff5 into master Nov 28, 2022
fivefilters pushed a commit that referenced this pull request Jul 21, 2026
…ge stats

The previous pattern `test/* linguist-language=PHP` never matched the
~30MB of HTML fixtures because `*` in .gitattributes does not cross
directory boundaries, so files like test/test-pages/lwn-1/source.html
were still counted as HTML, making GitHub report the repo as ~99% HTML.

Replace it with `/test/** linguist-vendored`, which matches the whole
test tree at any depth and removes it from language statistics entirely,
so the language bar reflects the actual library code in src/.

Composer dist installs were already unaffected: `/test/ export-ignore`
(present since PR #9 and included in the v4.0.0 release) keeps the test
directory out of the archives GitHub generates for Composer.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PwAk1TWbeydKTSWRfj7FGb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exclude tests folder when using composer

1 participant