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

Function toJSON

internal/lint/code/util.go:9–12  ·  view source on GitHub ↗
(comments []Comment)

Source from the content-addressed store, hash-verified

7)
8
9func toJSON(comments []Comment) string {
10 j, _ := json.MarshalIndent(comments, "", " ")
11 return string(j)
12}
13
14func cStyle(s string) int {
15 return computePadding(s, []string{"/*", "//"})

Callers 1

TestCommentsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCommentsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…