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

Method SetText

internal/core/file.go:282–286  ·  view source on GitHub ↗

SetText updates the file's content, lines, and history.

(s string)

Source from the content-addressed store, hash-verified

280
281// SetText updates the file's content, lines, and history.
282func (f *File) SetText(s string) {
283 f.Content = s
284 f.Lines = strings.SplitAfter(s, "\n")
285 f.history = map[string]int{}
286}
287
288// SetNormedExt sets the normalized extension of a File.
289func (f *File) SetNormedExt(ext string) {

Callers 3

lintCodeMethod · 0.80
lintFragmentsMethod · 0.80
lintScopedValuesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected