MCPcopy
hub / github.com/highlightjs/highlight.js / validate

Function validate

tools/checkTheme.js:266–279  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

264}
265
266function validate(data) {
267 const rules = data.stylesheet.rules;
268
269 check_group(DIFF, rules);
270 check_group(TEMPLATES, rules);
271 check_group(CONFIG, rules);
272 check_group(CSS, rules);
273 check_group(MARKUP, rules);
274 check_group(CODE, rules);
275 check_group(OTHER, rules);
276 check_group(HIGH_FIDELITY, rules);
277
278 contrast_report(rules);
279}
280
281process.argv.shift();
282process.argv.shift();

Callers 1

checkTheme.jsFile · 0.85

Calls 2

check_groupFunction · 0.85
contrast_reportFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…