function report(node,needed,gottenSpaces,gottenTabs,loc,isLastNodeCheck){if(gottenSpaces&&gottenTabs){// To avoid conflicts with `no-mixed-spaces-and-tabs`, don't report lines that have both spaces and tabs.
return;}var desiredIndent=(indentType==="space"?" ":"\t").repeat(needed);var textRange=isLastNodeCheck?[node.range[1]-node.loc.end.column,node.range[1]-node.loc.end.column+gottenSpaces+gottenTabs]:[node.range[0]-node.loc.start.column,node.range[0]-node.loc.start.column+gottenSpaces+gottenTabs];context.report({node:node,loc:loc,message:createErrorMessage(needed,gottenSpaces,gottenTabs),fix:function fix(fixer){return fixer.replaceTextRange(textRange,desiredIndent);}});}
Reports a given indent violation
@param {ASTNode} node Node violating the indent rule
@param {int} needed Expected indentation character count
@param {int} gottenSpaces Indentation space count in the actual node/code
@param {int} gottenTabs Indentation tab count in the actual node/code
@param {Object=} loc Error line and column location
@param {boolean} isLastNodeCheck Is the error for last node check
@param {int} lastNodeCheckEndOffset Number of charecters to skip from the end
@returns {void}