rahulkapoor90/VITacademics-Enhancement-Suite

View on GitHub

Showing 763 of 1,018 total issues

Function 28 has 147 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"../utils":32,"./GenericWorker":28}],28:[function(require,module,exports){
'use strict';

/**
 * A worker that does nothing but passing chunks to the next one. This is like
Severity: Major
Found in Extension for Edge/scripts/zip/jszip.js - About 5 hrs to fix

Function 28 has 147 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"../utils":32,"./GenericWorker":28}],28:[function(require,module,exports){
'use strict';

/**
 * A worker that does nothing but passing chunks to the next one. This is like
Severity: Major
Found in Extension for chrome/scripts/zip/jszip.js - About 5 hrs to fix

Function 29 has 138 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],29:[function(require,module,exports){
'use strict';

var utils = require('../utils');
var ConvertWorker = require('./ConvertWorker');
Severity: Major
Found in Extension for Edge/scripts/zip/jszip.js - About 5 hrs to fix

Function 29 has 138 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],29:[function(require,module,exports){
'use strict';

var utils = require('../utils');
var ConvertWorker = require('./ConvertWorker');
Severity: Major
Found in Extension for Firefox/scripts/zip/jszip.js - About 5 hrs to fix

Function 29 has 138 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],29:[function(require,module,exports){
'use strict';

var utils = require('../utils');
var ConvertWorker = require('./ConvertWorker');
Severity: Major
Found in Extension for chrome/scripts/zip/jszip.js - About 5 hrs to fix

Function inflate_table has 124 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function inflate_table(type, lens, lens_index, codes, table, table_index, work, opts)
{
  var bits = opts.bits;
      //here = opts.here; /* table entry for duplication */

Severity: Major
Found in Extension for Edge/scripts/zip/jszip.js - About 4 hrs to fix

Function inflate_table has 124 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function inflate_table(type, lens, lens_index, codes, table, table_index, work, opts)
{
  var bits = opts.bits;
      //here = opts.here; /* table entry for duplication */

Severity: Major
Found in Extension for chrome/scripts/zip/jszip.js - About 4 hrs to fix

Function inflate_table has 124 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function inflate_table(type, lens, lens_index, codes, table, table_index, work, opts)
{
  var bits = opts.bits;
      //here = opts.here; /* table entry for duplication */

Severity: Major
Found in Extension for Firefox/scripts/zip/jszip.js - About 4 hrs to fix

Function h2cRenderContext has 117 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function h2cRenderContext(width, height) {
  var storage = [];
  return {
    storage: storage,
    width: width,
Severity: Major
Found in Extension for Edge/scripts/timeTable/html2canvas.js - About 4 hrs to fix

Function h2cRenderContext has 117 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function h2cRenderContext(width, height) {
  var storage = [];
  return {
    storage: storage,
    width: width,
Severity: Major
Found in Extension for Firefox/scripts/timeTable/html2canvas.js - About 4 hrs to fix

Function h2cRenderContext has 117 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function h2cRenderContext(width, height) {
  var storage = [];
  return {
    storage: storage,
    width: width,
Severity: Major
Found in Extension for chrome/scripts/timeTable/html2canvas.js - About 4 hrs to fix

Function 63 has 108 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],63:[function(require,module,exports){
// String encode/decode helpers
'use strict';


Severity: Major
Found in Extension for Edge/scripts/zip/jszip.js - About 4 hrs to fix

Function 63 has 108 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],63:[function(require,module,exports){
// String encode/decode helpers
'use strict';


Severity: Major
Found in Extension for Firefox/scripts/zip/jszip.js - About 4 hrs to fix

Function 63 has 108 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],63:[function(require,module,exports){
// String encode/decode helpers
'use strict';


Severity: Major
Found in Extension for chrome/scripts/zip/jszip.js - About 4 hrs to fix

Function Canvas has 107 lines of code (exceeds 25 allowed). Consider refactoring.
Open

_html2canvas.Renderer.Canvas = function(options) {
  options = options || {};

  var doc = document,
  safeImages = [],
Severity: Major
Found in Extension for Edge/scripts/timeTable/html2canvas.js - About 4 hrs to fix

Function Canvas has 107 lines of code (exceeds 25 allowed). Consider refactoring.
Open

_html2canvas.Renderer.Canvas = function(options) {
  options = options || {};

  var doc = document,
  safeImages = [],
Severity: Major
Found in Extension for Firefox/scripts/timeTable/html2canvas.js - About 4 hrs to fix

Function Canvas has 107 lines of code (exceeds 25 allowed). Consider refactoring.
Open

_html2canvas.Renderer.Canvas = function(options) {
  options = options || {};

  var doc = document,
  safeImages = [],
Severity: Major
Found in Extension for chrome/scripts/timeTable/html2canvas.js - About 4 hrs to fix

Function jsPDF has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring.
Open

var jsPDF = function(){
    
    // Private properties
    var version = '20090504';
    var buffer = '';
Severity: Minor
Found in Extension for Edge/scripts/timeTable/jspdf.js - About 4 hrs to fix

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 jsPDF has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring.
Open

var jsPDF = function(){
    
    // Private properties
    var version = '20090504';
    var buffer = '';
Severity: Minor
Found in Extension for Firefox/scripts/timeTable/jspdf.js - About 4 hrs to fix

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 jsPDF has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring.
Open

var jsPDF = function(){
    
    // Private properties
    var version = '20090504';
    var buffer = '';
Severity: Minor
Found in Extension for chrome/scripts/timeTable/jspdf.js - About 4 hrs to fix

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

Severity
Category
Status
Source
Language