Add htmlbeautifier support (#4751)

This commit is contained in:
Arash Mousavi
2024-04-17 15:58:28 +01:00
committed by GitHub
parent 6db58b3379
commit 7516e2e484
7 changed files with 53 additions and 0 deletions

View File

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