EmptyDockerfile (check/id20001.go)

slim · pkg/docker/linter/check/id20001.go · go · Apache-2.0
integration, infra, dev-tools

Empty Dockerfile linter check

// Source: https://github.com/slimtoolkit/slim | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Package check contains the linter checks
package check

import (
	log "github.com/sirupsen/logrus"
)

func init() {
	check := &EmptyDockerfile{
		Info: Info{
			ID:          "ID.20001",
			Name:        "Empty Dockerfile",
			Description: "Empty Dockerfile",
			DetailsURL:  "https://lint.dockersl.im/check/ID.20001",
			MainMessage: "No instructions in Dockerfile",
			Labels: map[string]string{
				LabelLevel: LevelError,
				LabelScope: ScopeDockerfile,
			},
		},
	}

	AllChecks = append(AllChecks, check)
}

type EmptyDockerfile struct {
	Info
}

func (c *EmptyDockerfile) Run(opts *Opt

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key