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

Add hex validation rule #83

Merged
merged 6 commits into from
Sep 3, 2015
Merged

Conversation

DanPurdy
Copy link
Member

@DanPurdy DanPurdy commented Sep 2, 2015

Rule hex-validation will enforce all hexadecimal values are of a valid format.

  • 3 or 6 characters long
  • 0-9 a-f A-F

Adds a new isValidHex helper function

closes #82

DCO 1.1 Signed-off-by: Dan Purdy danjpurdy@gmail.com

@DanPurdy DanPurdy changed the title Feature/hex validation Add hex validation rule Sep 2, 2015
@Snugug Snugug added this to the 1.2.0 milestone Sep 2, 2015
@Snugug
Copy link
Member

Snugug commented Sep 2, 2015

Please resolve the merge conflicts

@DanPurdy
Copy link
Member Author

DanPurdy commented Sep 2, 2015

Similar question to the other PR really.

As some of these rules overlap we really want to be testing each rule in isolation, I'm thinking we disable any specifically conflicting linting rules on each test to ensure we aren't seeing false positives. I think something like #70 in the future will remove this need possibly.

Any thoughts? For now I'll push a change that specifically disables and enables rules on tests.

Some of the hex value tests overlap and flag the same issues for different reasons. To prevent this and keep our tests running in isolation I've changed the test rules to specifically enable and disable conflicting rules.
Snugug added a commit that referenced this pull request Sep 3, 2015
@Snugug Snugug merged commit 844948e into sasstools:master Sep 3, 2015
@DanPurdy DanPurdy deleted the feature/hex-validation branch September 7, 2015 22:39
donabrams pushed a commit to donabrams/sass-lint that referenced this pull request Nov 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants