All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Avoid breaking XML files by excluding
PSR12.Operators.OperatorSpacing
from running there.
- Exclude pattern, the patterns did not include the dot of the extension allowing matching with the pathname (which for example in DDEV will match with
html
in/var/www/html
)
- Included more rules to exclude for (p)html and xml files. Indentation, line-length are very hard to fix consistently and prevents usage of component libraries (as for example with Hyvä)
- Apply more rules to .html and .phtml files. In previous updates (see pull requests #5 and #10), we excluded these files very widely; this change makes the exclusion more specific and intentional.
- Youwe ruleset will not check .html files any more. See also version 2.1.0.
- Allow use of stable version of
dealerdirect/phpcodesniffer-composer-installer
- Resolve incompatibility with
PSR12.ControlStructures.ControlStructureSpacing
(from theYouwe
standard) andPSR2.ControlStructures.ControlStructureSpacing
(from theMagento2
standard). For details, see #6.
- Youwe ruleset will not check .phtml files anymore and only uses the Magento2 coding standards to check files on
phpcs
.
- 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.
- Rule PSR2.Methods.MethodDeclaration.Underscore since this is already excluded by Magento.
- Argument colors and added it in the common Youwe coding standards.
- Old coding ruleset directories and migrated them to YouweMagento2.
- Vendor from MediactMagento2 to Magento2
- Copyrights.
- Dependency squizlabs/php_codesniffer.