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

Function applyPatterns

internal/lint/html.go:150–167  ·  view source on GitHub ↗
(c *core.Config, exts extensionConfig, content string)

Source from the content-addressed store, hash-verified

148}
149
150func applyPatterns(c *core.Config, exts extensionConfig, content string) (string, error) {
151 s, err := applyBlockPatterns(c, exts, content)
152 if err != nil {
153 return s, err
154 }
155
156 s, err = applyInlinePatterns(c, exts, s)
157 if err != nil {
158 return s, err
159 }
160
161 s, err = applyCommentPatterns(c, exts, s)
162 if err != nil {
163 return s, err
164 }
165
166 return s, nil
167}
168
169func (l *Linter) lintTxtToHTML(f *core.File) error {
170 html, err := os.ReadFile(l.Manager.Config.Flags.Built)

Callers 3

TransformMethod · 0.85
Test_applyPatternsFunction · 0.85

Calls 3

applyBlockPatternsFunction · 0.85
applyInlinePatternsFunction · 0.85
applyCommentPatternsFunction · 0.85

Tested by 2

Test_applyPatternsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…