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 CLI custom config assertion error #150 #151

Merged
merged 2 commits into from
Sep 11, 2015

Conversation

DanPurdy
Copy link
Member

This fixes an assertion error you would encounter if using the CLI from a directory that didn't contain a .sass-lint.yml or package.json with a config file specified.

The reason being the format and output functions of the linter weren't being passed the config options from the CLI and therefore were defaulting to whatever config was in the current directory. If these don't exist then we encounter assertion errors.

Also added 3 tests for the CLI custom config path

closes #150

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

@DanPurdy DanPurdy added this to the 1.2.1 milestone Sep 10, 2015
@DanPurdy
Copy link
Member Author

Also I've just realised for 1.2.1 we should probably roll this directly into master too, I can open another PR for that if you're happy with this or if there's another way you'd like to handle this.

This was referenced Sep 10, 2015
Snugug added a commit that referenced this pull request Sep 11, 2015
Fix CLI custom config assertion error #150
@Snugug Snugug merged commit ded9b90 into sasstools:develop Sep 11, 2015
@DanPurdy
Copy link
Member Author

Going to have to cherry pick the commits off of this branch to merge them into master for 1.2.1

@DanPurdy DanPurdy deleted the hotfix/cli-config branch October 20, 2015 23:20
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passing config to CLI causes assertion error
2 participants