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
Prev Previous commit
Next Next commit
Update Magento2/Sniffs/Legacy/PhtmlTemplateSniff.php
Co-authored-by: Sergii Ivashchenko <serg.ivashchenko@gmail.com>
  • Loading branch information
svera and sivaschenko authored Oct 26, 2021
commit 28ce4efb524cbb9bfe35bd330f723d7692533cd5
2 changes: 1 addition & 1 deletion Magento2/Sniffs/Legacy/PhtmlTemplateSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class PhtmlTemplateSniff implements Sniff
private const WARNING_CODES_OBSOLETE_REGEX_IN_SPECIFIC_PHTML_TEMPLATES = [
'/(["\'])jquery\/ui\1/' => 'JQueryUILibraryFound',
'/data-mage-init=(?:\'|")(?!\s*{\s*"[^"]+")/' => 'FoundDataMageInit',
'@x-magento-init.>(?!\s*+{\s*"[^"]+"\s*:\s*{\s*"[\w/-]+")@i' => 'JSComponentInitInPHPFound',
'@x-magento-init.>(?!\s*+{\s*"[^"]+"\s*:\s*{\s*"[\w/-]+")@i' => 'FoundXMagentoInit',
];

private const OBSOLETE_REGEX_IN_SPECIFIC_PHTML_TEMPLATES = [
Expand Down