buildkit/NoEmptyContinuation¶
Empty continuation lines are deprecated and will cause errors in future Dockerfile syntax versions.
| Property | Value |
|---|---|
| Severity | Error |
| Category | Correctness |
| Default | Enabled |
| Auto-fix | Yes (--fix) |
Description¶
Support for empty continuation (\) lines has been deprecated and will
generate errors in future versions of the Dockerfile syntax. Empty continuation
lines are empty lines following a newline escape.
Examples¶
Bad:
Good:
Bad:
Good (empty lines removed):
Auto-fix¶
The fix removes empty continuation lines from multi-line commands.