diff --git a/front/src/views/rule.html b/front/src/views/rule.html index 9014439..72635fa 100644 --- a/front/src/views/rule.html +++ b/front/src/views/rule.html @@ -204,6 +204,11 @@ Please open the JS timeline, filtered by "Queries without results" +
This metric counts the number of jQuery functions called on an empty jQuery object. The call was useless.
This can be helpful to detect dead or unused code.
", + "isOkThreshold": 1, + "isBadThreshold": 100, + "isAbnormalThreshold": 180, + "hasOffenders": false + }, "jQueryNotDelegatedEvents": { "tool": "jsExecutionTransformer", "label": "Events not delegated", diff --git a/lib/metadata/scoreProfileGeneric.json b/lib/metadata/scoreProfileGeneric.json index 77af6ee..c5def7f 100644 --- a/lib/metadata/scoreProfileGeneric.json +++ b/lib/metadata/scoreProfileGeneric.json @@ -36,9 +36,10 @@ "jQuery": { "label": "jQuery", "policies": { - "jQueryVersion": 1, - "jQueryVersionsLoaded": 1, + "jQueryVersion": 2, + "jQueryVersionsLoaded": 2, "jQueryFunctionsUsed": 1, + "jQueryCallsOnEmptyObject": 1, "jQueryNotDelegatedEvents": 1 } },