mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-08 20:43:31 +08:00
fix(hadolint): set code field as well (#3943)
This commit is contained in:
@@ -16,6 +16,7 @@ Execute(The hadolint handler should handle a normal example):
|
||||
\ 'lnum': 1,
|
||||
\ 'col': 0,
|
||||
\ 'type': 'W',
|
||||
\ 'code': 'DL3006',
|
||||
\ 'text': "DL3006: Always tag the version of an image explicitly",
|
||||
\ 'detail': "DL3006 ( https://github.com/hadolint/hadolint/wiki/DL3006 )\n\nAlways tag the version of an image explicitly",
|
||||
\ },
|
||||
@@ -23,6 +24,7 @@ Execute(The hadolint handler should handle a normal example):
|
||||
\ 'lnum': 4,
|
||||
\ 'col': 0,
|
||||
\ 'type': 'W',
|
||||
\ 'code': 'DL3033',
|
||||
\ 'text': "DL3033: Specify version with `yum install -y <package>-<version>`.",
|
||||
\ 'detail': "DL3033 ( https://github.com/hadolint/hadolint/wiki/DL3033 )\n\nSpecify version with `yum install -y <package>-<version>`.",
|
||||
\ },
|
||||
@@ -30,6 +32,7 @@ Execute(The hadolint handler should handle a normal example):
|
||||
\ 'lnum': 12,
|
||||
\ 'col': 0,
|
||||
\ 'type': 'W',
|
||||
\ 'code': 'SC2039',
|
||||
\ 'text': "SC2039: In POSIX sh, brace expansion is undefined.",
|
||||
\ 'detail': "SC2039 ( https://github.com/koalaman/shellcheck/wiki/SC2039 )\n\nIn POSIX sh, brace expansion is undefined.",
|
||||
\ },
|
||||
|
||||
Reference in New Issue
Block a user