Showing 10 of 494 total issues
Function stopCP
has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring. Open
(function stopCP () { var onload = window.onload; window.onload = function () { if (typeof onload == "function") {
- Read upRead up
Function endTest
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
function endTest() { //Clear the timer that tracks the progress of the test, since it's complete clearTimeout(checkStatusInt); //Initialize an object with the current date/time so we can calculate the difference
Function calcStat
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
function calcStat() { //If something goes wrong, we don't want to cancel the test -- so fallback error proection (in a way, just standard error handling) try { //Reset the timer to fire the statistical update function again in 250ms //We do this here so that if the test has ended (below) we can cancel and stop it
Function stopCP
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
(function stopCP () { var onload = window.onload; window.onload = function () { if (typeof onload == "function") {
Function onload
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
window.onload = function () { if (typeof onload == "function") { onload.apply(this, arguments); }
Consider simplifying this complex logical expression. Open
if ( person.search("ota") === - 1 && person.search("Ota") === - 1 && person.search("fruhwirth") === - 1 && person.search("Fruhwirth") === - 1 &&
Function calcStat
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
function calcStat() { //If something goes wrong, we don't want to cancel the test -- so fallback error proection (in a way, just standard error handling) try { //Reset the timer to fire the statistical update function again in 250ms //We do this here so that if the test has ended (below) we can cancel and stop it
- Read upRead up
Function myFunction
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
function myFunction() { var person = prompt("Please enter your name", ""); // Profanity Filter (if there is a better way to do this LMK) if (
Function endTest
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
function endTest() { //Clear the timer that tracks the progress of the test, since it's complete clearTimeout(checkStatusInt); //Initialize an object with the current date/time so we can calculate the difference
- Read upRead up
Function readTextFile
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
function readTextFile(file, arrayData){ var rawFile = new XMLHttpRequest(); rawFile.open("GET", file, false); rawFile.onreadystatechange = function ()
- Read upRead up