linter

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveSliceFromArgMap

func ResolveSliceFromArgMap(strSlice []string, argMap map[string]string)

func ResolveValueFromArgMap

func ResolveValueFromArgMap(str string, argMap map[string]string) string

Types

type Linter

type Linter struct{}

Linter TODO: add config Config.

var MainLinter Linter // nolint:gochecknoglobals

func (*Linter) Run

func (l *Linter) Run(stageList []instructions.Stage) []RuleSet.RuleValidationResult

nolint:nestif, funlen, gocognit

Validate each Dockerfile AST entry against rules in ruleset package.

Directories

Path Synopsis
ruleset provides a set of rules and their corresponding validator functions for linting Dockerfile AST elements.
ruleset provides a set of rules and their corresponding validator functions for linting Dockerfile AST elements.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL