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

Fix boolean strictbem modifiers #892

Merged
merged 3 commits into from
Oct 26, 2016

Conversation

DanPurdy
Copy link
Member

@DanPurdy DanPurdy commented Oct 17, 2016

In strict BEM there are two types of modifiers signified by a single underscore character

a key value pair

.block_{key_val}

or a boolean

.block_{bool}

In all our name value rules we were only checking for the key value pair and completely ignoring the boolean type which was flagging a lot of false positives it seems, even in our own tests.

This PR rectifies this.

fixes #872

<DCO 1.1 Signed-off-by: Dan Purdy dan@danpurdy.co.uk>

@coveralls
Copy link

coveralls commented Oct 17, 2016

Coverage Status

Coverage remained the same at 97.527% when pulling 074e47b on DanPurdy:feature/fix-strictbem-classname into b7bcb3a on sasstools:develop.

@DanPurdy DanPurdy changed the title 🐛 Fix boolean strictbem modifiers Fix boolean strictbem modifiers Oct 17, 2016
@coveralls
Copy link

coveralls commented Oct 26, 2016

Coverage Status

Coverage remained the same at 97.541% when pulling a8238b4 on DanPurdy:feature/fix-strictbem-classname into 4a6c345 on sasstools:develop.

@bgriffith bgriffith added this to the 1.10 milestone Oct 26, 2016
@bgriffith bgriffith merged commit 977f5a4 into sasstools:develop Oct 26, 2016
@DanPurdy DanPurdy deleted the feature/fix-strictbem-classname branch October 28, 2016 00:02
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.

Convention strictbem produces unexpected linter warning
3 participants