File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 90
90
},
91
91
"scripts" : {
92
92
"post-update-cmd" : [
93
- " CodeIgniter\\ ComposerScripts::postUpdate"
93
+ " CodeIgniter\\ ComposerScripts::postUpdate" ,
94
+ " composer update --working-dir=tools/phpmetrics"
94
95
],
95
96
"analyze" : [
96
97
" Composer\\ Config::disableProcessTimeout" ,
109
110
" php-cs-fixer fix --ansi --verbose --diff --config=.php-cs-fixer.no-header.php" ,
110
111
" php-cs-fixer fix --ansi --verbose --diff"
111
112
],
113
+ "metrics" : " tools/phpmetrics/vendor/bin/phpmetrics --config=phpmetrics.json" ,
112
114
"sa" : " @analyze" ,
113
115
"style" : " @cs-fix" ,
114
116
"test" : " phpunit"
117
119
"analyze" : " Run static analysis" ,
118
120
"cs" : " Check the coding style" ,
119
121
"cs-fix" : " Fix the coding style" ,
122
+ "metrics" : " Run PhpMetrics" ,
120
123
"test" : " Run unit tests"
121
124
}
122
125
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "includes" : [" system" ],
3
+ "excludes" : [" ThirdParty" ],
4
+ "report" : {
5
+ "html" : " build/phpmetrics/"
6
+ }
7
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "require-dev" : {
3
+ "phpmetrics/phpmetrics" : " ^3.0rc6"
4
+ }
5
+ }
You can’t perform that action at this time.
0 commit comments