scoring

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReloadRules

func ReloadRules() error

func ScoreDBComment

func ScoreDBComment(dbc *db.Job) int

Types

type Rule

type Rule struct {
	config.ScoringRule
	RuleType RuleType
	Regex    *regexp.Regexp
}

func GetRules

func GetRules() []*Rule

type RuleType

type RuleType int
const (
	TextFound RuleType = iota
	TextMissing
)

func (RuleType) String

func (rt RuleType) String() string

Jump to

Keyboard shortcuts

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