linter

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0, BSD-3-Clause, GPL-3.0, + 1 more Imports: 2 Imported by: 0

Documentation

Overview

Package linter provides dockerfile analyzer (Apply the rule to the parsed dockerfile).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

Analyzer implements Analyzer.

func NewAnalyzer

func NewAnalyzer(ignoreRules []string, trustedRegistries []string) Analyzer

NewAnalyzer generate a NewAnalyzer with rules to apply.

func (Analyzer) Run

func (a Analyzer) Run(node *parser.Node) ([]string, error)

Run apply docker best practice rules to docker ast.

Directories

Path Synopsis
Package rules provides dockerfile lint rules.
Package rules provides dockerfile lint rules.

Jump to

Keyboard shortcuts

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