src/components/popover/PopoverDirective.js
Showing 6 of 6 total issues
Function PopoverDirective
has 176 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function PopoverDirective($animate, $compile, $document, $http, $q, $templateCache, $timeout, PopoverRegistry, PositionHelper) { /** * Loads a template from the template cache * @param {string} template
- Create a ticketCreate a ticket
Function link
has 151 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link($scope, $element, $attributes) { $scope.popover = null; $scope.options = { alignment: $attributes.popoverAlignment || 'middle',
- Create a ticketCreate a ticket
Function PopoverDirective
has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring. Open
Open
export default function PopoverDirective($animate, $compile, $document, $http, $q, $templateCache, $timeout, PopoverRegistry, PositionHelper) { /** * Loads a template from the template cache * @param {string} template
- Read upRead up
- Create a ticketCreate a ticket
Function positionPopover
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function positionPopover(triggerElement, popover, options) { $timeout(() => { const elDimensions = triggerElement[0].getBoundingClientRect(); const popoverDimensions = popover[0].getBoundingClientRect();
- Create a ticketCreate a ticket
Function addCaret
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addCaret(popoverEl, elDimensions, popoverDimensions) { const caret = angular.element(`<span class="popover-caret caret-${$scope.options.placement}"></span>`); popoverEl.append(caret); const caretDimensions = caret[0].getBoundingClientRect();
- Create a ticketCreate a ticket
Function PopoverDirective
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function PopoverDirective($animate, $compile, $document, $http, $q, $templateCache, $timeout, PopoverRegistry, PositionHelper) {
- Create a ticketCreate a ticket