linters

package module
v0.0.0-...-2d8c9d4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(settings any) (register.LinterPlugin, error)

New creates a new LLPlugin from the given settings. It satisfies the signature required by the golangci-lint linter for plugins.

Types

type LLConfig

type LLConfig struct {
	LineLength int    `json:"line-length"`
	TabWidth   int    `json:"tab-width"`
	LogRegex   string `json:"log-regex"`
}

LLConfig is the configuration for the ll linter.

type LLPlugin

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

LLPlugin is a golangci-linter plugin that can be used to check that code line lengths do not exceed a certain limit.

func (*LLPlugin) BuildAnalyzers

func (l *LLPlugin) BuildAnalyzers() ([]*analysis.Analyzer, error)

BuildAnalyzers creates the analyzers for the ll linter.

NOTE: This is part of the register.LinterPlugin interface.

func (*LLPlugin) GetLoadMode

func (l *LLPlugin) GetLoadMode() string

GetLoadMode returns the load mode for the ll linter.

NOTE: This is part of the register.LinterPlugin interface.

Jump to

Keyboard shortcuts

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