lib/rules/indent-legacy.js
function checkLastNodeLineIndent(node, lastLineIndent) {
            const lastToken = sourceCode.getLastToken(node);
            const endIndent = getNodeIndent(lastToken, true);

            if ((endIndent.goodChar !== lastLineIndent || endIndent.badChar !== 0) && isNodeFirstInLine(node, true)) {
                report(
                    node,
                    lastLineIndent,
                    endIndent.space,
                    endIndent.tab,
                    { line: lastToken.loc.start.line, column: lastToken.loc.start.column },
                    true
                );
            }
        }
function checkLastNodeLineIndent(node, lastLineIndent) {
            const lastToken = sourceCode.getLastToken(node);
            const endIndent = getNodeIndent(lastToken, true);

            if ((endIndent.goodChar !== lastLineIndent || endIndent.badChar !== 0) && isNodeFirstInLine(node, true)) {
                report(
                    node,
                    lastLineIndent,
                    endIndent.space,
                    endIndent.tab,
                    { line: lastToken.loc.start.line, column: lastToken.loc.start.column },
                    true
                );
            }
        }
function checkLastNodeLineIndent ( node , lastLineIndent ) { const lastToken = sourceCode . getLastToken ( node ) ; const endIndent = getNodeIndent ( lastToken , true ) ; if ( ( endIndent . goodChar !== lastLineIndent || endIndent . badChar !== 0 ) && isNodeFirstInLine ( node , true ) ) { report ( node , lastLineIndent , endIndent . space , endIndent . tab , { line : lastToken . loc . start . line , column : lastToken . loc . start . column } , true ) ; } }
Check last node line indent this detects, that block closed correctly
@param {ASTNode} node Node to examine
@param {int} lastLineIndent needed indent
@returns {void}
Check last node line indent this detects that block closed correctly