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', 'flow')
5 call ale#assert#TearDownLinterTest()
7 Execute(flow should return a command to run if a .flowconfig file exists):
8 call ale#test#SetFilename('../test-files/flow/a/sub/dummy')
12 \ . ' check-contents --respect-pragma --json --from ale %s < %t'
13 \ . (!has('win32') ? '; echo' : '')
15 Execute(flow should not use the respect pragma argument if the option is off):
16 call ale#test#SetFilename('../test-files/flow/a/sub/dummy')
18 let b:ale_javascript_flow_use_respect_pragma = 0
22 \ . ' check-contents --json --from ale %s < %t'
23 \ . (!has('win32') ? '; echo' : '')
25 Execute(flow should should not use --respect-pragma for old versions):
26 call ale#test#SetFilename('../test-files/flow/a/sub/dummy')
29 \ 'Warning: `flow --version` is deprecated in favor of `flow version`',
30 \ 'Flow, a static type checker for JavaScript, version 0.27.0',
32 AssertLinter 'flow', [
33 \ ale#Escape('flow') . ' --version',
35 \ . ' check-contents --json --from ale %s < %t'
36 \ . (!has('win32') ? '; echo' : ''),
39 Execute(flow should not return a command to run if no .flowconfig file exists):
40 call ale#test#SetFilename('../test-files/flow/b/sub/dummy')
42 AssertLinterNotExecuted