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

Add Twig CS Fixer for lint and fix tasks #254

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

alexander-schranz
Copy link
Member

@alexander-schranz alexander-schranz commented Aug 19, 2024

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #issuenum
Related issues/PRs #issuenum
License MIT
Documentation PR sulu/sulu-docs#prnum

What's in this PR?

Add Twig CS Fixer.

composer fix

composer lint-twig-cs
composer twig-cs-fix

Why?

After some discussion with @Prokyonn we think it does make sense to add twig cs fixer.

I think the Twig CS Fixer it is a great tool by @VincentLanglet and adding it to our skeleton make other developers aware of that tool. If they don't want to use it they easily can remove it.

@alexander-schranz alexander-schranz added the enhancement New feature or request label Aug 19, 2024
@@ -4,6 +4,7 @@

$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->ignoreDotFiles(false)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the .twig-cs-fixer.php and .php-cs-fixer.dist.php where currently ignored but should be included. The VCS files .git is still ignored via ignoreVCS.

@chirimoya chirimoya merged commit 2e30526 into sulu:2.6 Aug 29, 2024
4 checks passed
@alexander-schranz alexander-schranz deleted the feature/twig-cs-fixer branch August 29, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants