package
1.3.9
Repository: https://github.com/deepsourcecorp/revive.git
Documentation: pkg.go.dev

# Functions

Name returns a different name if it should be different.
New creates a new Linter.
NewFile creates a new file.
ParseFileFilter - creates [FileFilter] for given raw filter if empty string, it matches nothing if `*`, or `~`, it matches everything while regexp could be invalid, it could return it's compilation error.
ToFailurePosition returns the failure position.

# Constants

SeverityError declares failures of type error.
SeverityWarning declares failures of type warning.

# Structs

AbstractRule defines an abstract rule.
Config defines the config of the linter.
DirectiveConfig is type used for the linter directive configuration.
DisabledInterval contains a single disabled interval and the associated rule name.
Failure defines a struct for a linting failure.
FailurePosition returns the failure position.
File abstraction used for representing files.
FileFilter - file filter to exclude some files for rule supports whole 1.
FormatterMetadata configuration of a formatter.
Linter is used for linting set of files.
Package represents a package in the project.
RuleConfig is type used for the rule configuration.

# Interfaces

Formatter defines an interface for failure formatters.
Rule defines an abstract rule interface.

# Type aliases

Arguments is type used for the arguments of a rule.
DirectivesConfig defines the config for all directives.
FileFilters is type used for modeling file filters to apply to rules.
ReadFile defines an abstraction for reading files.
RulesConfig defines the config for all rules.
Severity is the type for the failure types.