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

Passing config to CLI causes assertion error #150

Closed
DanPurdy opened this issue Sep 10, 2015 · 0 comments · Fixed by #151
Closed

Passing config to CLI causes assertion error #150

DanPurdy opened this issue Sep 10, 2015 · 0 comments · Fixed by #151
Assignees
Milestone

Comments

@DanPurdy
Copy link
Member

When using the CLI and --config an assertion error is generated if you call sass-lint from a directory that doesn't include a .sass-lint.yml file or a package.json with a config file specified within.

dan@Dans-Box workspace $ sass-lint --config ~/workspace/sass-lint/.sass-lint.yml ~/vagrant/www/vhosts/test-proj.dev/public/app/scss/main.scss

assert.js:86
  throw new assert.AssertionError({
        ^
AssertionError: missing path
    at Module.require (module.js:363:3)
    at require (module.js:384:17)
    at module.exports (/usr/local/lib/node_modules/sass-lint/lib/config.js:45:12)
    at Function.sassLint.getConfig (/usr/local/lib/node_modules/sass-lint/index.js:18:10)
    at Function.sassLint.format (/usr/local/lib/node_modules/sass-lint/index.js:89:21)
    at detectPattern (/usr/local/lib/node_modules/sass-lint/bin/sass-lint.js:17:20)
    at /usr/local/lib/node_modules/sass-lint/bin/sass-lint.js:58:5
    at Array.forEach (native)
    at Object.<anonymous> (/usr/local/lib/node_modules/sass-lint/bin/sass-lint.js:57:16)
    at Module._compile (module.js:460:26)

Have a working fix ready to go, will just have a look at adding some tests

@DanPurdy DanPurdy self-assigned this Sep 10, 2015
@DanPurdy DanPurdy added this to the 1.2.1 milestone Sep 10, 2015
DanPurdy added a commit to DanPurdy/sass-lint that referenced this issue Sep 10, 2015
Snugug added a commit that referenced this issue Sep 11, 2015
Fix CLI custom config assertion error #150
DanPurdy added a commit to DanPurdy/sass-lint that referenced this issue Sep 11, 2015
bgriffith added a commit that referenced this issue Sep 12, 2015
Hotfix Master - Fix CLI custom config assertion error #150
donabrams pushed a commit to donabrams/sass-lint that referenced this issue Nov 19, 2015
donabrams pushed a commit to donabrams/sass-lint that referenced this issue Nov 19, 2015
donabrams pushed a commit to donabrams/sass-lint that referenced this issue Nov 19, 2015
donabrams pushed a commit to donabrams/sass-lint that referenced this issue Nov 19, 2015
Hotfix Master - Fix CLI custom config assertion error sasstools#150
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant