dockfmt

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: MIT Imports: 8 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 `` /* 134-byte string literal not displayed */
	IndentSize      uint   `json:"indent_size" yaml:"indent_size" jsonschema_description:"Number of spaces to use for indentation"`
	TrailingNewline bool   `json:"trailing_newline" yaml:"trailing_newline" jsonschema_description:"End the file with a trailing newline"`
	SpaceRedirects  bool   `json:"space_redirects" yaml:"space_redirects" jsonschema_description:"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(group *sync.WaitGroup)

Cleanup removes any additional resources created in the process

func (*LintDockFmt) MaxConcurrency

func (l *LintDockFmt) MaxConcurrency() int

MaxConcurrency return max number of parallel files to fmt

func (*LintDockFmt) Name

func (l *LintDockFmt) Name() string

Name returns the name of the linter

func (*LintDockFmt) Run

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

Run will just return the configured error as a report

func (*LintDockFmt) WillRun

func (l *LintDockFmt) WillRun() (err error)

WillRun 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