MCPcopy
hub / github.com/promptfoo/promptfoo / hasInlineCommentLocation

Function hasInlineCommentLocation

src/codeScan/util/github.ts:35–42  ·  view source on GitHub ↗
(comment: Comment)

Source from the content-addressed store, hash-verified

33}
34
35function hasInlineCommentLocation(comment: Comment): boolean {
36 return (
37 Boolean(comment.file) &&
38 comment.line != null &&
39 Number.isInteger(comment.line) &&
40 comment.line > 0
41 );
42}
43
44/**
45 * Parse GitHub PR string

Callers 1

prepareCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…