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

Method addRule

src/core/core.ts:26–28  ·  view source on GitHub ↗
(rule: Rule)

Source from the content-addressed store, hash-verified

24 }
25
26 public addRule(rule: Rule) {
27 this.rules[rule.id] = rule
28 }
29
30 public verify(html: string, ruleset: Ruleset = this.defaultRuleset) {
31 if (Object.keys(ruleset).length === 0) {

Callers 3

core.tsFile · 0.80
sarifFormatterFunction · 0.80
example-rule.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected