Skip to content

Commit

Permalink
Merge pull request #463 from phel-lang/feature/improve-phpmetrics-usage
Browse files Browse the repository at this point in the history
Improve phpmetrics usage
  • Loading branch information
jenshaase committed Apr 14, 2022
2 parents d320f62 + 05ff5b3 commit 8d1d0cb
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 @@ -53,7 +53,7 @@
"vendor/bin/psalm --clear-cache",
"vendor/bin/phpstan clear-result-cache"
],
"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 @@ -63,7 +63,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 8d1d0cb

Please sign in to comment.