mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-21 09:08:34 +08:00
hadolint: Recognize message type
Hadolint is in the process of adding the severity of a lint rule to the commandline output: https://github.com/hadolint/hadolint/pull/501 This change utilizes that to show the severity in vim.
This commit is contained in:
@@ -70,14 +70,14 @@ Execute(test warnings from hadolint):
|
||||
AssertEqual
|
||||
\ [{'lnum': 10, 'col': 0, 'type': 'W', 'text': 'Using latest is prone to errors', 'detail': "DL3007 ( https://github.com/hadolint/hadolint/wiki/DL3007 )\n\nUsing latest is prone to errors"}],
|
||||
\ ale_linters#dockerfile#hadolint#Handle(bufnr(''), [
|
||||
\ '/dev/stdin:10 DL3007 Using latest is prone to errors',
|
||||
\ '/dev/stdin:10 DL3007 warning: Using latest is prone to errors',
|
||||
\ ])
|
||||
|
||||
Execute(test warnings from shellcheck):
|
||||
AssertEqual
|
||||
\ [{'lnum': 3, 'col': 0, 'type': 'W', 'text': 'bar is referenced but not assigned.', 'detail': "SC2154 ( https://github.com/koalaman/shellcheck/wiki/SC2154 )\n\nbar is referenced but not assigned."}],
|
||||
\ ale_linters#dockerfile#hadolint#Handle(bufnr(''), [
|
||||
\ '/dev/stdin:3 SC2154 bar is referenced but not assigned.',
|
||||
\ '/dev/stdin:3 SC2154 warning: bar is referenced but not assigned.',
|
||||
\ ])
|
||||
|
||||
Execute(test errors from dockerfile parser):
|
||||
|
||||
Reference in New Issue
Block a user