#2132 Remove the need for the hidden add_newline option by tweaking the flow command

This commit is contained in:
w0rp
2019-01-12 13:08:52 +00:00
parent d8a53cc7a5
commit 6644563949
5 changed files with 10 additions and 20 deletions

View File

@@ -15,7 +15,7 @@ Execute(flow should return a command to run if a .flowconfig file exists):
AssertEqual
\ ale#Escape('flow')
\ . ' check-contents --respect-pragma --json --from ale %s',
\ . ' check-contents --respect-pragma --json --from ale %s < %t; echo',
\ ale_linters#javascript#flow#GetCommand(bufnr('%'), [])
Execute(flow should not use the respect pragma argument if the option is off):
@@ -25,7 +25,7 @@ Execute(flow should not use the respect pragma argument if the option is off):
AssertEqual
\ ale#Escape('flow')
\ . ' check-contents --json --from ale %s',
\ . ' check-contents --json --from ale %s < %t; echo',
\ ale_linters#javascript#flow#GetCommand(bufnr('%'), [])
Execute(flow should should not use --respect-pragma for old versions):
@@ -33,7 +33,7 @@ Execute(flow should should not use --respect-pragma for old versions):
AssertEqual
\ ale#Escape('flow')
\ . ' check-contents --json --from ale %s',
\ . ' check-contents --json --from ale %s < %t; echo',
\ ale_linters#javascript#flow#GetCommand(bufnr('%'), [
\ 'Warning: `flow --version` is deprecated in favor of `flow version`',
\ 'Flow, a static type checker for JavaScript, version 0.27.0',