MCPcopy Create free account
hub / github.com/breck7/scroll / getErrorsInFiles

Method getErrorsInFiles

scroll.js:89–100  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

87 }
88
89 async getErrorsInFiles(files) {
90 // todo: re-add parser errors
91 for (let file of files) await file.scrollProgram.load()
92 return files
93 .map(file => {
94 const { scrollProgram } = file
95 return scrollProgram.getAllErrors().map(err => {
96 return { filename: scrollProgram.filename, ...err.toObject() }
97 })
98 })
99 .flat()
100 }
101
102 async testCommand(cwd, filenames) {
103 const start = Date.now()

Callers 2

getErrorsInFolderMethod · 0.95
testCommandMethod · 0.95

Calls 4

loadMethod · 0.80
mapMethod · 0.80
getAllErrorsMethod · 0.80
toObjectMethod · 0.45

Tested by

no test coverage detected