Skip to content

Commit

Permalink
Fixed behavior of ignores/warnings/errors to preserve old behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Jul 24, 2012
1 parent d215467 commit fbac64f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cli/common.js
Expand Up @@ -54,9 +54,10 @@ function cli(api){
*/ */
function filterRules(options) { function filterRules(options) {
var ignore = options.ignore, var ignore = options.ignore,
ruleset = CSSLint.getRuleset(); ruleset = null;


if (ignore) { if (ignore) {
ruleset = CSSLint.getRuleset();
ignore.split(",").forEach(function(value){ ignore.split(",").forEach(function(value){
delete ruleset[value]; delete ruleset[value];
}); });
Expand Down

0 comments on commit fbac64f

Please sign in to comment.