* Filters out rules using the ignore command line option. * @param options {Object} the CLI options * @return {Object} A ruleset object.
(options)
| 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 | /** |
no outgoing calls
no test coverage detected
searching dependent graphs…