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

Prevent invalid conventions border-zero #926

Merged

Conversation

DanPurdy
Copy link
Member

@DanPurdy DanPurdy commented Nov 2, 2016

It was highlighted in a recent comment that any convention could be supplied to the border-zero rule and no validity checking would occur leading to misleading messages such as to use the convention 'zero'.

While the docs do specify the conventions it's probably a good belts and braces measure to check ourselves and default to a good choice if it seems invalid.

This PR addresses this. An extra warning will be thrown in each file a border-zero issue occurs to inform the user of the invalid content in their config file.

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

@coveralls
Copy link

coveralls commented Nov 2, 2016

Coverage Status

Coverage increased (+0.008%) to 97.591% when pulling 80ceebc on DanPurdy:feature/check-border-zero-conventions into d67549d on sasstools:develop.

@esr360
Copy link

esr360 commented Nov 2, 2016

Amazing, thanks so much for the speedy update.

@coveralls
Copy link

coveralls commented Nov 6, 2016

Coverage Status

Coverage increased (+0.008%) to 97.548% when pulling d2e49d7 on DanPurdy:feature/check-border-zero-conventions into b2f4228 on sasstools:develop.

@bgriffith bgriffith merged commit 6c80b2c into sasstools:develop Nov 6, 2016
@bgriffith bgriffith deleted the feature/check-border-zero-conventions branch November 6, 2016 14:28
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.

4 participants