MCPcopy
hub / github.com/larksuite/cli / commandAt

Method commandAt

internal/qualitygate/rules/errorfacts.go:72–82  ·  view source on GitHub ↗
(path string, line int)

Source from the content-addressed store, hash-verified

70}
71
72func (b BoundaryIndex) commandAt(path string, line int) (string, bool) {
73 if b.Lines == nil {
74 return "", false
75 }
76 lines := b.Lines[filepath.ToSlash(path)]
77 if lines == nil {
78 return "", false
79 }
80 command, ok := lines[line]
81 return command, ok
82}
83
84func CollectErrorFacts(path, src string, boundaries BoundaryIndex) ([]facts.ErrorFact, []report.Diagnostic) {
85 return CollectErrorFactsWithStructuredHelpers(path, src, boundaries, nil)

Callers 3

ContainsMethod · 0.95
collectCallMethod · 0.80

Calls

no outgoing calls