lib/rules/space-unary-ops.js
function checkUnaryWordOperatorForSpaces(node, firstToken, secondToken, word) {
            if (overrideExistsForOperator(word)) {
                if (overrideEnforcesSpaces(word)) {
                    verifyWordHasSpaces(node, firstToken, secondToken, word);
                } else {
                    verifyWordDoesntHaveSpaces(node, firstToken, secondToken, word);
                }
            } else if (options.words) {
                verifyWordHasSpaces(node, firstToken, secondToken, word);
            } else {
                verifyWordDoesntHaveSpaces(node, firstToken, secondToken, word);
            }
        }
function checkUnaryWordOperatorForSpaces(node, firstToken, secondToken, word) {
            if (overrideExistsForOperator(word)) {
                if (overrideEnforcesSpaces(word)) {
                    verifyWordHasSpaces(node, firstToken, secondToken, word);
                } else {
                    verifyWordDoesntHaveSpaces(node, firstToken, secondToken, word);
                }
            } else if (options.words) {
                verifyWordHasSpaces(node, firstToken, secondToken, word);
            } else {
                verifyWordDoesntHaveSpaces(node, firstToken, secondToken, word);
            }
        }
function checkUnaryWordOperatorForSpaces ( node , firstToken , secondToken , word ) { if ( overrideExistsForOperator ( word ) ) { if ( overrideEnforcesSpaces ( word ) ) { verifyWordHasSpaces ( node , firstToken , secondToken , word ) ; } else { verifyWordDoesntHaveSpaces ( node , firstToken , secondToken , word ) ; } } else if ( options . words ) { verifyWordHasSpaces ( node , firstToken , secondToken , word ) ; } else { verifyWordDoesntHaveSpaces ( node , firstToken , secondToken , word ) ; } }
Check Unary Word Operators for spaces after the word operator
@param {ASTnode} node AST node
@param {Object} firstToken first token from the AST node
@param {Object} secondToken second token from the AST node
@param {string} word The word to be used for reporting
@returns {void}
Check Unary Word Operators for spaces after the word operator