lib/rules/radix.js
function checkArguments(node) {
            const args = node.arguments;

            switch (args.length) {
                case 0:
                    context.report({
                        node,
                        message: "Missing parameters."
                    });
                    break;

                case 1:
                    if (mode === MODE_ALWAYS) {
                        context.report({
                            node,
                            message: "Missing radix parameter."
                        });
                    }
                    break;

                default:
                    if (mode === MODE_AS_NEEDED && isDefaultRadix(args[1])) {
                        context.report({
                            node,
                            message: "Redundant radix parameter."
                        });
                    } else if (!isValidRadix(args[1])) {
                        context.report({
                            node,
                            message: "Invalid radix parameter."
                        });
                    }
                    break;
            }
        }
function checkArguments(node) {
            const args = node.arguments;

            switch (args.length) {
                case 0:
                    context.report({
                        node,
                        message: "Missing parameters."
                    });
                    break;

                case 1:
                    if (mode === MODE_ALWAYS) {
                        context.report({
                            node,
                            message: "Missing radix parameter."
                        });
                    }
                    break;

                default:
                    if (mode === MODE_AS_NEEDED && isDefaultRadix(args[1])) {
                        context.report({
                            node,
                            message: "Redundant radix parameter."
                        });
                    } else if (!isValidRadix(args[1])) {
                        context.report({
                            node,
                            message: "Invalid radix parameter."
                        });
                    }
                    break;
            }
        }
function checkArguments ( node ) { const args = node . arguments ; switch ( args . length ) { case 0 : context . report ( { node , message : "Missing parameters." } ) ; break ; case 1 : if ( mode === MODE_ALWAYS ) { context . report ( { node , message : "Missing radix parameter." } ) ; } break ; default : if ( mode === MODE_AS_NEEDED && isDefaultRadix ( args [ 1 ] ) ) { context . report ( { node , message : "Redundant radix parameter." } ) ; } else if ( ! isValidRadix ( args [ 1 ] ) ) { context . report ( { node , message : "Invalid radix parameter." } ) ; } break ; } }
Checks the arguments of a given CallExpression node and reports it if it
offends this rule.

@param {ASTNode} node - A CallExpression node to check.
@returns {void}
Checks the arguments of a given CallExpression node and reports it if it offends this rule .