Showing 88 of 611 total issues
Function $onKeyDown
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$timepicker.$onKeyDown = function (evt) {
if (!/(38|37|39|40|13)/.test(evt.keyCode) || evt.shiftKey || evt.altKey) return;
evt.preventDefault();
evt.stopPropagation();
- Create a ticketCreate a ticket
Function postLink
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function postLink (scope, element, attr, transclusion) {
// Directive options
var options = {scope: scope, element: element, show: false};
angular.forEach(['template', 'templateUrl', 'controller', 'controllerAs', 'contentTemplate', 'placement', 'backdrop', 'keyboard', 'html', 'container', 'animation', 'backdropAnimation', 'id', 'prefixEvent', 'prefixClass', 'customClass', 'modalClass', 'size', 'zIndex'], function (key) {
- Create a ticketCreate a ticket
Function setOffset
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fn.setOffset = function (element, options, i) {
var curPosition;
var curLeft;
var curCSSTop;
var curTop;
- Create a ticketCreate a ticket
Function postLink
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function postLink (scope, element, attr, transclusion) {
// Directive options
var options = {scope: scope, element: element, show: false};
angular.forEach(['template', 'templateUrl', 'controller', 'controllerAs', 'placement', 'keyboard', 'html', 'container', 'animation', 'duration', 'dismissable'], function (key) {
- Create a ticketCreate a ticket
Function checkPosition
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$affix.checkPosition = function () {
// if (!this.$element.is(':visible')) return
var scrollTop = getScrollTop();
var position = dimensions.offset(element[0]);
- Create a ticketCreate a ticket
Function postLink
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function postLink (scope, element, attr) {
// Directive options
var options = {
scope: scope
- Create a ticketCreate a ticket
Function applyPlacement
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function applyPlacement (offset, placement) {
var tip = tipElement[0];
var width = tip.offsetWidth;
var height = tip.offsetHeight;
- Create a ticketCreate a ticket
Function postLink
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function postLink (scope, element, attr, transclusion) {
// Directive options
var options = {scope: scope, element: element, show: false};
angular.forEach(['template', 'templateUrl', 'controller', 'controllerAs', 'contentTemplate', 'placement', 'backdrop', 'keyboard', 'html', 'container', 'animation'], function (key) {
if (angular.isDefined(attr[key])) options[key] = attr[key];
- Create a ticketCreate a ticket
Function postLink
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function postLink (scope, element, attr, controller) {
var options = defaults;
// Support label > input[type="checkbox"]
- Create a ticketCreate a ticket
Function $get
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.$get = function ($window, $rootScope, $bsCompiler, $q, $templateCache, $http, $animate, $sce, dimensions, $$rAF, $timeout) {
- Create a ticketCreate a ticket
Function $parseOffsets
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$affix.$parseOffsets = function () {
var initialPosition = element[0].style.position;
var initialTop = element[0].style.top;
// Reset position to calculate correct offsetTop
if (options.inlineStyles) {
- Create a ticketCreate a ticket
Function $applyPlacement
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$tooltip.$applyPlacement = function () {
if (!tipElement) return;
// Determine if we're doing an auto or normal placement
var placement = options.placement;
- Create a ticketCreate a ticket
Function init
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$tooltip.init = function () {
// Options: delay
if (options.delay && angular.isNumber(options.delay)) {
options.delay = {
- Create a ticketCreate a ticket
Function postLink
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function postLink (scope, element, attrs, controllers) {
// var ngModelCtrl = controllers[0];
var bsCollapseCtrl = controllers[1];
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (angular.version.minor < 3 && angular.version.dot < 14) {
angular.module('ng')
.factory('$$rAF', function ($window, $timeout) {
- Create a ticketCreate a ticket
Function $get
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.$get = function ($window, $document, $rootScope, $sce, $dateFormatter, datepickerViews, $tooltip, $timeout) {
- Create a ticketCreate a ticket
Function $get
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.$get = function ($window, $rootScope, $bsCompiler, $animate, $timeout, $sce, dimensions) {
- Create a ticketCreate a ticket
Function $get
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.$get = function ($window, $document, $rootScope, $sce, $dateFormatter, $tooltip, $timeout) {
- Create a ticketCreate a ticket
Function bsCompilerService
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function bsCompilerService ($q, $http, $injector, $compile, $controller, $templateCache) {
- Create a ticketCreate a ticket
Function $get
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.$get = function ($window, $document, $rootScope, dimensions, debounce, throttle) {
- Create a ticketCreate a ticket