Преглед на файлове

Change cssParsingError's weight and category

Gaël Métais преди 10 години
родител
ревизия
7e86e83173
променени са 2 файла, в които са добавени 2 реда и са изтрити 7 реда
  1. 1 1
      lib/metadata/policies.js
  2. 1 6
      lib/metadata/scoreProfileGeneric.json

+ 1 - 1
lib/metadata/policies.js

@@ -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>",
         "isOkThreshold": 0,
         "isBadThreshold": 1,
-        "isAbnormalThreshold": 1,
+        "isAbnormalThreshold": 8,
         "hasOffenders": true,
         "offendersTransformFn": function(offenders) {
             return {

+ 1 - 6
lib/metadata/scoreProfileGeneric.json

@@ -35,12 +35,6 @@
                 "jQueryVersionsLoaded": 0.1
             }
         },
-        "cssSyntaxError": {
-            "label": "CSS syntax errors",
-            "policies": {
-                "cssParsingErrors": 1
-            }
-        },
         "cssComplexity": {
             "label": "CSS complexity",
             "policies": {
@@ -53,6 +47,7 @@
         "badCSS": {
             "label": "Bad CSS",
             "policies": {
+                "cssParsingErrors": 4,
                 "cssImports": 3,
                 "cssDuplicatedSelectors": 2,
                 "cssDuplicatedProperties": 1,