All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 call ale#assert#SetUpLinterTest('scss', 'sasslint')
3 call ale#test#SetFilename('test.scss')
7 call ale#assert#TearDownLinterTest()
9 Execute(should default to source, bin/sass-lint.js):
10 call ale#test#SetFilename('../test-files/sasslint/with-source/test.scss')
12 let b:executable = ale#path#Simplify(
14 \ . '/../test-files/sasslint/with-source/node_modules/sass-lint/bin/sass-lint.js'
17 AssertLinter b:executable,
18 \ (has('win32') ? 'node.exe ' : '')
19 \ . ale#Escape(b:executable)
20 \ . ' -v -q -f compact %t'
22 Execute(should fallback to bin, .bin/sass-lint):
23 call ale#test#SetFilename('../test-files/sasslint/with-bin/test.scss')
25 let b:executable = ale#path#Simplify(
27 \ . '/../test-files/sasslint/with-bin/node_modules/.bin/sass-lint'
30 AssertLinter b:executable, ale#Escape(b:executable) . ' -v -q -f compact %t'
32 Execute(should fallback to global bin):
33 AssertLinter 'sass-lint', ale#Escape('sass-lint') . ' -v -q -f compact %t'
35 Execute(The global executable should be configurable):
36 let b:ale_scss_sasslint_executable = 'foo'
38 AssertLinter 'foo', ale#Escape('foo') . ' -v -q -f compact %t'
40 Execute(The options should be configurable):
41 let b:ale_scss_sasslint_options = '--bar'
43 AssertLinter 'sass-lint', ale#Escape('sass-lint') . ' --bar -v -q -f compact %t'