Add support for bingo (#2165)

* Add support for https://github.com/saibing/bingo
* Add docs for ale-go-bingo
* Use go.mod when found
* Add test for bingo FindProjectRoot
* Simplify ale_linters#go#bingo#GetCommand
This commit is contained in:
Jerko Steiner
2019-01-05 19:12:55 +00:00
committed by w0rp
parent 4f3190daa8
commit 5bbe77101d
6 changed files with 101 additions and 3 deletions

View File

@@ -0,0 +1,31 @@
Before:
call ale#assert#SetUpLinterTest('go', 'bingo')
After:
Restore
unlet! b:ale_completion_enabled
call ale#assert#TearDownLinterTest()
Execute(should set correct defaults):
AssertLinter 'bingo', ale#Escape('bingo') . ' --mode stdio'
Execute(should configure bingo callback executable):
let b:ale_go_bingo_executable = 'boo'
let b:ale_go_bingo_options = ''
AssertLinter 'boo', ale#Escape('boo')
Execute(should set bingo options):
call ale#test#SetFilename('go_paths/go1/prj1/file.go')
" let b:ale_completion_enabled = 1
let b:ale_go_bingo_options = ''
AssertLinter 'bingo',
\ ale#Escape('bingo') . ''
let b:ale_go_bingo_options = '--mode stdio --trace'
AssertLinter 'bingo',
\ ale#Escape('bingo') . ' --mode stdio --trace'