rulelevel

package
v0.0.0-...-5811ad1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package rulelevel defines the level assigned to a rule violation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type int

Type is the type for the rule levels.

const (
	Info    Type = iota // INFO
	Warning             // WARNING
	Error               // ERROR
	Notice              // NOTICE
)

The line comments set the string for each level.

func FailRuleLevel

func FailRuleLevel(ruleConfiguration ruleconfiguration.Type, configurationRuleModes map[rulemode.Type]bool) (Type, error)

FailRuleLevel determines the level of a failed rule for the given rule modes.

func RuleLevel

func RuleLevel(ruleConfiguration ruleconfiguration.Type, ruleResult ruleresult.Type, lintedProject project.Type) (Type, error)

RuleLevel determines the rule level assigned to the given result of the given rule under the current tool configuration.

func (Type) String

func (i Type) String() string

Jump to

Keyboard shortcuts

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