Showing 427 of 873 total issues
File Treant.js
has 1396 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* Treant-js
*
* Modified by UCCSER:
* Adds fix for showing arrows on connectors after a pseudo connector.
- Create a ticketCreate a ticket
File pixel-viewer.js
has 1036 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Settings and intialize layout
this.MAX_HEIGHT = 133;
this.CELL_SIZE = 50;
this.MAX_NOISE = 15;
- Create a ticketCreate a ticket
Function exports
has a Cognitive Complexity of 125 (exceeds 5 allowed). Consider refactoring. Open
module.exports = function( THREE ) {
/**
* @author Eric Haines / http://erichaines.com/
*
* Tessellates the famous Utah teapot database by Martin Newell into triangles.
- 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 assemble
has a Cognitive Complexity of 97 (exceeds 5 allowed). Consider refactoring. Open
function assemble() {
LABELS = [];
LABELADDRS = [];
var targetIndex;
- 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 mips-simulator.js
has 759 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* Partial MIPS I Simulator based on the work of Alan Hogan
* https://github.com/alanhogan/miphps-mips-simulator
* Licensed under CC BY-NC-SA 4.0
*/
- Create a ticketCreate a ticket
File mips-assembler.js
has 700 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* Partial MIPS I Assembler based on the work of Alan Hogan
* https://github.com/alanhogan/online-mips-assembler
* Licensed under CC BY-NC-SA 4.0
*/
- Create a ticketCreate a ticket
File 2d-shape-manipulations.js
has 666 lines of code (exceeds 250 allowed). Consider refactoring. Open
var urlParameters = require('../../../js/third-party/url-parameters.js');
// ########################################################################## //
/* Configs (in alphabetical order) */
- Create a ticketCreate a ticket
File product-code-check-digit-calculation.js
has 657 lines of code (exceeds 250 allowed). Consider refactoring. Open
const JsBarcode = require('jsbarcode');
const arrowSVG = require('arrows-svg');
const arrowCreate = arrowSVG.default;
const arrowDirections = arrowSVG.DIRECTION;
const arrowHeads = arrowSVG.HEAD;
- Create a ticketCreate a ticket
File scene-editor.js
has 620 lines of code (exceeds 250 allowed). Consider refactoring. Open
/** Parts of this file are heavily adapted from https://github.com/mrdoob/three.js/blob/dev/examples/webgl_materials_envmaps.html */
global.THREE = require('three');
const { create, all } = require('mathjs');
const mathjs = create(all, {});
- Create a ticketCreate a ticket
File game.js
has 619 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* Packet Attack
*
* Main Gameplay Classes
*/
- Create a ticketCreate a ticket
File Scroller.js
has 608 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* Scroller
* http://github.com/zynga/scroller
*
* Copyright 2011, Zynga Inc.
- Create a ticketCreate a ticket
Function assemble
has 218 lines of code (exceeds 25 allowed). Consider refactoring. Open
function assemble() {
LABELS = [];
LABELADDRS = [];
var targetIndex;
- Create a ticketCreate a ticket
Function highlightCodedCharacters
has a Cognitive Complexity of 55 (exceeds 5 allowed). Consider refactoring. Open
function highlightCodedCharacters() {
// clear the existing references
for (var i = 0; i < message_characters.length; i++) {
message_characters[i].CodeIndex = false;
var character_element = document.querySelectorAll('[data-character-index="' + i.toString() + '"]')[0];
- 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 cfg-parsing-challenge.js
has 519 lines of code (exceeds 250 allowed). Consider refactoring. Open
var urlParameters = require('../../../js/third-party/url-parameters.js');
/**
* Productions in the default grammar.
* A number or a string that begins and ends with an inverted comma (') is
- Create a ticketCreate a ticket
File shannon-experiment.js
has 517 lines of code (exceeds 250 allowed). Consider refactoring. Open
const Chart = require('chart.js');
Chart.defaults.font.size = 14;
Chart.defaults.font.family = '"Noto Sans", sans-serif';
// This is not a constant as we remove sentences once they are completed.
- Create a ticketCreate a ticket
File matrix-simplifier.js
has 510 lines of code (exceeds 250 allowed). Consider refactoring. Open
const dragula = require('dragula');
const mathjs_import = require('mathjs');
const sprintf = require('sprintf-js').sprintf;
const vsprintf = require('sprintf-js').vsprintf;
- Create a ticketCreate a ticket
File jpeg-compression.js
has 508 lines of code (exceeds 250 allowed). Consider refactoring. Open
const Interact = require('interactjs');
var urlParameters = require('../../../js/third-party/url-parameters.js');
require('./../../../js/third-party/jquery.stepper');
const dct = require('dct');
- Create a ticketCreate a ticket
File training-ground.js
has 498 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* trAIning ground
*
* Creates and executes the game
*/
- Create a ticketCreate a ticket
File translation-rotation.js
has 480 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* Common source code for the box translation and rotation interactives
*/
var THREE = require('three');
- Create a ticketCreate a ticket
File plane-turbulence.js
has 473 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* The airplane svg.
*/
let svg;
- Create a ticketCreate a ticket