fixjs/define.js

View on GitHub

Showing 83 of 149 total issues

Function fxdefine has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function fxdefine(moduleName, array, moduleDefinition) {
      //define(moduleDefinition)
      if (typeof moduleName === 'function') {
        moduleDefinition = moduleName;
        moduleName = undefined;
Severity: Minor
Found in build/old/define.debug.js - About 1 hr to fix

    Function fxdefine has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function fxdefine(moduleName, array, moduleDefinition) {
          //define(moduleDefinition)
          if (typeof moduleName === 'function') {
            moduleDefinition = moduleName;
            moduleName = undefined;
    Severity: Minor
    Found in build/old/define.js - About 1 hr to fix

      Function definejs has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var definejs = function (_) {
            _ = core(_, amd);
      
            function * loadGenerator(modulePath) {
              return yield loader.load(modulePath);
      Severity: Minor
      Found in define.promise.js - About 1 hr to fix

        Function definejs has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            var definejs = function (_) {
              _ = core(_, amd);
        
              function * loadGenerator(modulePath) {
                return yield loader.load(modulePath);
        Severity: Minor
        Found in src/amd.promise.js - About 1 hr to fix

          Function definejs has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              var definejs = function (_) {
                _ = core(_, amd);
          
                function * loadGenerator(modulePath) {
                  return yield loader.load(modulePath);
          Severity: Minor
          Found in examples/define-promise-dev/define.promise.js - About 1 hr to fix

            Function getUrl has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function getUrl(modulePath) {
                  var moduleName = getFileName(modulePath),
                    url,
                    urlArgs,
                    path,
            Severity: Minor
            Found in build/old/define.js - About 1 hr to fix

              Function getUrl has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function getUrl(modulePath) {
                    var moduleName = getFileName(modulePath),
                      url,
                      urlArgs,
                      path,
              Severity: Minor
              Found in build/old/define.debug.js - About 1 hr to fix

                Function getUrl has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function getUrl(modulePath) {
                      var moduleName = getFileName(modulePath),
                        url,
                        urlArgs,
                        path,
                Severity: Minor
                Found in build/old/define.promise.js - About 1 hr to fix

                  Function flush has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                        function flush() {
                          while (head.next) {
                            head = head.next;
                            var task = head.task;
                            head.task = void 0;
                  Severity: Minor
                  Found in polyfills/promise-6.1.0.js - About 1 hr to fix

                    Function loadModule has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function loadModule(modulePath, callback) {
                          var isFirstLoadDemand = false,
                            moduleName = getFileName(modulePath),
                            fileName,
                            modulesList;
                    Severity: Minor
                    Found in build/old/define.js - About 1 hr to fix

                      Function loadModule has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function loadModule(modulePath, callback) {
                            var isFirstLoadDemand = false,
                              moduleName = getFileName(modulePath),
                              fileName,
                              modulesList;
                      Severity: Minor
                      Found in build/old/define.debug.js - About 1 hr to fix

                        Function compileAll has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function compileAll(name, path, contents) {
                              var amdName;
                              // Detect variable modules
                              if (/.\/var\//.test(path)) {
                                contents = '  ' + contents
                        Severity: Minor
                        Found in build/define.tasks.js - About 1 hr to fix

                          Function fxdefine has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function fxdefine(moduleName, array, moduleDefinition) {
                                //define(moduleDefinition)
                                if (typeof moduleName === 'function') {
                                  if (isGenerator(moduleName)) {
                                    var asyncFunc = async(moduleName);
                          Severity: Minor
                          Found in build/old/define.promise.js - About 1 hr to fix

                            Function nextTick has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                process.nextTick = function() {
                                  var canSetImmediate = typeof window !== "undefined" && window.setImmediate;
                                  var canPost = typeof window !== "undefined" && window.postMessage && window.addEventListener;
                                  if (canSetImmediate) {
                                    return function(f) {
                            Severity: Minor
                            Found in polyfills/promise-6.1.0.js - About 1 hr to fix

                              Function all has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  Promise.all = function(arr) {
                                    var args = Array.prototype.slice.call(arr);
                                    return new Promise(function(resolve, reject) {
                                      if (args.length === 0) return resolve([]);
                                      var remaining = args.length;
                              Severity: Minor
                              Found in polyfills/promise-6.1.0.js - About 1 hr to fix

                                Function defer has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function defer() {
                                      var resolvedPromise,
                                        baseFulfill,
                                        baseReject,
                                        dfd = {},
                                Severity: Minor
                                Found in examples/rjs-amd-optimizer/define.js - About 1 hr to fix

                                  Function core has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    function core(_, amd) {
                                      if (!isObject(_)) {
                                        _ = global;
                                      }
                                      _.define = function (moduleName, array, moduleDefinition) {
                                  Severity: Minor
                                  Found in examples/rjs-amd-optimizer/define.js - About 1 hr to fix

                                    Function core has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      function core(_, amd) {
                                        if (!isObject(_)) {
                                          _ = global;
                                        }
                                        _.define = function (moduleName, array, moduleDefinition) {
                                    Severity: Minor
                                    Found in examples/definejs-promised-modules/define.js - About 1 hr to fix

                                      Function defer has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function defer() {
                                            var resolvedPromise,
                                              baseFulfill,
                                              baseReject,
                                              dfd = {},
                                      Severity: Minor
                                      Found in define.promise.js - About 1 hr to fix

                                        Function core has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          function core(_, amd) {
                                            if (!isObject(_)) {
                                              _ = global;
                                            }
                                            _.define = function (moduleName, array, moduleDefinition) {
                                        Severity: Minor
                                        Found in define.promise.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language