Pārlūkot izejas kodu

Be cooler on global variables

Gaël Métais 10 gadi atpakaļ
vecāks
revīzija
701530ef04
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      lib/metadata/policies.js

+ 3 - 3
lib/metadata/policies.js

@@ -351,9 +351,9 @@ var policies = {
         "tool": "phantomas",
         "label": "Global variables",
         "message": "<p>It is a bad practice because they clutter up the global namespace. If two scripts use the same variable name in the global scope, it can cause conflicts and it is generally hard to debug.</p><p>Global variables also take a (very) little bit longer to be accessed than variables in the local scope of a function.</p>",
-        "isOkThreshold": 10,
-        "isBadThreshold": 50,
-        "isAbnormalThreshold": 200,
+        "isOkThreshold": 30,
+        "isBadThreshold": 100,
+        "isAbnormalThreshold": 400,
         "hasOffenders": true,
         "offendersTransformFn": function(offenders) {
             return {