Skip to content

Commit 1f7573c

Browse files
committed
ci(git): Simplify .gitattributes and .gitignore files
- Removed unnecessary export-ignore entries from .gitattributes - Added specific directories to .gitignore to reduce clutter - Updated .lintmdrc to exclude more build and vendor directories - Ensured composer-updater has clear documentation for method normalization
1 parent 507d233 commit 1f7573c

File tree

4 files changed

+42
-20
lines changed

4 files changed

+42
-20
lines changed

.gitattributes

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,31 @@
22
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
33

44
# Ignore all test and documentation with "export-ignore".
5-
/.gitattributes export-ignore
6-
/.gitignore export-ignore
7-
/.travis.yml export-ignore
8-
/phpunit.xml.dist export-ignore
9-
/tests export-ignore
10-
/.editorconfig export-ignore
11-
/.php_cs export-ignore
12-
/.github export-ignore
13-
/psalm.xml export-ignore
5+
.build/ export-ignore
6+
.chglog/ export-ignore
7+
.github/ export-ignore
8+
baselines/ export-ignore
9+
#config/ export-ignore
10+
#src/ export-ignore
11+
tests/ export-ignore
12+
vendor/ export-ignore
13+
vendor-bin/ export-ignore
14+
.editorconfig export-ignore
15+
.gitattributes export-ignore
16+
.gitignore export-ignore
17+
.lintmdrc export-ignore
18+
.php-cs-fixer.php export-ignore
19+
_ide_helper.php export-ignore
20+
CHANGELOG.md export-ignore
21+
composer.json export-ignore
22+
composer.lock export-ignore
23+
composer-dependency-analyser.php export-ignore
24+
composer-updater export-ignore
25+
LICENSE export-ignore
26+
monorepo-builder.php export-ignore
27+
peck.json export-ignore
28+
phpstan.neon export-ignore
29+
phpunit.xml.dist export-ignore
30+
README.md export-ignore
31+
rector.php export-ignore
32+
tests.php export-ignore

.gitignore

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1+
.build/
2+
.history/
13
.idea/
2-
.php_cs
3-
.phplint-cache
4-
.php_cs.cache
4+
vendor/
5+
6+
.DS_Store
57
.php-cs-fixer.cache
68
.phpunit.result.cache
7-
.build/
8-
composer.lock
9-
coverage/
109
clover.xml
10+
composer.lock
1111
phpunit.xml
1212
psalm.xml
13-
vendor/
14-
/tests.*
15-
.DS_Store
16-
.history/
17-
composer.phar
13+
tests.*

.lintmdrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
22
"excludeFiles": [
3+
".build/",
4+
"baselines/",
5+
"config/",
36
"src/",
47
"tests/",
58
"vendor/",
9+
"vendor-bin/",
610
"./CHANGELOG.md"
711
],
812
"rules": {

composer-updater

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ $status = (new SingleCommandApplication)
144144
return $this;
145145
}
146146

147+
/**
148+
* @noinspection PhpEnforceDocCommentInspection
149+
*/
147150
private function normalizeComposerJson(): self
148151
{
149152
$this->mustRunCommand("$this->composerBinary normalize --diff --ansi");

0 commit comments

Comments
 (0)