Run sass-lint from the target's directory

This commit is contained in:
Ben Falconer
2018-05-11 10:45:41 +01:00
parent 38c66d33fe
commit 8a1099bb59
3 changed files with 41 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
Before:
runtime ale_linters/sass/sasslint.vim
call ale#test#SetDirectory('/testplugin/test/command_callback')
call ale#test#SetFilename('test.sass')
After:
Restore
call ale#test#RestoreDirectory()
call ale#linter#Reset()
Execute(The default sasslint command should be correct):
AssertEqual
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
\ . ale#Escape('sass-lint') . ' -v -q -f compact %t',
\ ale_linters#sass#sasslint#GetCommand(bufnr(''))