Skip to content

AC-1549: Create codes for each type of returned error / warning #316

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

Merged
merged 11 commits into from
Oct 26, 2021

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 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