Showing 162 of 178 total issues
Function start
has 767 lines of code (exceeds 25 allowed). Consider refactoring. Open
start: function() {
/**
* builds most of the gui
* @returns {undefined}
*/
- Create a ticketCreate a ticket
Function build
has 746 lines of code (exceeds 25 allowed). Consider refactoring. Open
let build = function() {
/**
*
* @returns {Array}
*/
- Create a ticketCreate a ticket
Function wrapper
has 704 lines of code (exceeds 25 allowed). Consider refactoring. Open
let wrapper = function() {
/**
* creates the action tab
* @returns {Array}
*/
- Create a ticketCreate a ticket
File chat.js
has 1223 lines of code (exceeds 250 allowed). Consider refactoring. Open
idrinth.chat = {
/**
* own user id
* @type Number
*/
- Create a ticketCreate a ticket
Function refreshChats
has a Cognitive Complexity of 155 (exceeds 5 allowed). Consider refactoring. Open
refreshChats: function() {
/**
*
* @param {String} data
* @returns {undefined}
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File ui.js
has 1169 lines of code (exceeds 250 allowed). Consider refactoring. Open
idrinth.ui = {
/**
*
* @type HTMLElement
*/
- Create a ticketCreate a ticket
Function getData
has a Cognitive Complexity of 125 (exceeds 5 allowed). Consider refactoring. Open
getData: function() {
/**
*
* @param {object} data
* @returns {undefined}
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function refreshChats
has 314 lines of code (exceeds 25 allowed). Consider refactoring. Open
refreshChats: function() {
/**
*
* @param {String} data
* @returns {undefined}
- Create a ticketCreate a ticket
Function start
has 288 lines of code (exceeds 25 allowed). Consider refactoring. Open
start: function() {
/**
*
* @returns {HTMLElement}
*/
- Create a ticketCreate a ticket
File big.js
has 586 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* big.js v3.1.3 https://github.com/MikeMcl/big.js/LICENCE */
(function(global) {
"use strict";
/*
big.js v3.1.3
- Create a ticketCreate a ticket
Function tiers
has 242 lines of code (exceeds 25 allowed). Consider refactoring. Open
tiers: function(list) {
/**
*
* @param {HTMLElement} elem
* @returns {undefined}
- Create a ticketCreate a ticket
Function build
has 240 lines of code (exceeds 25 allowed). Consider refactoring. Open
let build = function() {
/**
*
* @param {String} label
* @returns {Object}
- Create a ticketCreate a ticket
Function process
has a Cognitive Complexity of 59 (exceeds 5 allowed). Consider refactoring. Open
process: function() {
/**
*
* @returns {Boolean}
*/
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function start
has a Cognitive Complexity of 59 (exceeds 5 allowed). Consider refactoring. Open
start: function() {
/**
* fills the data from json in idotd
* @returns {undefined}
*/
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function start
has a Cognitive Complexity of 58 (exceeds 5 allowed). Consider refactoring. Open
start: function() {
/**
* builds most of the gui
* @returns {undefined}
*/
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function applyMessages
has 226 lines of code (exceeds 25 allowed). Consider refactoring. Open
let applyMessages = function(data) {
/**
*
* @param {String} messages
* @returns {undefined}
- Create a ticketCreate a ticket
Function buildControls
has 222 lines of code (exceeds 25 allowed). Consider refactoring. Open
let buildControls = function() {
/**
*
* @param {Array} list
* @param {String} header
- Create a ticketCreate a ticket
Function getData
has 214 lines of code (exceeds 25 allowed). Consider refactoring. Open
getData: function() {
/**
*
* @param {object} data
* @returns {undefined}
- Create a ticketCreate a ticket
Function processMessages
has 209 lines of code (exceeds 25 allowed). Consider refactoring. Open
let processMessages = function(messages) {
/**
*
* @param {Array} chatMessages
* @param {Number} chatId
- Create a ticketCreate a ticket
Function buildElement
has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring. Open
buildElement: function(config) {
/**
*
* @param {HTMLElement} el
* @param {object} config
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"