Bug 1544223 - Disable a few high complexity functions and lower the limit to prevent more complexity; r=jdescottes

Depends on D31973

Differential Revision: https://phabricator.services.mozilla.com/D32120
This commit is contained in:
Patrick Brosset
2019-05-22 12:08:59 +00:00
parent fb5091b2d5
commit dc09b99342
8 changed files with 17 additions and 1 deletions

View File

@@ -268,6 +268,7 @@ function cssTrim(str) {
* rewriteDeclarations, and skip the usual name-checking
* heuristic.
*/
/* eslint-disable complexity */
function parseDeclarationsInternal(isCssPropertyKnown, inputString,
parseComments, inComment, commentOverride) {
if (inputString === null || inputString === undefined) {
@@ -465,6 +466,7 @@ function parseDeclarationsInternal(isCssPropertyKnown, inputString,
return declarations;
}
/* eslint-enable complexity */
/**
* Returns an array of CSS declarations given a string.