Skip to content

Commit

Permalink
chore: install PhpMetrics 3.0.0rc6
Browse files Browse the repository at this point in the history
mkdir -p tools/phpmetrics
composer require --working-dir=tools/phpmetrics phpmetrics/phpmetrics:^3.0rc6
  • Loading branch information
kenjis committed Feb 15, 2024
1 parent 2968e1f commit c37ac9d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
},
"scripts": {
"post-update-cmd": [
"CodeIgniter\\ComposerScripts::postUpdate"
"CodeIgniter\\ComposerScripts::postUpdate",
"composer update --working-dir=tools/phpmetrics"
],
"analyze": [
"Composer\\Config::disableProcessTimeout",
Expand All @@ -111,12 +112,14 @@
],
"sa": "@analyze",
"style": "@cs-fix",
"test": "phpunit"
"test": "phpunit",
"metrics": "tools/phpmetrics/vendor/bin/phpmetrics --config=phpmetrics.json"
},
"scripts-descriptions": {
"analyze": "Run static analysis",
"cs": "Check the coding style",
"cs-fix": "Fix the coding style",
"test": "Run unit tests"
"test": "Run unit tests",
"metrics": "Run PhpMetrics"
}
}
7 changes: 7 additions & 0 deletions phpmetrics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"includes": ["system"],
"excludes": ["ThirdParty"],
"report": {
"html": "build/phpmetrics/"
}
}
5 changes: 5 additions & 0 deletions tools/phpmetrics/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require-dev": {
"phpmetrics/phpmetrics": "^3.0rc6"
}
}

0 comments on commit c37ac9d

Please sign in to comment.