pimcore / skeleton

The Pimcore Skeleton - The right package to get your Pimcore project started from the ground up! 💪
https://pimcore.com
100 stars 107 forks source link

Improve php-cs-fixer setup #185

Closed yariksheptykin closed 6 months ago

yariksheptykin commented 6 months ago

This PR:

mattamon commented 6 months ago

Hey @yariksheptykin thank you for your contribution.

Unfortunately we cannot accept it. The CS-Fixer rules are a company managed topic. Changing those rules needs to be considered for every bundle.

In such cases it is always better to open up a issue/discussion first, so we can evaluate the situation and give you feedback beforehand.

yariksheptykin commented 6 months ago

Hey @mattamon ! I don't understand what you mean. Do you mean that you at pimcore want to have a uniform cs-fixer ruleset that applies to all bundles and the skeleton? And you suggest to open issue first to duscuss which rules should go into the ruleset?

To clarify: my vision for this PR was to make use of the file that is already being shipped with the skeleton. I wanted to make sure that this file stays up to date, therefore I added cs-lint to CI. I also wanted to fix cs for the sources we ship with the skeleton. Whoever creates a new pimcore project from the skeleton should be able to quickly set up cs fixer, and the first commit should not be: "fixing cs in skeleton sources".

yariksheptykin commented 6 months ago

@mattamon your PR https://github.com/pimcore/skeleton/pull/188 is a better option. Feel free to close this one. We can start an issue to collect reasonable CS rules, which we can share pimcore-wide if you think it makes sense.

mattamon commented 6 months ago

@yariksheptykin Okay thank you! I will close your PR and merge mine.

It would be awesome if you could open up a discussion! https://github.com/orgs/pimcore/discussions