mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
chore: install PhpMetrics 3.0.0rc6
mkdir -p tools/phpmetrics composer require --working-dir=tools/phpmetrics phpmetrics/phpmetrics:^3.0rc6
This commit is contained in:
parent
2968e1f1fd
commit
c37ac9d828
@ -90,7 +90,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"post-update-cmd": [
|
||||
"CodeIgniter\\ComposerScripts::postUpdate"
|
||||
"CodeIgniter\\ComposerScripts::postUpdate",
|
||||
"composer update --working-dir=tools/phpmetrics"
|
||||
],
|
||||
"analyze": [
|
||||
"Composer\\Config::disableProcessTimeout",
|
||||
@ -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
phpmetrics.json
Normal file
7
phpmetrics.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"includes": ["system"],
|
||||
"excludes": ["ThirdParty"],
|
||||
"report": {
|
||||
"html": "build/phpmetrics/"
|
||||
}
|
||||
}
|
5
tools/phpmetrics/composer.json
Normal file
5
tools/phpmetrics/composer.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"require-dev": {
|
||||
"phpmetrics/phpmetrics": "^3.0rc6"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user