noop

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LintNoop

type LintNoop struct {
	Type string `json:"type" yaml:"type" jsonschema:"enum=noop" jsonschema_description:"a linter type to do nothing"`
	// contains filtered or unexported fields
}

LintNoop performs no operations, as a template implementation of cries' linter.Linter

func WithErr added in v0.20.12

func WithErr(willRunErr error, runErr error) *LintNoop

WithErr creates a new LintNoop with the given errors

func (*LintNoop) Cleanup

func (l *LintNoop) Cleanup(group *sync.WaitGroup)

Cleanup removes any additional resources created in the process

func (*LintNoop) MaxConcurrency

func (l *LintNoop) MaxConcurrency() int

MaxConcurrency return max number of parallel files to fmt

func (*LintNoop) Name

func (l *LintNoop) Name() string

Name returns the name of the linter

func (*LintNoop) Run

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

Run will just return the configured error as a report

func (*LintNoop) WillRun

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

WillRun just returns the configured error

Jump to

Keyboard shortcuts

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