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
This commit is contained in:
Hugo
2024-12-29 05:37:33 +01:00
committed by GitHub
parent e82fd24943
commit d69f8fed73
7 changed files with 79 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
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'
\}