Skip to content

Commit d73abdb

Browse files
gsherwoodjrfnl
andcommitted
.gitattributes: tests are no longer included in zip packages
.. but the test _framework_ files will be. This is set up in this way to prevent external standards having to use `--prefer-source` when their (sniff) tests are using the PHPCS test framework. Fixes squizlabs/PHP_CodeSniffer 1908 Fixes squizlabs/PHP_CodeSniffer 3158 Closes #73 Fixes 636 Co-authored-by: jrfnl <[email protected]>
1 parent d91b9f2 commit d73abdb

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.gitattributes

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,21 @@
55
# https://www.reddit.com/r/PHP/comments/2jzp6k/i_dont_need_your_tests_in_my_production/
66
# https://blog.madewithlove.be/post/gitattributes/
77
#
8-
.github/ export-ignore
9-
scripts/ export-ignore
10-
.cspell.json export-ignore
11-
.gitattributes export-ignore
12-
.gitignore export-ignore
13-
.markdownlint-cli2.yaml export-ignore
14-
.remarkignore export-ignore
15-
.remarkrc export-ignore
16-
.yamllint.yml export-ignore
17-
phpcs.xml.dist export-ignore
18-
phpstan.neon.dist export-ignore
19-
phpunit.xml.dist export-ignore
8+
.github/ export-ignore
9+
scripts/ export-ignore
10+
src/Standards/**/Tests/ export-ignore
11+
tests/Core/**/ export-ignore
12+
.cspell.json export-ignore
13+
.gitattributes export-ignore
14+
.gitignore export-ignore
15+
.markdownlint-cli2.yaml export-ignore
16+
.remarkignore export-ignore
17+
.remarkrc export-ignore
18+
.yamllint.yml export-ignore
19+
phpcs.xml.dist export-ignore
20+
phpstan.neon.dist export-ignore
21+
phpunit.xml.dist export-ignore
22+
tests/Core/ErrorSuppressionTest.php export-ignore
2023

2124
#
2225
# Declare files that should always have CRLF line endings on checkout.

0 commit comments

Comments
 (0)