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

Function listRules

src/cli/htmlhint.ts:117–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115
116// list all rules
117function listRules() {
118 const rules = HTMLHint.rules
119 const ruleIds = Object.keys(rules).sort() // Sort rule IDs alphabetically
120
121 console.log(' All rules:')
122 console.log(' ==================================================')
123
124 for (const id of ruleIds) {
125 const rule = rules[id]
126 console.log(' %s : %s', chalk.bold(rule.id), rule.description)
127 }
128}
129
130// initialize config file
131function initConfig(): boolean {

Callers 1

htmlhint.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected