mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
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:
20
test/fixers/test_apkbuild_fixer_callback.vader
Normal file
20
test/fixers/test_apkbuild_fixer_callback.vader
Normal 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'
|
||||
\}
|
||||
Reference in New Issue
Block a user