linters

package module
v0.0.0-...-d5651c6 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

func NewTxScope

func NewTxScope(_ any) (register.LinterPlugin, error)

NewTxScope creates a plugin that detects access to the transaction origin from within an ExecTx callback.

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.

type TxScopePlugin

type TxScopePlugin struct{}

TxScopePlugin prevents transaction callbacks from acquiring another connection from the executor that owns the current transaction.

func (*TxScopePlugin) BuildAnalyzers

func (t *TxScopePlugin) BuildAnalyzers() ([]*analysis.Analyzer, error)

BuildAnalyzers returns the analyzers provided by the plugin.

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

func (*TxScopePlugin) GetLoadMode

func (t *TxScopePlugin) GetLoadMode() string

GetLoadMode requests type information so references to the same executor can be matched by object identity instead of variable spelling.

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