preston/bittorious

View on GitHub

Showing 181 of 235 total issues

Function instant has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      $translate.instant = function (translationId, interpolateParams, interpolationId) {

        // Detect undefined and null values to shorten the execution and prevent exceptions
        if (translationId === null || angular.isUndefined(translationId)) {
          return translationId;
Severity: Minor
Found in lib/assets/bower_components/angular-translate/angular-translate.js - About 1 hr to fix

    Function $$AnimateJsDriverProvider has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var $$AnimateJsDriverProvider = ['$$animationProvider', function($$animationProvider) {
      $$animationProvider.drivers.push('$$animateJsDriver');
      this.$get = ['$$animateJs', '$$AnimateRunner', function($$animateJs, $$AnimateRunner) {
        return function initDriverFn(animationDetails) {
          if (animationDetails.from && animationDetails.to) {
    Severity: Minor
    Found in lib/assets/bower_components/angular-animate/angular-animate.js - About 1 hr to fix

      Function resolveElementClasses has 45 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function resolveElementClasses(existing, toAdd, toRemove) {
        var ADD_CLASS = 1;
        var REMOVE_CLASS = -1;
      
        var flags = {};
      Severity: Minor
      Found in lib/assets/bower_components/angular-animate/angular-animate.js - About 1 hr to fix

        Function okCallback has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                var okCallback = function(response) {
                  var resData = response.data;
                  var fullParams = response.config.params;
                  var data = parseResponse(resData, operation, whatFetched, url, response, deferred);
        
        
        Severity: Minor
        Found in lib/assets/bower_components/restangular/dist/restangular.js - About 1 hr to fix

          Function okCallback has 45 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  var okCallback = function(response) {
                    var resData = response.data;
                    var fullParams = response.config.params;
                    var data = parseResponse(resData, operation, whatFetched, url, response, deferred);
          
          
          Severity: Minor
          Found in lib/assets/bower_components/restangular/src/restangular.js - About 1 hr to fix

            Function mixin has 44 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function mixin(object, source, options) {
                  if (options == null) {
                    var isObj = isObject(source),
                        props = isObj ? keys(source) : undefined,
                        methodNames = (props && props.length) ? baseFunctions(source, props) : undefined;
            Severity: Minor
            Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

              Function baseClone has 44 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function baseClone(value, isDeep, customizer, key, object, stackA, stackB) {
                    var result;
                    if (customizer) {
                      result = object ? customizer(value, key, object) : customizer(value);
                    }
              Severity: Minor
              Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

                Function loadAsync has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                      var loadAsync = function (key) {
                        if (!key) {
                          throw 'No language key specified for loading.';
                        }
                
                
                Severity: Minor
                Found in lib/assets/bower_components/angular-translate/angular-translate.js - About 1 hr to fix

                  Function start has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          start: function() {
                            var closeActiveAnimations;
                            var chain = [];
                  
                            if (before) {
                  Severity: Minor
                  Found in lib/assets/bower_components/angular-animate/angular-animate.js - About 1 hr to fix

                    Function areAnimationsAllowed has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function areAnimationsAllowed(element, parentElement, event) {
                          var bodyElementDetected = false;
                          var rootElementDetected = false;
                          var parentAnimationDetected = false;
                          var animateChildren;
                    Severity: Minor
                    Found in lib/assets/bower_components/angular-animate/angular-animate.js - About 1 hr to fix

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

                        this.$get = ['$$animateJs', '$$AnimateRunner', function($$animateJs, $$AnimateRunner) {
                          return function initDriverFn(animationDetails) {
                            if (animationDetails.from && animationDetails.to) {
                              var fromAnimation = prepareAnimation(animationDetails.from);
                              var toAnimation = prepareAnimation(animationDetails.to);
                      Severity: Minor
                      Found in lib/assets/bower_components/angular-animate/angular-animate.js - About 1 hr to fix

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

                          this.$get = ['$injector', '$log', function ($injector, $log) {
                        
                            var applyStrategies = function (value, mode, selectedStrategies) {
                              angular.forEach(selectedStrategies, function (selectedStrategy) {
                                if (angular.isFunction(selectedStrategy)) {
                        Severity: Minor
                        Found in lib/assets/bower_components/angular-translate/angular-translate.js - About 1 hr to fix

                          Function lazyValue has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function lazyValue() {
                                var array = this.__wrapped__.value(),
                                    dir = this.__dir__,
                                    isArr = isArray(array),
                                    isRight = dir < 0,
                          Severity: Minor
                          Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

                            Function mergeData has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function mergeData(data, source) {
                                  var bitmask = data[1],
                                      srcBitmask = source[1],
                                      newBitmask = bitmask | srcBitmask,
                                      isCommon = newBitmask < ARY_FLAG;
                            Severity: Minor
                            Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

                              Function createFlow has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function createFlow(fromRight) {
                                    return function() {
                                      var wrapper,
                                          length = arguments.length,
                                          index = fromRight ? length : -1,
                              Severity: Minor
                              Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

                                Function exports has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                module.exports = function (grunt) {
                                  require('load-grunt-tasks')(grunt);
                                  require('time-grunt')(grunt);
                                
                                  grunt.initConfig({
                                Severity: Minor
                                Found in lib/assets/bower_components/angular-relative-date/Gruntfile.js - About 1 hr to fix

                                  Function fetchRequestedUrl has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      Path.prototype.fetchRequestedUrl = function(current, what) {
                                        var url = this.fetchUrl(current, what);
                                        var params = current[config.restangularFields.reqParams];
                                  
                                        // From here on and until the end of fetchRequestedUrl,
                                  Severity: Minor
                                  Found in lib/assets/bower_components/restangular/dist/restangular.js - About 1 hr to fix

                                    Function fetchRequestedUrl has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        Path.prototype.fetchRequestedUrl = function(current, what) {
                                          var url = this.fetchUrl(current, what);
                                          var params = current[config.restangularFields.reqParams];
                                    
                                          // From here on and until the end of fetchRequestedUrl,
                                    Severity: Minor
                                    Found in lib/assets/bower_components/restangular/src/restangular.js - About 1 hr to fix

                                      Function prepareFromToAnchorAnimation has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function prepareFromToAnchorAnimation(from, to, classes, anchors) {
                                            var fromAnimation = prepareRegularAnimation(from);
                                            var toAnimation = prepareRegularAnimation(to);
                                      
                                            var anchorAnimations = [];
                                      Severity: Minor
                                      Found in lib/assets/bower_components/angular-animate/angular-animate.js - About 1 hr to fix

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

                                              $translate.use = function (key) {
                                                if (!key) {
                                                  return $uses;
                                                }
                                        
                                        
                                        Severity: Minor
                                        Found in lib/assets/bower_components/angular-translate/angular-translate.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language