tighten / duster

Automatic configuration for Laravel apps to apply Tighten's standard linting & code standards.
MIT License
490 stars 15 forks source link

Workflow's Fix and local fixes are different. #154

Closed anuzpandey closed 4 months ago

anuzpandey commented 4 months ago

Hello.

Thank you for this package. But, I don't know what is wrong with my configuration, but, when I run duster fix in local dev, the formatting differs from the one that gets executed on github workflow.

Reference:

With local duster fix

image

With fixes from github-actions

image


I have a pint.json configuration.

https://gist.github.com/anuzpandey/ad0ba1483502440d7d63da0763484cf8

driftingly commented 4 months ago

Hi @anuzpandey, the most likely cause is different versions of Duster. The Duster action will always use the latest version. Try updating your local version:

composer require tightenco/duster --dev
anuzpandey commented 4 months ago

@driftingly Thank you, updating local version fixed it. Thank you so much.