shfmt

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 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 `` /* 131-byte string literal not displayed */
	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(_ 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