mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-17 15:34:14 +08:00
Fix 4740 - add hurlfmt linter (#4741)
* Fix 4740 - add hurlfmt linter * Fix 4740 - add hurlfmt fixer * Fix wrong comments * Add end_col to qflist * Fix test
This commit is contained in:
19
test/linter/test_hurlfmt.vader
Normal file
19
test/linter/test_hurlfmt.vader
Normal file
@@ -0,0 +1,19 @@
|
||||
Before:
|
||||
call ale#assert#SetUpLinterTest('hurl', 'hurlfmt')
|
||||
call ale#test#SetFilename('dummy.hurl')
|
||||
|
||||
let g:ale_ruby_hurlfmt_executable = 'hurlfmt'
|
||||
let g:ale_ruby_hurlfmt_options = ''
|
||||
|
||||
After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(Executable should default to hurlfmt):
|
||||
AssertLinter 'hurlfmt', ale#Escape('hurlfmt')
|
||||
\ . ' --check --no-color '
|
||||
|
||||
Execute(Should be able to set a custom executable):
|
||||
let g:ale_hurl_hurlfmt_executable = 'bin/hurlfmt'
|
||||
|
||||
AssertLinter 'bin/hurlfmt' , ale#Escape('bin/hurlfmt')
|
||||
\ . ' --check --no-color '
|
||||
Reference in New Issue
Block a user