Dockerlinter (#4518)

* dockerlinter support

* Tests & ShellCheck reference

* sort and align docs
This commit is contained in:
Shad
2023-05-22 04:58:59 +02:00
committed by GitHub
parent 5c803fb970
commit a46121a532
7 changed files with 193 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
Before:
call ale#assert#SetUpLinterTest('dockerfile', 'dockerlinter')
After:
call ale#assert#TearDownLinterTest()
Execute(The default command should be correct):
AssertLinter 'dockerlinter', ale#Escape('dockerlinter') . ' -j -f %t'
Execute(The executable should be configurable):
let b:ale_dockerfile_dockerlinter_executable = 'foobar'
AssertLinter 'foobar', ale#Escape('foobar') . ' -j -f %t'
Execute(The options should be configurable):
let b:ale_dockerfile_dockerlinter_options = '-r additional.yaml'
AssertLinter 'dockerlinter', ale#Escape('dockerlinter') . ' -r additional.yaml -j -f %t'