Change cssParsingError's weight and category

This commit is contained in:
Gaël Métais
2015-05-04 17:20:01 +02:00
parent 604857648b
commit 7e86e83173
2 changed files with 2 additions and 7 deletions
+1 -1
View File
@@ -384,7 +384,7 @@ var policies = {
"message": "<p>Yellow Lab Tools failed to parse a CSS file. I doubt the problem comes from the css parser.</p><p>Maybe a <a href=\"http://jigsaw.w3.org/css-validator\" target=\"_blank\">CSS validator</a> can help you.</p>", "message": "<p>Yellow Lab Tools failed to parse a CSS file. I doubt the problem comes from the css parser.</p><p>Maybe a <a href=\"http://jigsaw.w3.org/css-validator\" target=\"_blank\">CSS validator</a> can help you.</p>",
"isOkThreshold": 0, "isOkThreshold": 0,
"isBadThreshold": 1, "isBadThreshold": 1,
"isAbnormalThreshold": 1, "isAbnormalThreshold": 8,
"hasOffenders": true, "hasOffenders": true,
"offendersTransformFn": function(offenders) { "offendersTransformFn": function(offenders) {
return { return {
+1 -6
View File
@@ -35,12 +35,6 @@
"jQueryVersionsLoaded": 0.1 "jQueryVersionsLoaded": 0.1
} }
}, },
"cssSyntaxError": {
"label": "CSS syntax errors",
"policies": {
"cssParsingErrors": 1
}
},
"cssComplexity": { "cssComplexity": {
"label": "CSS complexity", "label": "CSS complexity",
"policies": { "policies": {
@@ -53,6 +47,7 @@
"badCSS": { "badCSS": {
"label": "Bad CSS", "label": "Bad CSS",
"policies": { "policies": {
"cssParsingErrors": 4,
"cssImports": 3, "cssImports": 3,
"cssDuplicatedSelectors": 2, "cssDuplicatedSelectors": 2,
"cssDuplicatedProperties": 1, "cssDuplicatedProperties": 1,