kungfusheep / SublimeLinter-contrib-stylelint

this repo is no longer maintained - please see https://github.com/SublimeLinter/SublimeLinter-stylelint
MIT License
116 stars 19 forks source link

Linting breaks on syntax error #17

Open dpuric3 opened 8 years ago

dpuric3 commented 8 years ago

Linter breaks on syntax error, shouldn't it warn about the error in ST rather then just silently console the error?

SublimeLinter: stylelint: testis.scss ['/usr/local/bin/node', '/Users/dino/Library/Application Support/Sublime Text 3/Packages/SublimeLinter-contrib-stylelint/stylelint_wrapper.js', '@', '--syntax', 'scss', '--config', '/Users/dino/develop/sir-widgets/.stylelintrc'] SublimeLinter: stylelint output: CssSyntaxError: /var/folders/5d/7y2lcz012q12rjxqpwxs58tc0000gn/T/SublimeLinter3-dino/testis.css:66:22: Missed semicolon at Input.error (/Users/dino/develop/sir-widgets/node_modules/postcss/lib/input.js:61:22) at Parser.checkMissedSemicolon (/Users/dino/develop/sir-widgets/node_modules/postcss/lib/parser.js:495:26) at Parser.decl (/Users/dino/develop/sir-widgets/node_modules/postcss/lib/parser.js:270:50) at Parser.word (/Users/dino/develop/sir-widgets/node_modules/postcss/lib/parser.js:135:30) at Parser.loop (/Users/dino/develop/sir-widgets/node_modules/postcss/lib/parser.js:60:26) at parse (/Users/dino/develop/sir-widgets/node_modules/postcss/lib/parse.js:26:12) at new LazyResult (/Users/dino/develop/sir-widgets/node_modules/postcss/lib/lazy-result.js:61:24) at Processor.process (/Users/dino/develop/sir-widgets/node_modules/postcss/lib/processor.js:34:16) at lintString (/Users/dino/develop/sir-widgets/node_modules/stylelint/dist/standalone.js:88:9) at /Users/dino/develop/sir-widgets/node_modules/stylelint/dist/standalone.js:70:14

Or is there some workaround for this issue? Ideally it would warn and highlight the error section and when fixed lint and warn as per settings of the linter.

Thank you.