electron/AppMenu.js
Showing 4 of 4 total issues
Function _rebuildMenu
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
Open
_rebuildMenu(arr) { for (var i = 0; i < arr.length; i++) { const obj = arr[i]; // Is not designated platform
- Read upRead up
- Create a ticketCreate a ticket
Function _rebuildMenu
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_rebuildMenu(arr) { for (var i = 0; i < arr.length; i++) { const obj = arr[i]; // Is not designated platform
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return false;
- Create a ticketCreate a ticket
Function doMenuItemSkip
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
doMenuItemSkip(obj) { // Is it not the wrong platform if (obj.platform !== undefined && process.platform !== obj.platform) return true;
- Read upRead up
- Create a ticketCreate a ticket