Remove uneeded policies
This commit is contained in:
@@ -910,57 +910,6 @@ var policies = {
|
||||
"isAbnormalThreshold": 50,
|
||||
"hasOffenders": true
|
||||
},
|
||||
"smallJsFiles": {
|
||||
"tool": "phantomas",
|
||||
"label": "Small JS files",
|
||||
"message": "<p>Number of JS assets smaller than 2 KB that could probably be inlined or merged.</p>",
|
||||
"isOkThreshold": 2,
|
||||
"isBadThreshold": 10,
|
||||
"isAbnormalThreshold": 16,
|
||||
"hasOffenders": true,
|
||||
"offendersTransformFn": function(offenders) {
|
||||
return {
|
||||
count: offenders.length,
|
||||
list: offenders.map(function(offender) {
|
||||
return offendersHelpers.fileWithSizePattern(offender);
|
||||
})
|
||||
};
|
||||
}
|
||||
},
|
||||
"smallCssFiles": {
|
||||
"tool": "phantomas",
|
||||
"label": "Small CSS files",
|
||||
"message": "<p>Number of CSS assets smaller than 2 KB that could probably be inlined or merged.</p>",
|
||||
"isOkThreshold": 0,
|
||||
"isBadThreshold": 8,
|
||||
"isAbnormalThreshold": 12,
|
||||
"hasOffenders": true,
|
||||
"offendersTransformFn": function(offenders) {
|
||||
return {
|
||||
count: offenders.length,
|
||||
list: offenders.map(function(offender) {
|
||||
return offendersHelpers.fileWithSizePattern(offender);
|
||||
})
|
||||
};
|
||||
}
|
||||
},
|
||||
"smallImages": {
|
||||
"tool": "phantomas",
|
||||
"label": "Small images",
|
||||
"message": "<p>Images smaller than 2 KB that could be base64 encoded or merged into a sprite.</p>",
|
||||
"isOkThreshold": 2,
|
||||
"isBadThreshold": 17,
|
||||
"isAbnormalThreshold": 30,
|
||||
"hasOffenders": true,
|
||||
"offendersTransformFn": function(offenders) {
|
||||
return {
|
||||
count: offenders.length,
|
||||
list: offenders.map(function(offender) {
|
||||
return offendersHelpers.fileWithSizePattern(offender);
|
||||
})
|
||||
};
|
||||
}
|
||||
},
|
||||
"notFound": {
|
||||
"tool": "phantomas",
|
||||
"label": "404 not found",
|
||||
|
||||
Reference in New Issue
Block a user