Showing 12 of 22 total issues
Function controller
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
.controller('MasonryCtrl', function controller($scope, $element, $timeout) {
var bricks = {};
var schedule = [];
var destroyed = false;
var self = this;
Function exports
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
'use strict';
var liveReloadPort = 35729;
Function controller
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function controller($scope, $element, $timeout) {
var bricks = {};
var schedule = [];
var destroyed = false;
var self = this;
Function masonryDirective
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
}).directive('masonry', function masonryDirective() {
return {
restrict: 'AE',
controller: 'MasonryCtrl',
controllerAs: 'msnry',
Function masonryDirective
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
]).directive('masonry', function masonryDirective() {
return {
restrict: 'AE',
controller: 'MasonryCtrl',
link: {
Function preLink
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Function exports
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (config) {
'use strict';
config.set({
basePath: '',
Function preLink
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Function addBrick
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.addBrick = function addBrick(method, element, id) {
if (destroyed) {
return;
}
Function addBrick
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.addBrick = function addBrick(method, element, id) {
if (destroyed) {
return;
}
function _add() {
Function masonryBrickDirective
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
}).directive('masonryBrick', function masonryBrickDirective() {
return {
restrict: 'AC',
require: '^masonry',
scope: true,
Function masonryBrickDirective
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
}).directive('masonryBrick', function masonryBrickDirective() {
return {
restrict: 'AC',
require: '^masonry',
scope: true,