Add erb-formatter support (#4546)

This commit is contained in:
Arash Mousavi
2023-07-24 13:38:52 +01:00
committed by GitHub
parent 3d10770387
commit 93a4f70414
7 changed files with 54 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
Before:
call ale#assert#SetUpFixerTest('eruby', 'erb-formatter')
After:
call ale#assert#TearDownFixerTest()
Execute(The erb-formatter callback should return the correct default values):
AssertFixer {
\ 'command': ale#Escape('erb-formatter') . ' -w %t',
\ 'read_temporary_file': 1,
\}
Execute(The erb-formatter callback should allow custom erb-formatter executables):
let g:ale_eruby_erbformatter_executable = 'foo/bar'
AssertFixer {
\ 'command': ale#Escape('foo/bar') . ' -w %t',
\ 'read_temporary_file': 1,
\}