shfmt

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: MIT Imports: 10 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 {
	Type     string `json:"type" yaml:"type" jsonschema:"enum=shfmt" jsonschema_description:"a built in shell formatter thanks to mvdan"`
	Language string `json:"language" yaml:"language" jsonschema:"enum=bash,enum=posix,enum=sh,enum=mksh"`
}

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) 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