passy/angular-masonry

View on GitHub

Showing 12 of 22 total issues

Function controller has 86 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    .controller('MasonryCtrl', function controller($scope, $element, $timeout) {
      var bricks = {};
      var schedule = [];
      var destroyed = false;
      var self = this;
Severity: Major
Found in src/angular-masonry.js - About 3 hrs to fix

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

    module.exports = function (grunt) {
      'use strict';
    
      var liveReloadPort = 35729;
    
    
    Severity: Major
    Found in Gruntfile.js - About 3 hrs to fix

      Function controller has 84 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function controller($scope, $element, $timeout) {
            var bricks = {};
            var schedule = [];
            var destroyed = false;
            var self = this;
      Severity: Major
      Found in angular-masonry.js - About 3 hrs to fix

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

            }).directive('masonry', function masonryDirective() {
              return {
                restrict: 'AE',
                controller: 'MasonryCtrl',
                controllerAs: 'msnry',
        Severity: Minor
        Found in src/angular-masonry.js - About 1 hr to fix

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

            ]).directive('masonry', function masonryDirective() {
              return {
                restrict: 'AE',
                controller: 'MasonryCtrl',
                link: {
          Severity: Minor
          Found in angular-masonry.js - About 1 hr to fix

            Function preLink has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                      pre: function preLink(scope, element, attrs, ctrl) {
                        var attrOptions = scope.$eval(attrs.masonry || attrs.masonryOptions);
                        var options = angular.extend({
                          itemSelector: attrs.itemSelector || '.masonry-brick',
                          columnWidth: parseInt(attrs.columnWidth, 10) || attrs.columnWidth
            Severity: Minor
            Found in src/angular-masonry.js - About 1 hr to fix

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

              module.exports = function (config) {
                'use strict';
              
                config.set({
                  basePath: '',
              Severity: Minor
              Found in karma.conf.js - About 1 hr to fix

                Function preLink has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        pre: function preLink(scope, element, attrs, ctrl) {
                          var attrOptions = scope.$eval(attrs.masonry || attrs.masonryOptions);
                          var options = angular.extend({
                              itemSelector: attrs.itemSelector || '.masonry-brick',
                              columnWidth: parseInt(attrs.columnWidth, 10) || attrs.columnWidth
                Severity: Minor
                Found in angular-masonry.js - About 1 hr to fix

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

                        this.addBrick = function addBrick(method, element, id) {
                          if (destroyed) {
                            return;
                          }
                  
                  
                  Severity: Minor
                  Found in src/angular-masonry.js - About 1 hr to fix

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

                          this.addBrick = function addBrick(method, element, id) {
                            if (destroyed) {
                              return;
                            }
                            function _add() {
                    Severity: Minor
                    Found in angular-masonry.js - About 1 hr to fix

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

                        }).directive('masonryBrick', function masonryBrickDirective() {
                          return {
                            restrict: 'AC',
                            require: '^masonry',
                            scope: true,
                      Severity: Minor
                      Found in angular-masonry.js - About 1 hr to fix

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

                            }).directive('masonryBrick', function masonryBrickDirective() {
                              return {
                                restrict: 'AC',
                                require: '^masonry',
                                scope: true,
                        Severity: Minor
                        Found in src/angular-masonry.js - About 1 hr to fix
                          Severity
                          Category
                          Status
                          Source
                          Language