Showing 178 of 178 total issues
Function getServerPart
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getServerPart(name) {
return [
{
css: "idrinth-line idrinth-tooltip-header",
type: "a",
- Create a ticketCreate a ticket
Function addTagged
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addTagged: function(name) {
/**
*
* @param {string} key
* @returns {Boolean}
- Create a ticketCreate a ticket
Function start
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function() {
/**
*
* @param {Sstring} name
* @returns {String}
- Create a ticketCreate a ticket
File war.js
has 310 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
idrinth.war = {
/**
*
* @type {string}
*/
- Create a ticketCreate a ticket
Function getPopupContent
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
let getPopupContent = function(chat, user, rankId) {
/**
*
* @param {Number} chat
* @returns {Array}
- Create a ticketCreate a ticket
Function div
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
P.div = function(y) {
var x = this,
Big = x.constructor,
// dividend
dvd = x.c,
- Create a ticketCreate a ticket
File core.js
has 295 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
idrinth.core = {
/**
*
* @param {string} str
* @returns {string}
- Create a ticketCreate a ticket
Function start
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function() {
/**
* fills the data from json in idotd
* @returns {undefined}
*/
- Create a ticketCreate a ticket
Function join
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
let join = function() {
/**
*
* @returns {function[]}
*/
- Create a ticketCreate a ticket
Function buildActions
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
let buildActions = function() {
/**
*
* @param {string} label
* @param {string} onclick
- Create a ticketCreate a ticket
Function start
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function() {
/**
* build the gui part
* @returns {undefined}
*/
- Create a ticketCreate a ticket
Function buildChat
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildChat: function(id, name, rank, pass) {
if (!idrinth.chat.elements.chats) {
idrinth.core.timeouts.add(
"chat-" + id,
function() {
- Create a ticketCreate a ticket
Function getServerLink
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getServerLink: function(key) {
/**
*
* @param {Object} list
* @param {String} key
- Create a ticketCreate a ticket
Function process
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
Open
process: function() {
let date = new Date().getTime() + new Date().getMilliseconds() / 1000;
let min = 10;
/**
*
- 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 21 (exceeds 5 allowed). Consider refactoring. Open
Open
start: function() {
/**
*
* @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 makeField
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
let makeField = function(listKey, difficulty, ic) {
let ln = {
type: "td",
attributes: []
};
- Create a ticketCreate a ticket
Function handle
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handle: function(mutations, isPrivate) {
/**
*
* @param {HTMLElement} element
* @returns {undefined}
- Create a ticketCreate a ticket
Function build
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
let build = function() {
idrinth.war.element = idrinth.ui.buildElement({
id: "idrinth-war",
css: "idrinth-central-box idrinth-hovering-box idrinth-hide",
children: [
- Create a ticketCreate a ticket
Function start
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function() {
/**
*
* @returns {undefined}
*/
- Create a ticketCreate a ticket
Function minus
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
P.sub = P.minus = function(y) {
var i,
j,
t,
xLTy,
- Create a ticketCreate a ticket