-
Notifications
You must be signed in to change notification settings - Fork 20
Labels
Description
We can use the check=skip parser directive to ignore specific checks when parsing a Dockerfile. We should provide a code action for inserting a check=skip=ruleName at the top of the file to make it easier for users to quickly ignore a specific kind of rule.
FROM scratch
ENTRYPOINT ""{
"uri": "file:///tmp/Dockerfile",
"version": 1,
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 0
},
"end": {
"line": 1,
"character": 13
}
},
"severity": 2,
"code": "JSONArgsRecommended",
"codeDescription": {
"href": "https://docs.docker.com/go/dockerfile/rule/json-args-recommended/"
},
"source": "docker-language-server",
"message": "JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals (JSON arguments recommended for ENTRYPOINT to prevent unintended behavior related to OS signals)"
}
]
}