Showing 88 of 611 total issues
Function $get
has 181 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.$get = function ($window, $document, $rootScope, $sce, $dateFormatter, datepickerViews, $tooltip, $timeout) {
var isNative = /(ip[ao]d|iphone|android)/ig.test($window.navigator.userAgent);
var isTouch = ('createTouch' in $window.document) && isNative;
if (!defaults.lang) defaults.lang = $dateFormatter.getDefaultLocale();
- Create a ticketCreate a ticket
Function DatepickerFactory
has 174 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function DatepickerFactory (element, controller, config) {
var $datepicker = $tooltip(element, angular.extend({}, defaults, config));
var parentScope = config.scope;
var options = $datepicker.$options;
- Create a ticketCreate a ticket
Function $get
has 171 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.$get = function ($dateFormatter, $dateParser, $sce) {
return function (picker) {
var scope = picker.$scope;
- Create a ticketCreate a ticket
File dropdown.spec.js
has 442 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
/* global describe, beforeEach, inject, it, expect, afterEach, spyOn, countScopes */
describe('dropdown', function() {
- Create a ticketCreate a ticket
Function $get
has 144 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.$get = function ($window, debounce, dimensions) {
var documentEl = angular.element($window.document);
var windowEl = angular.element($window);
- Create a ticketCreate a ticket
File date-parser.spec.js
has 405 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
/* global describe, beforeEach, inject, it, expect */
describe('dateParser', function() {
- Create a ticketCreate a ticket
Function AffixFactory
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AffixFactory (element, config) {
var $affix = {};
// Common vars
- Create a ticketCreate a ticket
Function postLink
has 132 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function postLink (scope, element, attr, controller) {
// Directive options
var options = {scope: scope};
angular.forEach(['template', 'templateUrl', 'controller', 'controllerAs', 'placement', 'container', 'delay', 'trigger', 'html', 'animation', 'autoclose', 'dateType', 'dateFormat', 'timezone', 'modelDateFormat', 'dayFormat', 'strictFormat', 'startWeek', 'startDate', 'useNative', 'lang', 'startView', 'minView', 'iconLeft', 'iconRight', 'daysOfWeekDisabled', 'id', 'prefixClass', 'prefixEvent', 'hasToday', 'hasClear'], function (key) {
- Create a ticketCreate a ticket
Function $get
has 130 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.$get = function ($window, $document, $rootScope, dimensions, debounce, throttle) {
var windowEl = angular.element($window);
var docEl = angular.element($document.prop('documentElement'));
var bodyEl = angular.element($window.document.body);
- Create a ticketCreate a ticket
Function $get
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.$get = function ($window, $rootScope, $tooltip, $$rAF, $timeout) {
function TypeaheadFactory (element, controller, config) {
var $typeahead = {};
- Create a ticketCreate a ticket
File modal.js
has 375 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
angular.module('mgcrea.ngStrap.modal', ['mgcrea.ngStrap.core', 'mgcrea.ngStrap.helpers.dimensions'])
.provider('$modal', function () {
- Create a ticketCreate a ticket
Function ScrollSpyFactory
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ScrollSpyFactory (config) {
// Common vars
var options = angular.extend({}, defaults, config);
if (!options.element) options.element = bodyEl;
- Create a ticketCreate a ticket
Function TypeaheadFactory
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function TypeaheadFactory (element, controller, config) {
var $typeahead = {};
// Common vars
- Create a ticketCreate a ticket
Function postLink
has 118 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function postLink (scope, element, attr, controller) {
// Directive options
var options = {
scope: scope
- Create a ticketCreate a ticket
File select.js
has 322 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
angular.module('mgcrea.ngStrap.select', ['mgcrea.ngStrap.tooltip', 'mgcrea.ngStrap.helpers.parseOptions'])
.provider('$select', function () {
- Create a ticketCreate a ticket
Function postLink
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function postLink (scope, element, attr, transclusion) {
var tooltip;
// Directive options
var options = {scope: scope};
- Create a ticketCreate a ticket
File aside.spec.js
has 318 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
describe('aside', function () {
var $compile, $templateCache, scope, sandboxEl, $animate, $timeout, $aside;
- Create a ticketCreate a ticket
Function bsCompilerService
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function bsCompilerService ($q, $http, $injector, $compile, $controller, $templateCache) {
/*
* @ngdoc service
* @name $bsCompiler
- Create a ticketCreate a ticket
Function postLink
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function postLink (scope, element, attr) {
var popover;
// Directive options
var options = {scope: scope};
- Create a ticketCreate a ticket
Function controller
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var controller = this.controller = function ($scope, $element, $attrs) {
var self = this;
// Attributes options
self.$options = angular.copy(defaults);
- Create a ticketCreate a ticket