Skip to content

Commit

Permalink
Bug fix DL3014 support --assume-yes (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
zabio3 committed Jun 30, 2019
1 parent ba2b6d9 commit 93ddd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linter/rules/dl3014.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/moby/buildkit/frontend/dockerfile/parser"
)

var yesPattern = regexp.MustCompile(`^-[^-]*y.*$`)
var yesPattern = regexp.MustCompile(`^-(y|-yes|-assume-yes)$`)

// validateDL3014 Use the `-y` switch to avoid manual input `apt-get -y install <package>`
func validateDL3014(node *parser.Node) (rst []ValidateResult, err error) {
Expand Down

0 comments on commit 93ddd4b

Please sign in to comment.