pkg

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.7.0

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

func Analyser

func Analyser() (*analysis.Analyzer, *Config)

Analyser creates a new logcheck analyser.

func (*Config) ParseConfig added in v0.7.0

func (c *Config) ParseConfig(configContent string) error

func (*Config) SetEnabled added in v0.7.0

func (c *Config) SetEnabled(check string, enabled bool) error

type RegexpFilter

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

RegexpFilter implements flag.Value by accepting a file name and parsing that file.

func (*RegexpFilter) Enabled

func (f *RegexpFilter) Enabled(check string, enabled bool, filename string) bool

Enabled checks whether a certain check is enabled for a file.

func (*RegexpFilter) Parse added in v0.7.0

func (f *RegexpFilter) Parse(file io.Reader, filename string) error

func (*RegexpFilter) Set

func (f *RegexpFilter) Set(filename string) error

func (*RegexpFilter) String

func (f *RegexpFilter) String() string

Jump to

Keyboard shortcuts

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