Permalink
Browse files

Fixed behavior of ignores/warnings/errors to preserve old behavior

  • Loading branch information...
1 parent d215467 commit fbac64fdd4ade213d98d53823bcce046ad30d181 @nzakas nzakas committed Jul 24, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/cli/common.js
View
@@ -54,9 +54,10 @@ function cli(api){
*/
function filterRules(options) {
var ignore = options.ignore,
- ruleset = CSSLint.getRuleset();
+ ruleset = null;
- if (ignore) {
+ if (ignore) {
+ ruleset = CSSLint.getRuleset();
ignore.split(",").forEach(function(value){
delete ruleset[value];
});

0 comments on commit fbac64f

Please sign in to comment.