Skip to content

Commit

Permalink
Improve phpmetrics usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Apr 9, 2022
1 parent 80bed1e commit 05ff5b3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
7 changes: 5 additions & 2 deletions composer.json
Expand Up @@ -47,7 +47,7 @@
"@csrun",
"@psalm"
],
"test-compiler": "./vendor/bin/phpunit --testsuite=integration,unit",
"test-compiler": "./vendor/bin/phpunit --testsuite=integration,unit --log-junit=data/log-junit.xml",
"test-compiler:coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --testsuite=integration,unit --coverage-html=data/coverage-html --coverage-xml=data/coverage-xml --log-junit=data/coverage-xml/junit.xml",
"test-core": "./phel test",
"psalm": "./vendor/bin/psalm --no-cache",
Expand All @@ -56,7 +56,10 @@
"phpbench": "./vendor/bin/phpbench run --report=aggregate --ansi",
"phpbench-base": "./vendor/bin/phpbench run --tag=baseline --report=aggregate --progress=plain --ansi",
"phpbench-ref": "./vendor/bin/phpbench run --ref=baseline --report=aggregate --progress=plain --ansi",
"metrics-report": "./vendor/bin/phpmetrics --report-html=data/metrics-report src/php"
"metrics-report": [
"@test-compiler",
"./vendor/bin/phpmetrics --config=phpmetrics-config.json --junit=data/log-junit.xml"
]
},
"bin": [
"phel"
Expand Down
17 changes: 17 additions & 0 deletions phpmetrics-config.json
@@ -0,0 +1,17 @@
{
"includes": [
"src/php"
],
"excludes": [
"tests"
],
"report": {
"html": "data/metrics-report",
"violations": "data/metrics-report/violations.xml"
},
"plugins": {
"git": {
"binary": "git"
}
}
}

0 comments on commit 05ff5b3

Please sign in to comment.