]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/linter/test_hadolint.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Do not set EDITOR/VISUAL for shell
[etc/vim.git] / .vim / bundle / ale / test / linter / test_hadolint.vader
1 Before:
2   call ale#assert#SetUpLinterTest('dockerfile', 'hadolint')
3
4 After:
5   call ale#assert#TearDownLinterTest()
6
7 Execute(We should not use Docker by default):
8   AssertLinter 'hadolint', 'hadolint  --no-color -'
9
10 Execute(Options should be passed correctly when docker is disabled):
11   let b:ale_dockerfile_hadolint_options = '--ignore DL3006'
12
13   AssertLinter 'hadolint', 'hadolint --ignore DL3006 --no-color -'
14
15 Execute(The command should be correct when using Docker):
16   let b:ale_dockerfile_hadolint_use_docker = 'always'
17
18   AssertLinter 'docker', 'docker run --rm -i hadolint/hadolint hadolint  --no-color -'
19
20 Execute(The command should be correct when using docker and supplying options):
21   let b:ale_dockerfile_hadolint_use_docker = 'always'
22   let b:ale_dockerfile_hadolint_options = '--ignore DL3006'
23
24   AssertLinter 'docker',
25   \ 'docker run --rm -i hadolint/hadolint hadolint --ignore DL3006 --no-color -'