shfmt

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LintShfmt added in v0.20.0

type LintShfmt struct {
	Language syntax.LangVariant `yaml:"language"`
}

LintShfmt contains all the information needed to configure shfmt

func (*LintShfmt) Cleanup added in v0.20.0

func (l *LintShfmt) Cleanup(wg *sync.WaitGroup)

Cleanup removes any additional resources created in the process

func (*LintShfmt) MaxConcurrency added in v0.20.0

func (l *LintShfmt) MaxConcurrency() int

MaxConcurrency return max number of parallel files to fmt

func (*LintShfmt) Name added in v0.20.0

func (l *LintShfmt) Name() string

Name returns the name of the linter

func (*LintShfmt) Run added in v0.20.0

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

Run shfmt -w

func (*LintShfmt) UnmarshalYAML added in v0.20.0

func (l *LintShfmt) UnmarshalYAML(value *yaml.Node) error

UnmarshalYAML implements custom YAML unmarshalling

func (*LintShfmt) WillRun added in v0.20.0

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

WillRun do nothing as there are no external deps

Jump to

Keyboard shortcuts

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