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

Function loadRule

src/cli/htmlhint.ts:239–247  ·  view source on GitHub ↗
(filepath: string)

Source from the content-addressed store, hash-verified

237
238// load rule
239function loadRule(filepath: string) {
240 filepath = resolve(filepath)
241 try {
242 const module = require(filepath)
243 module(HTMLHint)
244 } catch (e) {
245 // ignore
246 }
247}
248
249// hint all files
250function hintAllFiles(

Callers 1

loadCustomRulesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected