Skip to content

Also exclude HTML files from Youwe coding standard ruleset #10

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 1 commit into from
May 26, 2023

Conversation

fredden
Copy link

@fredden fredden commented May 26, 2023

This is a follow-up to #5, where *.phtml files were excluded from the rules in the Youwe coding standard (which is designed for *.php files only). The Magento2 coding standard treats *.html files as PHP: https://github.com/magento/magento-coding-standard/blob/aec6744c0d1ad05f836b653e43dde756f23a389d/Magento2/ruleset.xml#L6

We're getting some noise from Generic.PHP.DisallowAlternativePHPTags.MaybeASPOpenTagFound and Generic.PHP.DisallowAlternativePHPTags.MaybeASPShortOpenTag in HTML files using Knockout in Magento projects. This rule is included via Youwe -> GlobalCommon -> PSR12 -> PSR1 -> Generic.PHP.DisallowAlternativePHPTags.

@leonhelmus leonhelmus self-assigned this May 26, 2023
@Epo123 Epo123 self-requested a review May 26, 2023 10:10
@Epo123 Epo123 self-assigned this May 26, 2023
@fredden fredden merged commit e187a54 into master May 26, 2023
@fredden fredden deleted the ignore-asp-tags-html-files branch May 26, 2023 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants