Skip to content
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

Squiz.CSS.EmptyStyleDefinition sees comment as style definition and fails to report error #1737

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Oct 30, 2017

The Squiz.CSS.EmptyStyleDefinition sniff checks for CSS styles being defined without value.

This sniff would fail to report an issue if there is no value, but a comment is encountered instead.

Includes unit tests.

The `Squiz.CSS.EmptyStyleDefinition` sniff checks for CSS styles being defined without value.

This sniff would fail to report an issue if there is no value, but a comment is encountered instead.

Includes unit tests.
@jrfnl jrfnl force-pushed the feature/squiz-css-emptystyle-allow-for-comments branch from 97abfad to fbb04ca Compare November 26, 2017 00:57
@jrfnl
Copy link
Contributor Author

jrfnl commented Nov 26, 2017

Rebased for merge conflicts & updated code style...

@gsherwood gsherwood changed the title Squiz/EmptyStyleDefinition: report error when the value is a comment Squiz.CSS.EmptyStyleDefinition sees comment as style definition and fails to report error Nov 29, 2017
@gsherwood gsherwood merged commit fbb04ca into squizlabs:master Nov 29, 2017
@gsherwood
Copy link
Member

Thanks for this fix

gsherwood added a commit that referenced this pull request Nov 29, 2017
@jrfnl jrfnl deleted the feature/squiz-css-emptystyle-allow-for-comments branch November 29, 2017 02:57
@jrfnl
Copy link
Contributor Author

jrfnl commented Nov 29, 2017

You're welcome ;-)

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.

2 participants