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 Sass tests for rules & fix related issues #258

Merged
merged 51 commits into from
Oct 8, 2015

Conversation

bgriffith
Copy link
Member

Apologies for the size of this PR.

It adds Sass tests for the majority of the rules listed here #166. The only one missing is indentation as this needs a rewrite.

It also includes a fix for the empty-line-between-block rule as this required helpers bundled with the soon to be released version 1.3 on develop which will close #216 and close #228

DCO 1.1 Signed-off-by: Ben Griffith gt11687@gmail.com

@bgriffith bgriffith added this to the 1.3.0 milestone Oct 7, 2015
$invalid-mixed-letters-med: #abc4
$invalid-mixed-letters-short: #a1

$invalid-character-map: (invalid-characters-upper-letters: #GHIJKL, invalid-characters-upper-letters-short: #GHI, even-more-invalid-map: ( invalid-characters-lower-letters-short: #ghijkl, invalid-characters-lower-letters-short: #ghi ))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you forced to write a map on a single line in Sass?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah... it's....different...

@@ -17,3 +17,21 @@ describe('indentation', function () {
});
});
});


//////////////////////////////
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets not forget about these in 1.4.0 😄

@DanPurdy
Copy link
Member

DanPurdy commented Oct 7, 2015

Great stuff. This should make sass-lint even more bullet proof moving forward, although this hides the fact that you've actually fixed a lot of these rules in hotfixes already so thanks for those!

My only other comment is maybe to add a few more comments as in the no-mergeable-selector rules earlier, it's fairly tough to trace the reasoning for certain aspects of this rule.

@bgriffith
Copy link
Member Author

This empty-line-between-rule has still got some issues so will fix before we merge this. See comment: #228 (comment)

@DanPurdy
Copy link
Member

DanPurdy commented Oct 8, 2015

Awesome!

DanPurdy added a commit that referenced this pull request Oct 8, 2015
Add Sass tests for rules & fix related issues
@DanPurdy DanPurdy merged commit eeae0a3 into sasstools:develop Oct 8, 2015
@bgriffith bgriffith deleted the feature/sass-tests branch October 8, 2015 16:22
donabrams pushed a commit to donabrams/sass-lint that referenced this pull request Nov 19, 2015
Add Sass tests for rules & fix related issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants