MCPcopy Create free account
hub / github.com/coder/coder / suppressedLines

Function suppressedLines

scripts/intxcheck/analyzer.go:559–569  ·  view source on GitHub ↗
(fset *token.FileSet, file *ast.File)

Source from the content-addressed store, hash-verified

557}
558
559func suppressedLines(fset *token.FileSet, file *ast.File) map[int]bool {
560 lines := make(map[int]bool)
561 for _, group := range file.Comments {
562 for _, comment := range group.List {
563 if strings.Contains(comment.Text, "intxcheck:ignore") {
564 lines[fset.Position(comment.Pos()).Line] = true
565 }
566 }
567 }
568 return lines
569}
570
571func suppressedLine(fset *token.FileSet, suppressed map[int]bool, pos token.Pos) bool {
572 return suppressed[fset.Position(pos).Line]

Callers 1

runFunction · 0.85

Calls 1

ContainsMethod · 0.45

Tested by

no test coverage detected