@@ -47,7 +47,6 @@ func (s Severity) String() string {
4747 }
4848}
4949
50-
5150// Finding represents a lint finding from rule analysis.
5251type Finding struct {
5352 RuleID string
@@ -81,9 +80,9 @@ type Stage struct {
8180
8281// Dockerfile represents a parsed Dockerfile.
8382type Dockerfile struct {
84- Stages []Stage
85- Instructions []Instruction
86- Comments []Comment
83+ Stages []Stage
84+ Instructions []Instruction
85+ Comments []Comment
8786 InlineIgnores map [int ][]string // line -> rule IDs to ignore
8887}
8988
@@ -102,7 +101,6 @@ func (f *FromInstruction) Line() int { return f.LineNum }
102101func (f * FromInstruction ) Raw () string { return f .RawText }
103102func (f * FromInstruction ) Type () InstructionType { return InstrFROM }
104103
105-
106104// RunInstruction represents a RUN instruction.
107105type RunInstruction struct {
108106 LineNum int
@@ -166,7 +164,6 @@ func (a *ArgInstruction) Line() int { return a.LineNum }
166164func (a * ArgInstruction ) Raw () string { return a .RawText }
167165func (a * ArgInstruction ) Type () InstructionType { return InstrARG }
168166
169-
170167// ExposeInstruction represents an EXPOSE instruction.
171168type ExposeInstruction struct {
172169 LineNum int
@@ -223,7 +220,6 @@ func (v *VolumeInstruction) Line() int { return v.LineNum }
223220func (v * VolumeInstruction ) Raw () string { return v .RawText }
224221func (v * VolumeInstruction ) Type () InstructionType { return InstrVOLUME }
225222
226-
227223// CmdInstruction represents a CMD instruction.
228224type CmdInstruction struct {
229225 LineNum int
0 commit comments