lib/rules/max-statements.js
function endFunction(node) {
            const count = functionStack.pop();

            if (ignoreTopLevelFunctions && functionStack.length === 0) {
                topLevelFunctions.push({ node, count });
            } else {
                reportIfTooManyStatements(node, count, maxStatements);
            }
        }
function endFunction(node) {
            const count = functionStack.pop();

            if (ignoreTopLevelFunctions && functionStack.length === 0) {
                topLevelFunctions.push({ node, count });
            } else {
                reportIfTooManyStatements(node, count, maxStatements);
            }
        }
function endFunction ( node ) { const count = functionStack . pop ( ) ; if ( ignoreTopLevelFunctions && functionStack . length === 0 ) { topLevelFunctions . push ( { node , count } ) ; } else { reportIfTooManyStatements ( node , count , maxStatements ) ; } }
Evaluate the node at the end of function
@param {ASTNode} node node to evaluate
@returns {void}
@private
Evaluate the node at the end of function