Skip to content

Commit 4967b0e

Browse files
committed
chore(package): [phpmetrics/phpmetrics] add with related settings
1 parent f21d201 commit 4967b0e

File tree

4 files changed

+109
-1
lines changed

4 files changed

+109
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ yarn-error.log
1515
/.idea
1616
/.vscode
1717
/.deptrac.cache
18+
/reports

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"nunomaduro/collision": "^6.1",
2626
"nunomaduro/larastan": "^2.0",
2727
"nunomaduro/phpinsights": "^2.6",
28+
"phpmetrics/phpmetrics": "^2.8",
2829
"phpstan/extension-installer": "^1.1",
2930
"phpstan/phpstan-mockery": "^1.1",
3031
"phpunit/phpunit": "^9.5.10",

composer.lock

+69-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpmetrics.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"includes": ["Modules"],
3+
"extensions": ["php", "php8"],
4+
"report": {
5+
"html": "reports/phpmetrics/report/",
6+
"json": "reports/phpmetrics/report.json",
7+
"violations": "reports/phpmetrics/violations.xml"
8+
},
9+
"groups": [
10+
{
11+
"name": "Domain",
12+
"match": "!Domain!i"
13+
},
14+
{
15+
"name": "Application",
16+
"match": "!Application!i"
17+
},
18+
{
19+
"name": "Infrastructure",
20+
"match": "!Infrastructure!i"
21+
}
22+
],
23+
"plugins": {
24+
"git": {
25+
"binary": "git"
26+
},
27+
"junit": {
28+
"report": "reports/junit.xml"
29+
}
30+
},
31+
"searches": {
32+
"Class with too many responsibilities": {
33+
"type": "class",
34+
"lcom": ">=7",
35+
"failIfFound": true
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)