lib/rules/max-statements.js
function reportIfTooManyStatements(node, count, max) {
            if (count > max) {
                const name = lodash.upperFirst(astUtils.getFunctionNameWithKind(node));

                context.report({
                    node,
                    messageId: "exceed",
                    data: { name, count, max }
                });
            }
        }
function reportIfTooManyStatements(node, count, max) {
            if (count > max) {
                const name = lodash.upperFirst(astUtils.getFunctionNameWithKind(node));

                context.report({
                    node,
                    messageId: "exceed",
                    data: { name, count, max }
                });
            }
        }
function reportIfTooManyStatements ( node , count , max ) { if ( count > max ) { const name = lodash . upperFirst ( astUtils . getFunctionNameWithKind ( node ) ) ; context . report ( { node , messageId : "exceed" , data : { name , count , max } } ) ; } }
Reports a node if it has too many statements
@param {ASTNode} node node to evaluate
@param {int} count Number of statements in node
@param {int} max Maximum number of statements allowed
@returns {void}
@private
Reports a node if it has too many statements