| Property | Value |
|---|---|
| Severity | Style |
| Category | Style |
| Default | Enabled |
| Auto-fix | Yes (safe) |
Description
Multiple consecutive spaces within Dockerfile instructions are usually accidental and make the code harder to read. This rule flags any run of 2 or more consecutive space characters within instruction lines. The following are excluded:- Leading indentation: whitespace before the instruction keyword
- Heredoc body lines: content between heredoc markers (semantically significant)
- Comment lines: lines starting with
#