customrules

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultilineIfRule

type MultilineIfRule struct{}

func (*MultilineIfRule) Apply

func (r *MultilineIfRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure

func (*MultilineIfRule) Name

func (r *MultilineIfRule) Name() string

type VarNamingRule

type VarNamingRule struct {
	sync.Mutex
	// contains filtered or unexported fields
}

VarNamingRule lints given else constructs.

func (*VarNamingRule) Apply

func (r *VarNamingRule) Apply(file *lint.File, arguments lint.Arguments) []lint.Failure

Apply applies the rule to given file.

func (*VarNamingRule) Name

func (*VarNamingRule) Name() string

Name returns the rule name.

Jump to

Keyboard shortcuts

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