mirror of
https://github.com/dense-analysis/ale
synced 2024-12-25 23:52:22 +00:00
bf55175b69
Combine cases into smaller tests of tests and remove tests we no longer need. Linter tests have been moved to where they should be.
26 lines
915 B
Plaintext
26 lines
915 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('dockerfile', 'hadolint')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(We should not use Docker by default):
|
|
AssertLinter 'hadolint', 'hadolint --no-color -'
|
|
|
|
Execute(Options should be passed correctly when docker is disabled):
|
|
let b:ale_dockerfile_hadolint_options = '--ignore DL3006'
|
|
|
|
AssertLinter 'hadolint', 'hadolint --ignore DL3006 --no-color -'
|
|
|
|
Execute(The command should be correct when using Docker):
|
|
let b:ale_dockerfile_hadolint_use_docker = 'always'
|
|
|
|
AssertLinter 'docker', 'docker run --rm -i hadolint/hadolint hadolint --no-color -'
|
|
|
|
Execute(The command should be correct when using docker and supplying options):
|
|
let b:ale_dockerfile_hadolint_use_docker = 'always'
|
|
let b:ale_dockerfile_hadolint_options = '--ignore DL3006'
|
|
|
|
AssertLinter 'docker',
|
|
\ 'docker run --rm -i hadolint/hadolint hadolint --ignore DL3006 --no-color -'
|