Merge pull request #2040 from leamingrad/jshint_filename

Pass the filename of the current file into jshint
This commit is contained in:
w0rp authored and GitHub committed 2018-10-31 11:21:13 +00:00
commit 20e4e3f9db
2 files changed
+15 -1

No files matched your search

@@ -0,0 +1,14 @@
Before:
call ale#assert#SetUpLinterTest('javascript', 'jshint')
After:
call ale#assert#TearDownLinterTest()
Execute(The default command should be correct):
AssertLinter 'jshint', '''jshint'' --reporter unix --extract auto --filename %s -'
Execute(Setting a config location should add the config parameter):
let g:ale_jshint_config_loc = '/some/file'
AssertLinter 'jshint', '''jshint'' --reporter unix --extract auto --config ''/some/file'' --filename %s -'