shfmt

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: 9 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:"a built in shell formatter thanks to mvdan (Daniel Martí)"`
	Language string `json:"language" yaml:"language"`
}

LintShfmt contains all the information needed to configure shfmt

func (*LintShfmt) Cleanup added in v0.20.0

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

Cleanup removes any additional resources created in the process

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) linter.Report

Run shfmt -w

func (*LintShfmt) Setup added in v1.0.6

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

Setup will 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