diff options
author | Horacio Sanson <hsanson@gmail.com> | 2020-06-20 20:58:42 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-20 20:58:42 +0900 |
commit | 834d6f9c48ce349a4c3d72e98bd0de81aaa84042 (patch) | |
tree | d9e895e5edc61a583d6e77b4e63a305f8132de79 /test/handler | |
parent | 4f254988064d075bd3c2e08038b501df4d07b78d (diff) | |
parent | c0d74b80944feddc4e8c91e7b1cae47e1533b2c1 (diff) | |
download | ale-834d6f9c48ce349a4c3d72e98bd0de81aaa84042.zip |
Merge pull request #3158 from ulidtko/improve-dockerfile_lint
Improve :ALEDetail for dockerfile_lint [READY TO REVIEW]
Diffstat (limited to 'test/handler')
-rw-r--r-- | test/handler/test_dockerfile_lint_handler.vader | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/handler/test_dockerfile_lint_handler.vader b/test/handler/test_dockerfile_lint_handler.vader index 619b7bde..a73db8cd 100644 --- a/test/handler/test_dockerfile_lint_handler.vader +++ b/test/handler/test_dockerfile_lint_handler.vader @@ -26,21 +26,25 @@ Execute(The dockerfile_lint handler should handle a normal example): \ 'lnum': -1, \ 'type': 'E', \ 'text': "Required LABEL name/key 'Name' is not defined", + \ 'detail': "Required LABEL name/key 'Name' is not defined\n\nhttp://docs.projectatomic.io/container-best-practices/#_recommended_labels_for_your_project", \ }, \ { \ 'lnum': -1, \ 'type': 'E', \ 'text': "Required LABEL name/key 'Version' is not defined", + \ 'detail': "Required LABEL name/key 'Version' is not defined\n\nhttp://docs.projectatomic.io/container-best-practices/#_recommended_labels_for_your_project", \ }, \ { \ 'lnum': 3, \ 'type': 'I', - \ 'text': "the MAINTAINER command is deprecated. MAINTAINER is deprecated in favor of using LABEL since Docker v1.13.0", + \ 'text': "the MAINTAINER command is deprecated", + \ 'detail': "the MAINTAINER command is deprecated\n\nMAINTAINER is deprecated in favor of using LABEL since Docker v1.13.0\n\nhttps://github.com/docker/cli/blob/master/docs/deprecated.md#maintainer-in-dockerfile", \ }, \ { \ 'lnum': -1, \ 'type': 'I', \ 'text': "There is no 'CMD' instruction", + \ 'detail': "There is no 'CMD' instruction\n\nhttps://docs.docker.com/engine/reference/builder/#cmd", \ }, \ ], \ ale_linters#dockerfile#dockerfile_lint#Handle(bufnr(''), [ |