Skip to content

Commit

Permalink
fix buildkit (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
zabio3 committed Jul 3, 2022
1 parent 4c11dbe commit 294161c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions linter/analyzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestAnalyzer(t *testing.T) {
Next: (*parser.Node)(nil),
Children: []*parser.Node{
{
Value: "from",
Value: "FROM",
Next: &parser.Node{
Value: "golang:1.12.0-stretch",
Next: (*parser.Node)(nil),
Expand All @@ -36,7 +36,7 @@ func TestAnalyzer(t *testing.T) {
StartLine: 1,
},
{
Value: "workdir",
Value: "WORKDIR",
Next: &parser.Node{
Value: "go/",
Next: (*parser.Node)(nil),
Expand All @@ -53,7 +53,7 @@ func TestAnalyzer(t *testing.T) {
StartLine: 3,
},
{
Value: "copy",
Value: "COPY",
Next: &parser.Node{
Value: ".",
Next: &parser.Node{
Expand All @@ -78,7 +78,7 @@ func TestAnalyzer(t *testing.T) {
StartLine: 4,
},
{
Value: "cmd",
Value: "CMD",
Next: &parser.Node{
Value: "go",
Next: &parser.Node{
Expand Down
26 changes: 13 additions & 13 deletions linter/rules/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ type ValidateResult struct {

// Dockerfile instruction.
const (
FROM = "from"
LABEL = "label"
RUN = "run"
CMD = "cmd"
EXPOSE = "expose"
ADD = "add"
COPY = "copy"
ENTRYPOINT = "entrypoint"
VOLUME = "volume"
USER = "user"
WORKDIR = "workdir"
SHELL = "shell"
FROM = "FROM"
LABEL = "LABEL"
RUN = "RUN"
CMD = "CMD"
EXPOSE = "EXPOSE"
ADD = "ADD"
COPY = "COPY"
ENTRYPOINT = "ENTRYPOINT"
VOLUME = "VOLUME"
USER = "USER"
WORKDIR = "WORKDIR"
SHELL = "SHELL"

// deprecated instruction.
MAINTAINER = "maintainer"
MAINTAINER = "MAINTAINER"
)

// Severity stand check type.
Expand Down

0 comments on commit 294161c

Please sign in to comment.