Skip to content

AC-667: Create phpcs static check for EmailTemplateTest #261

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 6 commits into from
Sep 8, 2021
Merged

Conversation

jcuerdo
Copy link
Contributor

@jcuerdo jcuerdo commented Sep 7, 2021

No description provided.

<h1>{{htmlescape "H1"}}</h1>
<h2>{{escapehtml "H2"}}</h2>
<p>{{escapehtml "p"}} {{htmlescape "p"}}</p>
<p class="greeting">{{trans "Translateme"}}</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

no new line at the end of file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

loginesta
loginesta previously approved these changes Sep 7, 2021
Copy link
Contributor

@loginesta loginesta left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Great first contribution, @jcuerdo ! Please see my comments

@@ -242,6 +242,13 @@
<type>warning</type>
</rule>

Copy link
Member

Choose a reason for hiding this comment

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

I'd remove this empty line for consistency.

<include-pattern>view/email/*.html</include-pattern>
<include-pattern>view/*/email/*.html</include-pattern>
<severity>8</severity>
<type>warning</type>
Copy link
Member

@sivaschenko sivaschenko Sep 7, 2021

Choose a reason for hiding this comment

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

I think this should be an error as using of obsolete directives will actually break the functionality of email templates

svera
svera previously approved these changes Sep 7, 2021
Co-authored-by: Sergii Ivashchenko <[email protected]>
@jcuerdo jcuerdo requested review from sivaschenko and svera September 8, 2021 09:02
@jcuerdo
Copy link
Contributor Author

jcuerdo commented Sep 8, 2021

@magento import pr to magento-commerce/magento-coding-standard

@magento-engcom-team
Copy link
Contributor

@jcuerdo the pull request successfully imported.

@magento-devops-reposync-svc magento-devops-reposync-svc merged commit e3f4d87 into magento:develop Sep 8, 2021
@jcuerdo jcuerdo deleted the AC-667 branch September 8, 2021 14:56
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.

6 participants