@@ -146,15 +146,15 @@ report-code-coverage: ## update code coverage on coveralls.io. Note: COVERALLS_R
146146
147147# ##> phpcs ###
148148phpcs : # # Run PHP CodeSniffer
149- @make exec-bash cmd=" ./vendor/bin/phpcs --version && ./vendor/bin/phpcs --standard=PSR2 --colors -p app"
149+ @make exec-bash cmd=" ./vendor/bin/phpcs --version && ./vendor/bin/phpcs --standard=PSR2 --colors -p app tests "
150150# ##< phpcs ###
151151
152152# ##> ecs ###
153153ecs : # # Run Easy Coding Standard
154- @make exec-bash cmd=" error_reporting=0 ./vendor/bin/ecs --clear-cache check app"
154+ @make exec-bash cmd=" ./vendor/bin/ecs --version && ./vendor/bin/ecs --clear-cache check app tests "
155155
156156ecs-fix : # # Run The Easy Coding Standard to fix issues
157- @make exec-bash cmd=" error_reporting=0 ./vendor/bin/ecs --clear-cache --fix check app"
157+ @make exec-bash cmd=" ./vendor/bin/ecs --version && ./vendor/bin/ecs --clear-cache --fix check app tests "
158158# ##< ecs ###
159159
160160# ##> phpmetrics ###
@@ -171,3 +171,27 @@ phpmetrics-process: ## Generates PhpMetrics static analysis, should be run insid
171171 @php ./vendor/bin/phpmetrics --version
172172 @./vendor/bin/phpmetrics --junit=reports/junit.xml --report-html=reports/phpmetrics .
173173# ##< phpmetrics ###
174+
175+ # ##> php copy/paste detector ###
176+ phpcpd :
177+ @make exec cmd=" php phpcpd.phar --fuzzy app tests"
178+ # ##< php copy/paste detector ###
179+
180+ # ##> php mess detector ###
181+ phpmd :
182+ @make exec cmd=" php ./vendor/bin/phpmd app text phpmd_ruleset.xml --suffixes php"
183+ # ##< php mess detector ###
184+
185+ # ##> PHPStan static analysis tool ###
186+ phpstan :
187+ @echo " \033[32mRunning PHPStan - PHP Static Analysis Tool\033[39m"
188+ @make exec cmd=" php artisan cache:clear --env=test"
189+ @make exec cmd=" ./vendor/bin/phpstan --version"
190+ @make exec cmd=" ./vendor/bin/phpstan analyze app tests"
191+ # ##< PHPStan static analysis tool ###
192+
193+ # ##> Phpinsights PHP quality checks ###
194+ phpinsights :
195+ @echo " \033[32mRunning PHP Insights\033[39m"
196+ @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"
197+ # ##< Phpinsights PHP quality checks ###
0 commit comments