-
Notifications
You must be signed in to change notification settings - Fork 160
Expected 1 space after colon with &:not(:first-child) #395
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
Comments
Hi @Sental. Thank you for your report. Add a comment to assign the issue:
|
Same issue experiences. Actually all pseudo classes not need require spacing after |
The |
@sivaschenko, could you take a look? |
@ihor-sviziev yes, we'll work on it |
Also found magento yelling warning non-sense at this code .box-tocart {
.paypal:first-of-type {
margin-top: 13px;
}
}
:first-of-type totally valid. It's doesn't require space after that colon .lib-link(
@_link-color: @primary__color,
@_link-text-decoration: none,
@_link-color-visited: @primary__color,
@_link-text-decoration-visited: none,
@_link-color-hover: @primary__color,
@_link-text-decoration-hover: underline,
@_link-color-active: @primary__color,
@_link-text-decoration-active: underline
);
Also detected new line after colon at mixins less declare => still valid with me in my point of view |
Preconditions
Steps to reproduce
vendor/bin/phpcs --standard=Magento2 path/to/module
Expected result
Actual result
154 | WARNING | Expected 1 space after colon in style definition; newline found
154 | WARNING | Expected 1 space after colon in style definition; 0 found
The text was updated successfully, but these errors were encountered: