MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / ReadLineNoComment

Method ReadLineNoComment

opensca/model/file.go:68–72  ·  view source on GitHub ↗

ReadLineNoComment 按行读取文件内容 忽略注释

(t *CommentType, do func(line string))

Source from the content-addressed store, hash-verified

66
67// ReadLineNoComment 按行读取文件内容 忽略注释
68func (file File) ReadLineNoComment(t *CommentType, do func(line string)) {
69 file.OpenReader(func(reader io.Reader) {
70 ReadLineNoComment(reader, t, do)
71 })
72}
73
74// 注释类型
75type CommentType struct {

Callers 4

mainFunction · 0.95
ParseGomodFunction · 0.80
ParseGroovyFunction · 0.80
ParseGradleFunction · 0.80

Calls 2

OpenReaderMethod · 0.95
ReadLineNoCommentFunction · 0.85

Tested by

no test coverage detected