function checkFunction(node) {
            if (node.params.length > numParams) {
                context.report({
                    loc: astUtils.getFunctionHeadLoc(node, sourceCode),
                    node,
                    messageId: "exceed",
                    data: {
                        name: lodash.upperFirst(astUtils.getFunctionNameWithKind(node)),
                        count: node.params.length,
                        max: numParams
                    }
                });
            }
        }
function checkFunction(node) {
            if (node.params.length > numParams) {
                context.report({
                    loc: astUtils.getFunctionHeadLoc(node, sourceCode),
                    node,
                    messageId: "exceed",
                    data: {
                        name: lodash.upperFirst(astUtils.getFunctionNameWithKind(node)),
                        count: node.params.length,
                        max: numParams
                    }
                });
            }
        }
function checkFunction ( node ) { if ( node . params . length > numParams ) { context . report ( { loc : astUtils . getFunctionHeadLoc ( node , sourceCode ) , node , messageId : "exceed" , data : { name : lodash . upperFirst ( astUtils . getFunctionNameWithKind ( node ) ) , count : node . params . length , max : numParams } } ) ; } }
Checks a function to see if it has too many parameters.
@param {ASTNode} node The node to check.
@returns {void}
@private
Checks a function to see if it has too many parameters .
Check if the number of parameters of a function is too large