Skip to content

Conversation

frankverhoeven
Copy link
Contributor

@frankverhoeven frankverhoeven commented May 15, 2020

Upgrades the coding standard to use the Doctrine coding-standard as basis. The Symfony coding standard will be dropped. Reason being the way more active development of the Doctrine CS and feature-set it has to offer.

This upgrade does not alter previous rules, but does introduce loads of new rules. Best source of information on this is the Doctrine repository: https://github.com/doctrine/coding-standard.

Upgrading in configuration, that previously passed all rules, looked as follows: https://github.com/MyOnlineStore/configuration/pull/166

@frankverhoeven frankverhoeven added the enhancement New feature or request label May 15, 2020
@digibeuk
Copy link
Contributor

digibeuk commented May 18, 2020

I think this makes sense, the overview at https://www.doctrine-project.org/projects/doctrine-coding-standard/en/latest/reference/index.html#introduction mentions points that are common sense. If I look at your PR for configuration it becomes clear it has benefits in picking out subtle mistakes.

Copy link

@fred-jan fred-jan left a comment

Choose a reason for hiding this comment

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

I was instantly sold upon reading this one: Assignment in condition is not allowed 😆

@frankverhoeven frankverhoeven merged commit f92fb85 into master May 20, 2020
@frankverhoeven frankverhoeven deleted the upgrade-with-doctrine-cs-base branch May 20, 2020 05:44
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