Lint whole package for gosimple and gotype

Fixes #936
This commit is contained in:
Ben Paxton
2018-03-19 15:34:47 +00:00
parent 43e8f47e6e
commit 0cb3e36554
4 changed files with 22 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
Before:
runtime ale_linters/go/gosimple.vim
call ale#test#SetFilename('../go_files/testfile2.go')
After:
call ale#linter#Reset()
Execute(The default gosimple command should be correct):
AssertEqual 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
\ . ' gosimple .',
\ ale_linters#go#gosimple#GetCommand(bufnr(''))