-
Couldn't load subscription status.
- Fork 1.5k
Closed
Labels
Description
I'm using hadolint and ale to lint my dockerfiles.
When the syntax of the keywords are ok, it shows me hints what to improve - fine!
But when the Dockerfile contains a line starting with a non recognized keyword or junk text, ale won't show any error or hints unfortunatly.
Current Filetype: dockerfile
Available Linters: ['hadolint']
Enabled Linters: ['hadolint']
Linter Variables:
let g:ale_dockerfile_hadolint_docker_image = 'lukasmartinelli/hadolint'
let g:ale_dockerfile_hadolint_use_docker = 'never'
Global Variables:
let g:ale_echo_cursor = 1
let g:ale_echo_msg_error_str = 'Error'
let g:ale_echo_msg_format = '%s'
let g:ale_echo_msg_warning_str = 'Warning'
let g:ale_enabled = 1
let g:ale_fix_on_save = 0
let g:ale_fixers = {}
let g:ale_keep_list_window_open = 0
let g:ale_lint_delay = 200
let g:ale_lint_on_enter = 1
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 'always'
let g:ale_linter_aliases = {}
let g:ale_linters = {}
let g:ale_open_list = 0
let g:ale_set_highlights = 1
let g:ale_set_loclist = 1
let g:ale_set_quickfix = 0
let g:ale_set_signs = 1
let g:ale_sign_column_always = 0
let g:ale_sign_error = '>>'
let g:ale_sign_offset = 1000000
let g:ale_sign_warning = '--'
let g:ale_statusline_format = ['%d error(s)', '%d warning(s)', 'OK']
let g:ale_warn_about_trailing_whitespace = 1
Command History:
(executable check - success) hadolint
(started) ['/usr/bin/zsh', '-c', 'hadolint - < ''/tmp/nvimRsbhPT/2/Dockerfile''']
(finished - exit code 0) ['/usr/bin/zsh', '-c', 'hadolint - < ''/tmp/nvimRsbhPT/3/Dockerfile''']
<<<OUTPUT STARTS>>>
"/dev/stdin" (line 4, column 1):
unexpected 'd'
expecting space, "\t", "ONBUILD", "FROM", "COPY", "RUN", "WORKDIR", "ENTRYPOINT", "VOLUME", "EXPOSE", "ENV", "ARG", "USER", "LABEL", "STOPSIGNAL", "CMD", "MAINTAINER", "ADD", "#" or end of input
<<<OUTPUT ENDS>>>