summaryrefslogtreecommitdiff
path: root/ale_linters/dockerfile
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-08-08 08:39:13 +0100
committerw0rp <devw0rp@gmail.com>2017-08-08 08:39:13 +0100
commita535d07f2897d36dad3b22d28c1c6cd16b7e385e (patch)
treed32ef7e2261be0a1542fb39f1978b90e6f59a520 /ale_linters/dockerfile
parent5010ddc28fdced941925563bbc55f9219dfa4267 (diff)
downloadale-a535d07f2897d36dad3b22d28c1c6cd16b7e385e.zip
Ban use of ==# or ==? in the codebase, and prefer is# or is? instead
Diffstat (limited to 'ale_linters/dockerfile')
-rw-r--r--ale_linters/dockerfile/hadolint.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/dockerfile/hadolint.vim b/ale_linters/dockerfile/hadolint.vim
index 4063bf1b..563be630 100644
--- a/ale_linters/dockerfile/hadolint.vim
+++ b/ale_linters/dockerfile/hadolint.vim
@@ -45,9 +45,9 @@ function! ale_linters#dockerfile#hadolint#GetExecutable(buffer) abort
let l:use_docker = ale#Var(a:buffer, 'dockerfile_hadolint_use_docker')
" check for mandatory directives
- if l:use_docker ==# 'never'
+ if l:use_docker is# 'never'
return 'hadolint'
- elseif l:use_docker ==# 'always'
+ elseif l:use_docker is# 'always'
return 'docker'
endif
@@ -62,7 +62,7 @@ endfunction
function! ale_linters#dockerfile#hadolint#GetCommand(buffer) abort
let l:command = ale_linters#dockerfile#hadolint#GetExecutable(a:buffer)
- if l:command ==# 'docker'
+ if l:command is# 'docker'
return 'docker run --rm -i ' . ale#Var(a:buffer, 'dockerfile_hadolint_docker_image')
endif
return 'hadolint -'