dockfmt

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LintDockFmt

type LintDockFmt struct {
	Type            string `json:"type" yaml:"type" jsonschema:"a built in Docker formatter thanks to reteps (Pete Stenger)"`
	IndentSize      uint   `json:"indent_size" yaml:"indent_size" jsonschema:"Number of spaces to use for indentation"`
	TrailingNewline bool   `json:"trailing_newline" yaml:"trailing_newline" jsonschema:"End the file with a trailing newline"`
	SpaceRedirects  bool   `json:"space_redirects" yaml:"space_redirects" jsonschema:"Redirect operators will be followed by a space"`
}

LintDockFmt is a linter that uses the reteps/dockerfmt library to format dockerfiles

func (*LintDockFmt) Cleanup

func (l *LintDockFmt) Cleanup(_ context.Context) error

Cleanup removes any additional resources created in the process

func (*LintDockFmt) Name

func (l *LintDockFmt) Name() string

Name returns the name of the linter

func (*LintDockFmt) Run

func (l *LintDockFmt) Run(filepath string) linter.Report

Run will just return the configured error as a report

func (*LintDockFmt) Setup added in v1.0.6

func (l *LintDockFmt) Setup(_ context.Context) (err error)

Setup returns nil as there are no external deps

Jump to

Keyboard shortcuts

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