浏览代码

Be cooler on global variables

Gaël Métais 10 年之前
父节点
当前提交
701530ef04
共有 1 个文件被更改,包括 3 次插入3 次删除
  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 {