Fix some policies
This commit is contained in:
@@ -416,7 +416,7 @@ var policies = {
|
||||
"message": "<p>This is the number of different colors defined in CSS.</p><p>Your CSS project will be easier to maintain if you keep a small color set.</p>",
|
||||
"isOkThreshold": 30,
|
||||
"isBadThreshold": 150,
|
||||
"isAbnormalThreshold": 300,
|
||||
"isAbnormalThreshold": 400,
|
||||
"hasOffenders": true,
|
||||
"offendersTransformFn": function(offenders, ruleObject) {
|
||||
var deduplicatedObj = {};
|
||||
@@ -771,7 +771,7 @@ var policies = {
|
||||
list: offenders.map(function(offender) {
|
||||
var splittedOffender = offendersHelpers.cssOffenderPattern(offender);
|
||||
|
||||
var rule = splittedOffender.css;
|
||||
var rule = splittedOffender.css || '';
|
||||
var redundanters = [
|
||||
['ul', 'li'],
|
||||
['ol', 'li'],
|
||||
|
||||
Reference in New Issue
Block a user