File tree Expand file tree Collapse file tree 6 files changed +1056
-0
lines changed
tools/12_php-parallel-lint Expand file tree Collapse file tree 6 files changed +1056
-0
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,9 @@ jobs:
162162 - name : Run PHPLint tool
163163 run : make phplint
164164
165+ - name : Run PHP Parallel Lint tool
166+ run : make php-parallel-lint
167+
165168 - name : Run Psalm static analysis tool and report statistics to https://shepherd.dev/
166169 run : make psalm-github
167170
Original file line number Diff line number Diff line change @@ -354,6 +354,21 @@ else
354354 $( ALL_DONE)
355355endif
356356
357+ php-parallel-lint: # # Lint PHP files with `php-parallel-lint`
358+ php-parallel-lint: info_msg := @printf $( _TITLE) " OK" " php-parallel-lint"
359+ php-parallel-lint: info
360+ ifeq ($( INSIDE_DOCKER_CONTAINER) , 1)
361+ @./vendor/bin/parallel-lint --exclude .git --exclude app --exclude tools --exclude var --exclude vendor --colors --show-deprecated --blame .
362+ else ifeq ($( RUNNING_SOME_CONTAINERS) , 0)
363+ $( WARNING_DOCKER)
364+ else ifneq ($( RUNNING_ALL_CONTAINERS) , 1)
365+ $( ERROR_DOCKER)
366+ else
367+ $( NOTICE_HOST)
368+ @HOST_UID= $( HOST_UID) HOST_GID= $( HOST_GID) docker compose exec php make php-parallel-lint
369+ $( ALL_DONE)
370+ endif
371+
357372psalm: # # Runs Psalm static analysis tool
358373psalm: info_msg := @printf $( _TITLE) " OK" " Running Psalm - A static analysis tool for PHP"
359374psalm: info
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ phpinsights # Runs PHP Insights
9999phplint # Runs PHPLint
100100phploc # Runs `phploc` and create json output
101101phpmetrics # Generates PhpMetrics static analysis
102+ php-parallel-lint # Lint PHP files with `php-parallel-lint`
102103phpstan-github # Runs PHPStan static analysis tool (GitHub)
103104phpstan # Runs PHPStan static analysis tool
104105project-stats # Create simple project stats
Original file line number Diff line number Diff line change 1+ vendor
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " tarlepp/symfony-flex-backend-tools" ,
3+ "description" : " " ,
4+ "version" : " 1.0.0" ,
5+ "require" : {
6+ "php" : " ^8.3.0"
7+ },
8+ "require-dev" : {
9+ "php-parallel-lint/php-console-highlighter" : " 1.0.0" ,
10+ "php-parallel-lint/php-parallel-lint" : " 1.4.0" ,
11+ "roave/security-advisories" : " dev-latest"
12+ },
13+ "config" : {
14+ "allow-plugins" : true ,
15+ "platform" : {
16+ "php" : " 8.3.0"
17+ },
18+ "preferred-install" : {
19+ "*" : " dist"
20+ },
21+ "sort-packages" : true
22+ }
23+ }
You can’t perform that action at this time.
0 commit comments