All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 call ale#assert#SetUpLinterTest('javascript', 'standard')
3 call ale#test#SetFilename('testfile.js')
7 call ale#assert#TearDownLinterTest()
9 Execute(bin/cmd.js paths should be preferred):
10 call ale#test#SetFilename('../test-files/standard/with-cmd/testfile.js')
12 let b:executable = ale#path#Simplify(
14 \ . '/../test-files/standard/with-cmd/node_modules/standard/bin/cmd.js'
17 AssertLinter b:executable,
18 \ (has('win32') ? 'node.exe ' : '')
19 \ . ale#Escape(b:executable)
22 Execute(.bin directories should be used too):
23 call ale#test#SetFilename('../test-files/standard/with-bin/testfile.js')
25 let b:executable = ale#path#Simplify(
27 \ . '/../test-files/standard/with-bin/node_modules/.bin/standard'
30 AssertLinter b:executable, ale#Escape(b:executable) . ' --stdin %s'
32 Execute(The global executable should be used otherwise):
33 AssertLinter 'standard', ale#Escape('standard') . ' --stdin %s'
35 Execute(The global executable should be configurable):
36 let b:ale_javascript_standard_executable = 'foobar'
38 AssertLinter 'foobar', ale#Escape('foobar') . ' --stdin %s'
40 Execute(The options should be configurable):
41 let b:ale_javascript_standard_options = '--wat'
43 AssertLinter 'standard', ale#Escape('standard') . ' --wat --stdin %s'