Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Hadolint: Show rule ID #2333

@varac

Description

@varac

When hadolint gets called by ALE, it shows the rule ID before the message:

(executable check - success) docker                                                                                                                                                                                 
(started) ['/bin/zsh', '-c', 'docker run --rm -i hadolint/hadolint < ''/tmp/nvimR7OOcs/1/Dockerfile''']                                                                                                             
(finished - exit code 1) ['/bin/zsh', '-c', 'docker run --rm -i hadolint/hadolint < ''/tmp/nvimR7OOcs/4/Dockerfile''']                                                                                              
<<<OUTPUT STARTS>>>                                                                                                                                                                                                 
/dev/stdin:7 DL3018 Pin versions in apk add. Instead of `apk add <package>` use `apk add <package>=<version>`                                                                                                       
<<<OUTPUT ENDS>>> 

However, in the text buffer the rule ID is omitted. Please show it there, it's extremely useful to look it up in the hadolint docs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions