@@ -140,15 +140,15 @@ report-code-coverage: ## update code coverage on coveralls.io. Note: COVERALLS_R
140140
141141# ##> phpcs ###
142142phpcs : # # Run PHP CodeSniffer
143- @make exec-bash cmd=" ./vendor/bin/phpcs --version && ./vendor/bin/phpcs --standard=PSR2 --colors -p app"
143+ @make exec-bash cmd=" ./vendor/bin/phpcs --version && ./vendor/bin/phpcs --standard=PSR2 --colors -p app tests "
144144# ##< phpcs ###
145145
146146# ##> ecs ###
147147ecs : # # Run Easy Coding Standard
148- @make exec-bash cmd=" error_reporting=0 ./vendor/bin/ecs --clear-cache check app"
148+ @make exec-bash cmd=" ./vendor/bin/ecs --version && ./vendor/bin/ecs --clear-cache check app tests "
149149
150150ecs-fix : # # Run The Easy Coding Standard to fix issues
151- @make exec-bash cmd=" error_reporting=0 ./vendor/bin/ecs --clear-cache --fix check app"
151+ @make exec-bash cmd=" ./vendor/bin/ecs --version && ./vendor/bin/ecs --clear-cache --fix check app tests "
152152# ##< ecs ###
153153
154154# ##> phpmetrics ###
@@ -165,3 +165,27 @@ phpmetrics-process: ## Generates PhpMetrics static analysis, should be run insid
165165 @php ./vendor/bin/phpmetrics --version
166166 @./vendor/bin/phpmetrics --junit=reports/junit.xml --report-html=reports/phpmetrics .
167167# ##< phpmetrics ###
168+
169+ # ##> php copy/paste detector ###
170+ phpcpd :
171+ @make exec cmd=" php phpcpd.phar --fuzzy app tests"
172+ # ##< php copy/paste detector ###
173+
174+ # ##> php mess detector ###
175+ phpmd :
176+ @make exec cmd=" php ./vendor/bin/phpmd app text phpmd_ruleset.xml --suffixes php"
177+ # ##< php mess detector ###
178+
179+ # ##> PHPStan static analysis tool ###
180+ phpstan :
181+ @echo " \033[32mRunning PHPStan - PHP Static Analysis Tool\033[39m"
182+ @make exec cmd=" php artisan cache:clear --env=test"
183+ @make exec cmd=" ./vendor/bin/phpstan --version"
184+ @make exec cmd=" ./vendor/bin/phpstan analyze app tests"
185+ # ##< PHPStan static analysis tool ###
186+
187+ # ##> Phpinsights PHP quality checks ###
188+ phpinsights :
189+ @echo " \033[32mRunning PHP Insights\033[39m"
190+ @make exec cmd=" php -d error_reporting=0 ./vendor/bin/phpinsights analyse --no-interaction --min-quality=100 --min-complexity=85 --min-architecture=100 --min-style=100"
191+ # ##< Phpinsights PHP quality checks ###
0 commit comments