fix: Use ALE to reliably find project options

This commit is contained in:
jhlink
2020-07-29 01:36:45 -04:00
parent f4cff3bc06
commit 428c5f94da
3 changed files with 41 additions and 3 deletions

View File

@@ -65,3 +65,14 @@ Execute(The astyle callback should return the correct default values with an opt
\ . ' --stdin='
\ },
\ ale#fixers#astyle#Fix(bufnr(''))
Execute(The astyle callback should find nearest default option file _astylrc):
call ale#test#SetFilename('../test_c_projects/makefile_project/subdir/file.c')
AssertEqual
\ {
\ 'command': ale#Escape('xxxinvalid')
\ . ' --project=_astylerc'
\ . ' --stdin='
\ },
\ ale#fixers#astyle#Fix(bufnr(''))