MCPcopy Create free account
hub / github.com/vale-cli/vale / FixAlert

Function FixAlert

internal/check/action.go:55–61  ·  view source on GitHub ↗
(alert core.Alert, cfg *core.Config)

Source from the content-addressed store, hash-verified

53}
54
55func FixAlert(alert core.Alert, cfg *core.Config) ([]string, error) {
56 action := alert.Action.Name
57 if f, found := fixers[action]; found {
58 return f(alert, cfg)
59 }
60 return []string{}, fmt.Errorf("unknown action '%s'", action)
61}
62
63func suggest(alert core.Alert, cfg *core.Config) ([]string, error) {
64 if len(alert.Action.Params) == 0 {

Callers 2

makeAlertFunction · 0.85
ParseAlertFunction · 0.85

Calls 1

fFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…