method_casing_convention

package
v0.0.0-...-0c5530c Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Disabled    bool
	Level       reports.ErrorLevel
	WordCase    casing.WordCase
	Initialisms casing.Initialisms
}

func NewConfig

func NewConfig() *Config

type Rule

type Rule struct {
	// contains filtered or unexported fields
}

func NewRule

func NewRule(logger *log.Logger, cfg *Config) *Rule

func (*Rule) Apply

func (r *Rule) Apply(roots []eval.Root) reports.ReportList

func (*Rule) IsDisabled

func (r *Rule) IsDisabled() bool

func (*Rule) Name

func (r *Rule) Name() string

func (*Rule) WalkMethodExpr

func (r *Rule) WalkMethodExpr(e eval.Expression) (rl reports.ReportList)

Jump to

Keyboard shortcuts

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