MCPcopy Create free account
hub / github.com/CSSLint/csslint / filterRules

Function filterRules

src/cli/common.js:72–84  ·  view source on GitHub ↗

* Filters out rules using the ignore command line option. * @param options {Object} the CLI options * @return {Object} A ruleset object.

(options)

Source from the content-addressed store, hash-verified

70 * @return {Object} A ruleset object.
71 */
72 function filterRules(options) {
73 var ignore = options.ignore,
74 ruleset = null;
75
76 if (ignore) {
77 ruleset = CSSLint.getRuleset();
78 ignore.split(",").forEach(function(value) {
79 ruleset[value] = 0;
80 });
81 }
82
83 return ruleset;
84 }
85
86
87 /**

Callers 1

processFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…