Skip to content

@lenaorobei lenaorobei released this Jun 18, 2019

Versioning

Starting from the current release new versioning strategy will be used. One release line will be supported based on incremental approach despite introduced changes and single number sequence-based version identifier will be incremented every release.
Please refer to the wiki page and magento/architecture#136 thread for more details.

New Rules

  • Increased the severity level to 10 for InsecureFunctionSniff #104

Improvements

  • Improved LiteralNamespacesSniff by removing class exists checks and adding exclude patterns #9 in #89 by @ldusan84
  • htmlspecialchars is added to the list of discouraged functions in #96 by @davemacaulay
  • Removed Squiz.Commenting.ClassComment from the ruleset since it does not cover all Magento cases #106
  • Added excludes for phtml files #112

Fixes

  • Undefined index: comment_closer in AbstractApiSniff.php #86 in #87 by @mzeis
  • Fixed ForeachArrayMergeSniff throws an error for inline control structure #110 in #111
Assets 2

@lenaorobei lenaorobei released this Apr 17, 2019 · 26 commits to master since this release

New Rules

  • Magento2.Classes.DiscouragedDependencies detects explicit request of proxies and interceptors in constructors. #18 -> #59 by @maderlock
  • Magento2.Performance.ForeachArrayMerge detects array_merge(...) usage in a loop. #20 -> #72 by @larsroettig

Improvements

Fixes

  • */Fixtures/* exclude for rules that do not apply to test files.

Documentation

Assets 2

@lenaorobei lenaorobei released this Apr 5, 2019 · 58 commits to master since this release

  • added test files excludes for specific rules: Magento2.Security.IncludeFile, Magento2.Security.Supergloba, Magento2.SQL.RawQuery, Magento2.Exceptions.DirectThrow, Magento2.Functions.DiscouragedFunction, Magento2.Functions.StaticFunction, Magento2.CodeAnalysis.EmptyBlock, Squiz.Functions.GlobalFunction, Squiz.PHP.GlobalKeyword, PSR1.Files.SideEffects -> fixed #80.
Assets 2

@lenaorobei lenaorobei released this Apr 1, 2019 · 60 commits to master since this release

  • removed EmptyCheckSniff since there is no performance impact;
  • added more excludes for */Test/* files;
  • removed Squiz.Commenting.FunctionCommentThrowTag because it doesn't work with @inheritdoc tags.
Assets 2

@lenaorobei lenaorobei released this Mar 27, 2019 · 67 commits to develop since this release

🚀 Initial release of Magento Coding Standard - the result of MEQP and Magento 2 core rules consolidation.

Magento Coding Standard covers:

• PSR2 compliance
• the use of insecure functions
• unescaped output
• the use of deprecated PHP functions
• PHP code syntax
• naming convention
• the use of PHP superglobals
• empty code blocks
• improper exception handling
• raw SQL queries
and many other general PHP and Magento 2 specific code issues.

Assets 2
You can’t perform that action at this time.