preston/bittorious

View on GitHub

Showing 181 of 235 total issues

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

       function($animateCss,   $rootScope,   $$AnimateRunner,   $rootElement,   $document,   $sniffer) {
Severity: Minor
Found in lib/assets/bower_components/angular-animate/angular-animate.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                    if (angular.isDefined(templateUrl)) {
                      nextRoute.loadedTemplateUrl = $sce.valueOf(templateUrl);
                      template = $templateRequest(templateUrl);
                    }
    Severity: Major
    Found in lib/assets/bower_components/angular-route/angular-route.js - About 45 mins to fix

      Function restangularizeElem has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

            function restangularizeElem(parent, element, route, fromServer, collection, reqParams) {
      Severity: Minor
      Found in lib/assets/bower_components/restangular/dist/restangular.js - About 45 mins to fix

        Method set_params_from_torrent has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

            def set_params_from_torrent
                unless request.params['torrent']['torrent_file'].blank?
                    torrent_params = request.params['torrent']
                    b =
                        if torrent_params['torrent_file'].respond_to?(:path)
        Severity: Minor
        Found in app/controllers/torrents_controller.rb - About 45 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Consider simplifying this complex logical expression.
        Open

              if (isArrayLike(value) && (isArray(value) || isString(value) || isArguments(value) ||
                  (isObjectLike(value) && isFunction(value.splice)))) {
                return !value.length;
              }
        Severity: Major
        Found in lib/assets/bower_components/lodash/lodash.js - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                if (!(isObjectLike(value) && objToString.call(value) == objectTag && !isArguments(value)) ||
                    (!hasOwnProperty.call(value, 'constructor') && (Ctor = value.constructor, typeof Ctor == 'function' && !(Ctor instanceof Ctor)))) {
                  return false;
                }
          Severity: Major
          Found in lib/assets/bower_components/lodash/lodash.js - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                      if (data && isLaziable(data[0]) && data[1] == (ARY_FLAG | CURRY_FLAG | PARTIAL_FLAG | REARG_FLAG) && !data[4].length && data[9] == 1) {
                        wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
                      } else {
                        wrapper = (func.length == 1 && isLaziable(func)) ? wrapper[funcName]() : wrapper.thru(func);
                      }
            Severity: Major
            Found in lib/assets/bower_components/lodash/lodash.js - About 40 mins to fix

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

                  config.transformElem = function(elem, isCollection, route, Restangular, force) {
              Severity: Minor
              Found in lib/assets/bower_components/restangular/src/restangular.js - About 35 mins to fix

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

                      function groupEventedAnimations(element, event, options, animations, fnName) {
                Severity: Minor
                Found in lib/assets/bower_components/angular-animate/angular-animate.js - About 35 mins to fix

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

                      link: function(scope, $element, attr, ctrl, $transclude) {
                  Severity: Minor
                  Found in lib/assets/bower_components/angular-route/angular-route.js - About 35 mins to fix

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

                        function baseReduce(collection, iteratee, accumulator, initFromCollection, eachFunc) {
                    Severity: Minor
                    Found in lib/assets/bower_components/lodash/lodash.js - About 35 mins to fix

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

                          config.transformElem = function(elem, isCollection, route, Restangular, force) {
                      Severity: Minor
                      Found in lib/assets/bower_components/restangular/dist/restangular.js - About 35 mins to fix

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

                              function executeAnimationFn(fn, element, event, options, onDone) {
                        Severity: Minor
                        Found in lib/assets/bower_components/angular-animate/angular-animate.js - About 35 mins to fix

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

                              function baseMerge(object, source, customizer, stackA, stackB) {
                          Severity: Minor
                          Found in lib/assets/bower_components/lodash/lodash.js - About 35 mins to fix

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

                                  function packageAnimations(element, event, options, animations, fnName) {
                            Severity: Minor
                            Found in lib/assets/bower_components/angular-animate/angular-animate.js - About 35 mins to fix

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

                                     function($$jqLite,   $rootScope,   $injector,   $$AnimateRunner,   $$rAFScheduler) {
                              Severity: Minor
                              Found in lib/assets/bower_components/angular-animate/angular-animate.js - About 35 mins to fix

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

                                      function restangularizeBase(parent, elem, route, reqParams, fromServer) {
                                Severity: Minor
                                Found in lib/assets/bower_components/restangular/dist/restangular.js - About 35 mins to fix

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

                                        function customFunction(operation, path, params, headers, elem) {
                                  Severity: Minor
                                  Found in lib/assets/bower_components/restangular/src/restangular.js - About 35 mins to fix

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

                                          function elemFunction(operation, what, params, obj, headers) {
                                    Severity: Minor
                                    Found in lib/assets/bower_components/restangular/src/restangular.js - About 35 mins to fix

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

                                            var resolveForFallbackLanguage = function (fallbackLanguageIndex, translationId, interpolateParams, Interpolator, defaultTranslationText) {
                                      Severity: Minor
                                      Found in lib/assets/bower_components/angular-translate/angular-translate.js - About 35 mins to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language