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

Added magento/magento-coding-standard to keep closer to Magento standards #3

Merged
merged 15 commits into from
Oct 12, 2022

Conversation

leonhelmus
Copy link
Collaborator

Added

  • Composer package youwe/coding-standard which is now included in the Youwe coding standards for Magento 2.
  • Comments for why the ruleset was added.
  • Coding standards for phtml templates.
  • Package magento/magento-coding-standard as a requirement.
    The version v25 is used as a base. If not compatible please update the phpcs.xml in project root.

Removed

  • Rule PSR2.Methods.MethodDeclaration.Underscore since this is already excluded by Magento.
  • Argument colors and added it in the common Youwe coding standards.

fredden and others added 10 commits September 12, 2022 16:44
This is to avoid collision with upstream Magento2 coding standard. This is a
breaking change and will require a new major version number when it is
released.
This is feasible as we are releasing the next major version of this pacakge
anyway. (See previous commit.)
Use official Magento2 coding standard as base for YouweMagento2
…ards.

* Added support for phtml templates.
* Added Fisheye coding standards.
* Updated current rules and added comments why it was added.
Copy link

@fredden fredden left a comment

Choose a reason for hiding this comment

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

I'm not sure about the paths in the scripts section of composer.json, but will defer to / trust @leonhelmus who has tested this.
All other changes since I worked on this look good.

@@ -1,22 +1,33 @@
{
"name": "youwe/coding-standard-magento2",
"description": "Youwe PHP Coding Standard for Magento2",
"type": "phpcs-sniffs",
"homepage": "https://github.com/YouweGit/coding-standard-magento2",
"license": "proprietary",
Copy link
Member

Choose a reason for hiding this comment

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

Not blocking, but maybe a good idea to change this to a different license in the future as the code is open source and not proprietary.

@leonhelmus leonhelmus merged commit aed5868 into master Oct 12, 2022
@fredden fredden deleted the youwe-magento2 branch October 12, 2022 12:27
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.

4 participants