mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 05:04:28 +08:00
Add linters for apkbuild-lint and secfixes-check from atools
This commit is contained in:
12
ale_linters/apkbuild/apkbuild_lint.vim
Normal file
12
ale_linters/apkbuild/apkbuild_lint.vim
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
" Author: Leo <thinkabit.ukim@gmail.com>
|
||||||
|
" Description: apkbuild-lint from atools linter for APKBUILDs
|
||||||
|
|
||||||
|
call ale#Set('apkbuild_apkbuild_lint_executable', 'apkbuild-lint')
|
||||||
|
|
||||||
|
call ale#linter#Define('apkbuild', {
|
||||||
|
\ 'name': 'apkbuild_lint',
|
||||||
|
\ 'output_stream': 'stdout',
|
||||||
|
\ 'executable': {b -> ale#Var(b, 'apkbuild_apkbuild_lint_executable')},
|
||||||
|
\ 'command': '%e %t',
|
||||||
|
\ 'callback': 'ale#handlers#atools#Handle',
|
||||||
|
\})
|
||||||
12
ale_linters/apkbuild/secfixes_check.vim
Normal file
12
ale_linters/apkbuild/secfixes_check.vim
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
" Author: Leo <thinkabit.ukim@gmail.com>
|
||||||
|
" Description: secfixes-check from atools linter for APKBUILDs
|
||||||
|
|
||||||
|
call ale#Set('apkbuild_secfixes_check_executable', 'secfixes-check')
|
||||||
|
|
||||||
|
call ale#linter#Define('apkbuild', {
|
||||||
|
\ 'name': 'secfixes_check',
|
||||||
|
\ 'output_stream': 'stdout',
|
||||||
|
\ 'executable': {b -> ale#Var(b, 'apkbuild_secfixes_check_executable')},
|
||||||
|
\ 'command': '%e %t',
|
||||||
|
\ 'callback': 'ale#handlers#atools#Handle',
|
||||||
|
\})
|
||||||
Reference in New Issue
Block a user