Files
ale/test/fixers/test_apkbuild_fixer_callback.vader
Hugo d69f8fed73 Implement support for apkbuild-fixer (#4881)
I am not the author of a single file, but have full permissions from the
original author for permission for submitting this to ALE under the
2-Clause BSD licence.

See: https://gitlab.alpinelinux.org/Leo/apkbuild.vim/-/issues/3
2024-12-29 13:37:33 +09:00

21 lines
671 B
Plaintext

Before:
call ale#assert#SetUpFixerTest('apkbuild', 'apkbuild-fixer')
After:
call ale#assert#TearDownFixerTest()
Execute(The apkbuild-fixer callback should return the correct default values):
AssertFixer {
\ 'read_temporary_file': 1,
\ 'command': ale#Escape('apkbuild-fixer') . ' -p apkbuild-lint %t',
\}
Execute(The apkbuild-fixer callback should include custom apkbuild-fixer options):
let g:ale_apkbuild_apkbuild_fixer_executable = "another-apkbuild-fixer"
let g:ale_apkbuild_apkbuild_fixer_options = "-s"
AssertFixer {
\ 'read_temporary_file': 1,
\ 'command': ale#Escape('another-apkbuild-fixer') . ' -p apkbuild-lint -s %t'
\}