src/components/menu/dropdown/DropdownDirective.js
Showing 3 of 3 total issues
Function DropdownDirective
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function DropdownDirective($document, $timeout) { return { restrict: 'C', controller: 'DropdownController', link($scope, $elm) {
- Create a ticketCreate a ticket
Function link
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link($scope, $elm) { function closeDropdown(ev) { if ($elm[0].contains(ev.target)) { return; }
- Create a ticketCreate a ticket
Function DropdownDirective
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
export default function DropdownDirective($document, $timeout) { return { restrict: 'C', controller: 'DropdownController', link($scope, $elm) {
- Read upRead up
- Create a ticketCreate a ticket