fix: Use ALE to reliably find project options

This commit is contained in:
jhlink committed 2020-07-29 01:36:45 -04:00
1 parent f4cff3bc06
commit 428c5f94da
3 files changed
+41 -3

No files matched your search

@@ -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(''))