Repository navigation
Expand file tree
/
Copy path.gitattributes
More file actions
60 lines (53 loc) · 2.61 KB
/
Copy path.gitattributes
File metadata and controls
60 lines (53 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Keep the Packagist dist tarball lean: development-only paths are not shipped
# to consumers of `composer require phpcpd-next/phpcpd`.
#
# Two things here are load-bearing and are not development files, however much
# they look like one:
#
# /locale is runtime data. `Strings\Catalogue` reads `locale/<code>.php`
# for every sentence the tool prints, so a dist archive without it
# cannot print anything at all — not a report, not a refusal, not
# its own help screen.
# /integration
# is mapped in the production autoloader (the PHPUnit integration),
# so consumers need it.
#
# Neither is export-ignored. Nothing that ships may be added to this list
# without checking what reads it at runtime.
/tests export-ignore
/bench export-ignore
/build export-ignore
/assets export-ignore
/.github export-ignore
# Maintainer scripts: the release runner and the phar and paper builders. The
# console entry point a consumer runs is /phpcpd at the root — composer's `bin`
# names that file, not this directory.
/bin export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.php-cs-fixer.dist.php export-ignore
/phpstan.neon export-ignore
/phpstan-bench.neon export-ignore
/phpunit.xml export-ignore
/rector.php export-ignore
# This project's own scan settings, which say where *its* fixtures and corpus
# live. Meaningless in a consumer's checkout, and actively confusing if found
# there: phpcpd reads ./phpcpd.ini by default.
/phpcpd.ini export-ignore
# Composer ignores a dependency's lock file — it resolves from composer.json —
# so this ships 163 KB that does nothing, and lists dev dependencies a consumer
# has not installed, which a scanner walking vendor/ can report advisories
# against. Three of the sixty-five packages installed here ship one. It stays in
# the repository; export-ignore only keeps it out of the dist tarball.
/composer.lock export-ignore
# Contributor- and history-facing docs. README, CHANGELOG, LICENSE, NOTICE and
# CONTRIBUTORS ship; /docs does not. It is the research record, the paper and
# the release notes — 3,500 lines of release-notes.md and a PDF — none of which
# a consumer of the library reads, and all of which GitHub renders from the
# repository rather than from the dist archive.
/docs export-ignore
/CLA.md export-ignore
/CONTRIBUTING.md export-ignore
/ROADMAP.md export-ignore
*.php text eol=lf diff=php