summaryrefslogtreecommitdiff
path: root/ale_linters/apkbuild
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-10-31 18:38:14 -0300
committerLeo <thinkabit.ukim@gmail.com>2021-01-22 14:04:26 -0300
commit32c0eb7c4291086e7af9234efc3762d13047f4c7 (patch)
tree6d9bc9ad2d52b759f66e73cdc89c9bac794bd8f0 /ale_linters/apkbuild
parent99a809c814880e8e592e8150dc39fd7a5b584371 (diff)
downloadale-32c0eb7c4291086e7af9234efc3762d13047f4c7.zip
Add linters for apkbuild-lint and secfixes-check from atools
Diffstat (limited to 'ale_linters/apkbuild')
-rw-r--r--ale_linters/apkbuild/apkbuild_lint.vim12
-rw-r--r--ale_linters/apkbuild/secfixes_check.vim12
2 files changed, 24 insertions, 0 deletions
diff --git a/ale_linters/apkbuild/apkbuild_lint.vim b/ale_linters/apkbuild/apkbuild_lint.vim
new file mode 100644
index 00000000..285f5534
--- /dev/null
+++ b/ale_linters/apkbuild/apkbuild_lint.vim
@@ -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',
+\})
diff --git a/ale_linters/apkbuild/secfixes_check.vim b/ale_linters/apkbuild/secfixes_check.vim
new file mode 100644
index 00000000..c65267fd
--- /dev/null
+++ b/ale_linters/apkbuild/secfixes_check.vim
@@ -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',
+\})