Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix existing code linting issues, make CI PHP Lint job fail if code style violations are detected #384

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thejamescollins
Copy link

Currently there are linting violations, but the PHP Lint job is still green/passing.

Most recent example: https://github.com/Kyon147/laravel-shopify/actions/runs/12164298709/job/33925618006

8ca670d should ensure that the CI job will fail if PHP CS Fixer detects linting violations.

328cc0f also fixes the 3 existing linting issues.

Currently there are linting violations, but the `PHP Lint` job is still passing.

https://github.com/Kyon147/laravel-shopify/actions/workflows/lint.yml

Most recent example: https://github.com/Kyon147/laravel-shopify/actions/runs/12164298709/job/33925618006

This change should ensure that the CI job will fail if PHP CS Fixer detects linting violations.
vendor/bin/php-cs-fixer fix
PHP CS Fixer 3.68.3 Persian Successor by Fabien Potencier, Dariusz Ruminski and contributors.
PHP runtime: 8.3.16
Running analysis on 1 core sequentially.
You can enable parallel runner and speed up the analysis! Please see usage docs for more information.
Loaded config default from "laravel-shopify/.php-cs-fixer.dist.php".
Using cache file ".php-cs-fixer.cache".
 216/216 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

   1) src/resources/routes/shopify.php
   2) src/resources/routes/api.php
   3) src/Http/Middleware/VerifyScopes.php

Fixed 3 of 216 files in 0.072 seconds, 18.00 MB memory used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant