MCPcopy
hub / github.com/htmlhint/HTMLHint / hintNext

Function hintNext

src/cli/htmlhint.ts:302–321  ·  view source on GitHub ↗
(messages: Hint[])

Source from the content-addressed store, hash-verified

300 }
301
302 function hintNext(messages: Hint[]) {
303 const spendTime = new Date().getTime() - startTime
304 const hintCount = messages.length
305 if (hintCount > 0) {
306 formatter.emit('file', {
307 file: filepath,
308 messages: messages,
309 time: spendTime,
310 })
311 arrTargetMessages.push({
312 file: filepath,
313 messages: messages,
314 time: spendTime,
315 })
316 targetHintFileCount++
317 targetHintCount += hintCount
318 }
319 targetFileCount++
320 setImmediate(next)
321 }
322 }, 10)
323
324 // start hint

Callers 1

hintAllFilesFunction · 0.85

Calls 1

emitMethod · 0.80

Tested by

no test coverage detected