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

Function hintFile

src/cli/htmlhint.ts:494–504  ·  view source on GitHub ↗
(filepath: string, ruleset?: Ruleset)

Source from the content-addressed store, hash-verified

492
493// hint file
494function hintFile(filepath: string, ruleset?: Ruleset) {
495 let content = ''
496
497 try {
498 content = readFileSync(filepath, 'utf-8')
499 } catch (e) {
500 // ignore
501 }
502
503 return HTMLHint.verify(content, ruleset)
504}
505
506// hint stdin
507function hintStdin(

Callers 1

hintAllFilesFunction · 0.85

Calls 1

verifyMethod · 0.80

Tested by

no test coverage detected