Update dependency magento/magento-coding-standard to v31
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| magento/magento-coding-standard | require-dev | major |
^6 -> ^31
|
⚠ Dependency Lookup Warnings ⚠
Warnings were logged while processing this repo. Please check the logs for more information.
Release Notes
magento/magento-coding-standard (magento/magento-coding-standard)
v31: Version 31
-
rector/rectorupgraded to^0.15.10version
v30: Version 30
- Minimum version of PHP is set to 7.4
-
webonyx/graphql-phpis updated to version15.0
v29: Version 29
Returning back support of PHP 7.3
v28: Version 28
- Fix performance issue with big arrays #429
v27: Version 27
- Support of PHP 8.1 features
v26: Version 26
What's Changed
- Fix Rector tests by @bl4de in https://github.com/magento/magento-coding-standard/pull/410
- Allow to skip see tag in annotation with specific deprecated comment by @loginesta in https://github.com/magento/magento-coding-standard/pull/419
- Add eliminated classes to Magento coding standards in Legacy\RestrictedCodeSniff by @karyna-tsymbal-atwix in https://github.com/magento/magento-coding-standard/pull/420
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v25...v26
v25: Version 25
Bugfixes
- Avoid processing less and CSS pseudo-classes by @svera
- Allow empty constructor function blocks when using property promotion by @mfickers
v24: Version 24
Bug fixes:
Fixed error when calling hasDeprecatedWellFormatted with a false $commentStartPtr in https://github.com/magento/magento-coding-standard/pull/400 by @mattijv
v23: Version 23
Improvements
- Added match keyword to a Reserved words sniff by @karyna-tsymbal-atwix
- Require content for
@seeand@deprecatedtags in #393 by @loginesta - Corrected messages for discouraged functions by @sivaschenko
v22: Version 22
What's Changed
- AC-2724: Update rector dependency to the latest version by @eliseacornejo in https://github.com/magento/magento-coding-standard/pull/384
- Fix warnings detected by phpcs & phpunit by @fredden in https://github.com/magento/magento-coding-standard/pull/383
- AC-1879: Magento2/Sniffs/Legacy/ObsoleteResponseSniff.php issue by @bl4de in https://github.com/magento/magento-coding-standard/pull/386
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v21...v22
v21: Version 21
What's Changed
- AC-1655: Fixed obsolete attributes not detected by @svera in https://github.com/magento/magento-coding-standard/pull/380
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v20...v21
v20: Version 20
What's Changed
- AC-2394 Update eslint npm dependency by @loginesta in https://github.com/magento/magento-coding-standard/pull/379
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v19...v20
v19: Version 19
What's changed
- AC-2219: Implemented autofixing for
Magento2.Functions.FunctionsDeprecatedWithoutArgument.FunctionsDeprecatedWithoutArgumentcheck
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v18...v19
v18: Version 18
What's Changed
- AC-1895: Avoid having duplicated issues in magento-coding-standard by @svera in https://github.com/magento/magento-coding-standard/pull/362
- AC-1895: Exclude sniff that is duplicated by @eliseacornejo in https://github.com/magento/magento-coding-standard/pull/365
- PHP 8.1 Compatibility by @sivaschenko in https://github.com/magento/magento-coding-standard/pull/366
- AC-2224: Remove incorrect and outdated rules by @loginesta in https://github.com/magento/magento-coding-standard/pull/368
- Use development php configuration for tests by @sivaschenko in https://github.com/magento/magento-coding-standard/pull/367
- Autofix for ThisInTemplate sniff by @sivaschenko in https://github.com/magento/magento-coding-standard/pull/369
- Removed obsolete layout check by @sivaschenko in https://github.com/magento/magento-coding-standard/pull/370
- AC-2222: [UCT Autofixing] PHPCompatibility.ForbiddenFinalPrivateMethods by @svera in https://github.com/magento/magento-coding-standard/pull/373
- Improve: Exclude minified JS files. by @edspc in https://github.com/magento/magento-coding-standard/pull/372
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v17...v18
v17: Version 17
New rules
- AC-1060: Move relevant sniffs from phpcompatibility by @svera
- AC-391: Static test to cover "deprecated" jQuery methods by @Rrego6
- Fixed graphql unit test failing as it was extending from a wrong class by @svera
- AC-1717: Passing null to non-nullable internal function parameters is deprecated by @svera
- AC-1718 return types for arrayaccess methods by @svera
Improvements
- AC-99: Update Third Party library: jquery.tabs by @krissyhiserote
- Allow use of modern syntax in JavaScript files by @fredden
- Run tests on php 8.1 by @ihor-sviziev
- Simplify file structure for ESLint ruleset by @fredden
- Disallow Yoda Conditions in JavaScript files by @fredden
Fixes
- Fix DirectThrowSniff false positive by @rmsundar1
v16: Version 16
New Rules
- Created Sniff to validate function which usage without arguments is deprecated in PHP 8.1 https://github.com/magento/magento-coding-standard/pull/325 by @anzin
- Added deprecated function PHP 8.1 to DiscouragedFunctionSniff https://github.com/magento/magento-coding-standard/pull/326 by @anzin
- Added PSR12.Properties.ConstantVisibility rule to the ruleset https://github.com/magento/magento-coding-standard/pull/330 by @rmsundar1
- AC-1059: Included PHPCompatibility rules https://github.com/magento/magento-coding-standard/pull/332 by @svera
Improvements
- Updated rule names for better, more granular messaging https://github.com/magento/magento-coding-standard/pull/328 by @fredden
- AC-1740: Added RectorPHP and included it as part of the GitHub actions https://github.com/magento/magento-coding-standard/pull/333 by @eliseacornejo
Fixes
- Fixed code ArrayAutovivificationSniff for specific code constructions https://github.com/magento/magento-coding-standard/pull/329 by @anzin
- Fix GraphQL sniffs unit tests https://github.com/magento/magento-coding-standard/pull/334 by @eliseacornejo
- Fixed AutogeneratedClassNotInConstructorSniff for specific code constructions https://github.com/magento/magento-coding-standard/pull/336 by @sivaschenko
- Added support of PHP Attributes to the method annotation sniff https://github.com/magento/magento-coding-standard/pull/335 by @karyna-tsymbal-atwix
v15: Version 15
New Rules
Improvements
- Excluded JS files for PSR sniffs in #324 by @sivaschenko
- AC-1509: Removed deprecated JSCS package in #327 by @loginesta
v14: Version 14
New Rules
- AC-681: Create phpcs static check for PhtmlTemplateTest in #306 by @eliseacornejo
- AC-683: Create phpcs static check for TableTest in #309 by @svera
- AC-676: Create phpcs static check for ObsoleteConnectionTest in #310 by @eliseacornejo
- AC-670: phpcs layouttest in #298 by @svera
- AC-678: Create phpcs sniff for ObsoleteResponseTest in #311 by @eliseacornejo
- AC-663: PHPCS classes test in #274 by @svera
- AC-672: Create phpcs static check for LicenseTest in #312 by @eliseacornejo
- Added copyright verification for graphqls files in #321 by @sivaschenko
Improvements
- AC-1167: Add all filesystem PHP native functions covered by Filesystem\DriverInterface to DiscouragedFunctionSniff in #308 by @loginesta
- AC-206: Create UCT phpcs ruleset for customizations only in #313 by @svera
- AC-1549: Create codes for each type of returned error / warning in #316 by @svera
Fixes
- AC-1314: Fix copyright sniff for less files in #284 by @eliseacornejo
- Fixed undefined index in Magento2.Commenting.ClassPropertyPHPDocFormatting in #317 by @sivaschenko
- Extracted js tests to a separate build in #318 by @sivaschenko
- Fixed undefined variable error in AutogeneratedClassNotInConstructorSniff in #319 by @sivaschenko
v13: Version 13
New rules
- AC-679 Create phpcs static check for ObsoleteSystemConfigurationTest by @eliseacornejo
- AC-682 Create phpcs static check for RestrictedCodeTest by @svera
- AC-679 Create phpcs static check for ObsoleteSystemConfigurationTest by @eliseacornejo
- AC-677 Create phpcs static test for ObsoleteMenuTest by @loginesta
- AC-674 Create phpcs static check for ObsoleteAclTest by @loginesta
- AC-667 Create phpcs static check for EmailTemplateTest by @jcuerdo
Other
- AC-1159 Remove eslint tests from magento2 repo and reuse new version of magento-coding-standard instead by @loginesta
- AC-1355 Move JSCS into magento-coding-standards repo by @loginesta
v12: Version 12
Fixes
- AC-1339: Detect comment for typed class properties by @svera
- AC-669: Fixed directory name checking too lax by @svera
v11: Version 11
New rules
- AC-1102: Static test to verify self-closing tags for non-void html elements by @xmav
- AC-662: Create phpcs static check for AutogeneratedClassNotInConstructorTest by @jcuerdo
- AC-1156: Move custom eslint tests to magento-coding-standard repo by @loginesta
- AC-665: Create phpcs static check for ConfigTest by @svera
- AC-669: Create phpcs static check for InstallUpgradeTest by @svera
Fixes
- AC-1307: PHP Syntax errors in xml files by @eliseacornejo
- AC-1335: Exclude the copyright sniff by @eliseacornejo
v10: Version 10
New Rules
- Added sniff detecting obsolete email directives in #261 by @jcuerdo
- Added sniff detecting obsolete widget configurations in #266 by @jcuerdo
- Added sniff checking for correct copyright headers in #267 and #269 by @eliseacornejo
Fixes
v9: Version 9
New Rules
- Added sniff to ensure proper sniff for class properties PHPDoc formatting in #140 by @konarshankar07
- Test moved from magento2: sniff looking for occurrences of obsolete
activeandversionattributes in themodule.xmlfile in #230 by @svera - Test moved from magento2: sniff looking for occurrences of obsolete nodes:
param,instance,array,item[@​key]andvaluein di.xml in #233 by @loginesta
Improvements
- Added
evalandproc*functions to theInsecureFunctionSniffclass by @orsinijose - Updated html, less and annotation rules severity in #255 by @eliseacornejo
- Improved less verification by catching newlines in the middle of a style definition in #258 by @svera
- Ignore PHPUnit results cache file in #254 by @fredden
Fixes
- Fixed fatal error when docblock includes parametry type but is missing the parameter name in #256 by @fredden
Test coverage
- Created unit test for Magento2\Less\SemicolonSpacingSniff in #253 by @loginesta
- Createe unit test for Magento2\Less\ColourDefinitionSniff check in #238 by @svera
- Created unit test for Magento2\Less\QuotesSniff check in #248 by @svera
- Created unit test for CombinatorIndentationSniff in #249 by @svera
- Created unit test for Magento2\Less\TypeSelectorsSniff in #250 by @svera
- Created unit test for Magento2\Less\ZeroUnitsSniff in #251 by @svera
- Created unit test for Magento2\Less\PropertiesLineBreakSniff in #244 by @svera
- Created unit test for Magento2\Less\TypeSelectorConcatenationSniff check in #247 by @loginesta
- Created unit test for Magento2\Less\VariablesSniff in #252 by @loginesta
- Created unit test for Magento2\Less\ColonSpacingSniff in #237 by @svera
- Created unit test for Magento2\Less\BracesFormattingSniff in #236 by @svera
v8: Version 8
Fixes
- Fixed ImportsFromTestNamespace from lock on group use with trailing comma @fsw
- Moved abstract unit test to autoload-dev @sivaschenko
- Unit test coverage and fixes for HTML, annotation and less sniffs @eliseacornejo
v7: Version 7
New Rules
- Added sniff to ensure correct usage of getChildHtml and getChildChildHtml AbstractBlock methods @eliseacornejo
- Annotation, Html and Less sniffs has been moved from the magento/magento2 repo @loginesta
Fixes
- Avoid infinite loop when Parse Error occurs @fredden
- Fix TypeError for phpcs->addWarning() @fredden
- Fixed HtmlDirectiveSniff @asheem-patro
- Add test coverage for HtmlBindingSniff @ihor-sviziev
- Moved parameter and variable tokenizers from the magento/magento2 repo @edspc
Infrastructure and updates
- Github Actions are now used to validate pull requests @ihor-sviziev
- All dependencies have been updated to the latest versions. The package is now PHP 8 compatible. @andrewbess @drpayyne
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.