Skip to content

Conversation

@svera
Copy link
Contributor

@svera svera commented Oct 26, 2021

Some sniffs in magento-static-tests return more than one error / warning with the same error code. These errors should return its own error codes instead.

Sniff included in this PR:

  • Sniffs/Legacy/DiConfigSniff.php
  • Sniffs/Legacy/WidgetXMLSniff.php
  • Sniffs/Legacy/PhtmlTemplateSniff.php
  • Sniffs/Legacy/ObsoleteConnectionSniff.php
  • Sniffs/Legacy/ObsoleteResponseSniff.php
  • Sniffs/Legacy/RestrictedCodeSniff.php
  • Sniffs/Legacy/LayoutSniff.php
  • Sniffs/Legacy/InstallUpgradeSniff.php
  • Sniffs/Legacy/ObsoleteConfigNodesSniff.php
  • Sniffs/Legacy/EmailTemplateSniff.php
  • Sniffs/Legacy/AbstractBlockSniff.php
  • Sniffs/NamingConvention/ReservedWordsSniff.php

@svera svera marked this pull request as ready for review October 26, 2021 09:48
loginesta
loginesta previously approved these changes Oct 26, 2021
danidelcar
danidelcar previously approved these changes Oct 26, 2021
Copy link
Member

@sivaschenko sivaschenko left a comment

Choose a reason for hiding this comment

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

Thanks for PR @svera . Please see my comments.

Can you please also review all other error/warning codes in the recently introduced sniffs and ensure they are following the same style: CamelCaseStartingFromCapitalLetter

svera and others added 8 commits October 26, 2021 14:54
Co-authored-by: Sergii Ivashchenko <serg.ivashchenko@gmail.com>
Co-authored-by: Sergii Ivashchenko <serg.ivashchenko@gmail.com>
Co-authored-by: Sergii Ivashchenko <serg.ivashchenko@gmail.com>
Co-authored-by: Sergii Ivashchenko <serg.ivashchenko@gmail.com>
Co-authored-by: Sergii Ivashchenko <serg.ivashchenko@gmail.com>
@svera svera merged commit 8f6ddba into magento:develop Oct 26, 2021
@svera svera deleted the AC-1549_single-error-codes branch October 26, 2021 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants