Documentation
¶
Overview ¶
Package syntax provides fail-fast AST-level correctness checks that run before the full lint pipeline. If any check fires, linting is aborted.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClosestInstruction ¶
ClosestInstruction returns the closest valid Dockerfile instruction to input within Levenshtein distance 2, or "" if none is close enough. The comparison is case-insensitive; the returned value is lowercase (matching command.Commands).
Types ¶
type CheckError ¶
type CheckError struct {
Errors []Error
}
CheckError wraps one or more syntax check failures for error propagation.
func (*CheckError) Error ¶
func (e *CheckError) Error() string
type Error ¶
type Error struct {
File string // path to the Dockerfile
Message string // e.g. `unknown instruction "FORM" (did you mean "FROM"?)`
Line int // 1-based line number
RuleCode string // e.g. "tally/unknown-instruction"
}
Error represents a single syntax-level diagnostic.
Click to show internal directories.
Click to hide internal directories.