mick-whats/args2-node

View on GitHub

Showing 8 of 12 total issues

File index.js has 291 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Generated by CoffeeScript 1.12.7
(function() {
  var Args2,
    _,
    slice = [].slice;
Severity: Minor
Found in lib/index.js - About 3 hrs to fix

    Function get has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        Args2.prototype.get = function(
          typingFn,
          argType,
          required,
          defaultValue,
    Severity: Major
    Found in lib/index.js - About 2 hrs to fix

      Function Args2 has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function Args2(args1) {
            var args, res;
            this.args = args1;
            if (this['arguments'] != null) {
              args = Array.prototype.slice.call(this['arguments'], 0);
      Severity: Minor
      Found in lib/index.js - About 1 hr to fix

        Function assign has 33 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            Args2.assign = function(argu, types) {
              var args, res;
              args = new Args2(argu);
              res = [];
              types.forEach(function(type) {
        Severity: Minor
        Found in lib/index.js - About 1 hr to fix

          Function get has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                typingFn,
                argType,
                required,
                defaultValue,
                last
          Severity: Minor
          Found in lib/index.js - About 35 mins to fix

            Avoid too many return statements within this function.
            Open

                      return res.bools.push(item);
            Severity: Major
            Found in lib/index.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                        return res.funcs.push(item);
              Severity: Major
              Found in lib/index.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                          return res.others.push(item);
                Severity: Major
                Found in lib/index.js - About 30 mins to fix
                  Severity
                  Category
                  Status
                  Source
                  Language