Documentation ¶
Overview ¶
Package application contains the application logic for the homoglyphs rule type
Index ¶
Constants ¶
View Source
const (
// HomoglyphsEvalType is the type of the homoglyphs evaluator
HomoglyphsEvalType = "homoglyphs"
)
Variables ¶
This section is empty.
Functions ¶
func NewHomoglyphsEvaluator ¶
func NewHomoglyphsEvaluator( ctx context.Context, reh *pb.RuleType_Definition_Eval_Homoglyphs, ghClient provifv1.GitHub, opts ...eoptions.Option, ) (interfaces.Evaluator, error)
NewHomoglyphsEvaluator creates a new homoglyphs evaluator
Types ¶
type InvisibleCharactersEvaluator ¶
type InvisibleCharactersEvaluator struct {
// contains filtered or unexported fields
}
InvisibleCharactersEvaluator is an evaluator for the invisible characters rule type
func NewInvisibleCharactersEvaluator ¶
func NewInvisibleCharactersEvaluator( _ context.Context, ghClient provifv1.GitHub, opts ...eoptions.Option, ) (*InvisibleCharactersEvaluator, error)
NewInvisibleCharactersEvaluator creates a new invisible characters evaluator
func (*InvisibleCharactersEvaluator) Eval ¶
func (ice *InvisibleCharactersEvaluator) Eval( ctx context.Context, _ map[string]any, _ protoreflect.ProtoMessage, res *interfaces.Result, ) error
Eval evaluates the invisible characters rule type
type MixedScriptsEvaluator ¶
type MixedScriptsEvaluator struct {
// contains filtered or unexported fields
}
MixedScriptsEvaluator is the evaluator for the mixed scripts rule type
func NewMixedScriptEvaluator ¶
func NewMixedScriptEvaluator( ctx context.Context, ghClient provifv1.GitHub, opts ...eoptions.Option, ) (*MixedScriptsEvaluator, error)
NewMixedScriptEvaluator creates a new mixed scripts evaluator
func (*MixedScriptsEvaluator) Eval ¶
func (mse *MixedScriptsEvaluator) Eval( ctx context.Context, _ map[string]any, _ protoreflect.ProtoMessage, res *interfaces.Result, ) error
Eval evaluates the mixed scripts rule type
Click to show internal directories.
Click to hide internal directories.