rahulkapoor90/VITacademics-Enhancement-Suite

View on GitHub

Showing 763 of 1,018 total issues

Function parseGradient has 252 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Generate.parseGradient = function(css, bounds) {
    var gradient, i, len = reGradients.length, m1, stop, m2, m2Len, step, m3, tl,tr,br,bl;

    for(i = 0; i < len; i+=1){
      m1 = css.match(reGradients[i]);
Severity: Major
Found in Extension for Edge/scripts/timeTable/html2canvas.js - About 1 day to fix

Function parseGradient has 252 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Generate.parseGradient = function(css, bounds) {
    var gradient, i, len = reGradients.length, m1, stop, m2, m2Len, step, m3, tl,tr,br,bl;

    for(i = 0; i < len; i+=1){
      m1 = css.match(reGradients[i]);
Severity: Major
Found in Extension for Firefox/scripts/timeTable/html2canvas.js - About 1 day to fix

Function parseGradient has 252 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Generate.parseGradient = function(css, bounds) {
    var gradient, i, len = reGradients.length, m1, stop, m2, m2Len, step, m3, tl,tr,br,bl;

    for(i = 0; i < len; i+=1){
      m1 = css.match(reGradients[i]);
Severity: Major
Found in Extension for chrome/scripts/timeTable/html2canvas.js - About 1 day to fix

Function jsPDF has 232 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

Function jsPDF has 232 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

Function jsPDF has 232 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

Function 15 has 224 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],15:[function(require,module,exports){
'use strict';
var utf8 = require('./utf8');
var utils = require('./utils');
var GenericWorker = require('./stream/GenericWorker');
Severity: Major
Found in Extension for Edge/scripts/zip/jszip.js - About 1 day to fix

Function 15 has 224 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],15:[function(require,module,exports){
'use strict';
var utf8 = require('./utf8');
var utils = require('./utils');
var GenericWorker = require('./stream/GenericWorker');
Severity: Major
Found in Extension for Firefox/scripts/zip/jszip.js - About 1 day to fix

Function 15 has 224 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],15:[function(require,module,exports){
'use strict';
var utf8 = require('./utf8');
var utils = require('./utils');
var GenericWorker = require('./stream/GenericWorker');
Severity: Major
Found in Extension for chrome/scripts/zip/jszip.js - About 1 day to fix

Function 58 has 223 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],58:[function(require,module,exports){
'use strict';
var immediate = require('immediate');

/* istanbul ignore next */
Severity: Major
Found in Extension for Edge/scripts/zip/jszip.js - About 1 day to fix

Function 58 has 223 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],58:[function(require,module,exports){
'use strict';
var immediate = require('immediate');

/* istanbul ignore next */
Severity: Major
Found in Extension for Firefox/scripts/zip/jszip.js - About 1 day to fix

Function 58 has 223 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],58:[function(require,module,exports){
'use strict';
var immediate = require('immediate');

/* istanbul ignore next */
Severity: Major
Found in Extension for chrome/scripts/zip/jszip.js - About 1 day to fix

Function sprintf has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring.
Open

function sprintf( ) {
    // Return a formatted string  
    // 
    // version: 903.3016
    // discuss at: http://phpjs.org/functions/sprintf
Severity: Minor
Found in Extension for Edge/scripts/timeTable/sprintf.js - About 1 day 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 sprintf has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring.
Open

function sprintf( ) {
    // Return a formatted string  
    // 
    // version: 903.3016
    // discuss at: http://phpjs.org/functions/sprintf
Severity: Minor
Found in Extension for Firefox/scripts/timeTable/sprintf.js - About 1 day 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 sprintf has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring.
Open

function sprintf( ) {
    // Return a formatted string  
    // 
    // version: 903.3016
    // discuss at: http://phpjs.org/functions/sprintf
Severity: Minor
Found in Extension for chrome/scripts/timeTable/sprintf.js - About 1 day 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 69 has 176 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

// See state defs from inflate.js
var BAD = 30;       /* got a data error -- remain here until reset */
Severity: Major
Found in Extension for Edge/scripts/zip/jszip.js - About 7 hrs to fix

Function 69 has 176 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

// See state defs from inflate.js
var BAD = 30;       /* got a data error -- remain here until reset */
Severity: Major
Found in Extension for Firefox/scripts/zip/jszip.js - About 7 hrs to fix

Function 69 has 176 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

// See state defs from inflate.js
var BAD = 30;       /* got a data error -- remain here until reset */
Severity: Major
Found in Extension for chrome/scripts/zip/jszip.js - About 7 hrs to fix

Function 34 has 175 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(require,module,exports){
'use strict';
var readerFor = require('./reader/readerFor');
var utils = require('./utils');
var CompressedObject = require('./compressedObject');
Severity: Major
Found in Extension for Edge/scripts/zip/jszip.js - About 7 hrs to fix

Function 34 has 175 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(require,module,exports){
'use strict';
var readerFor = require('./reader/readerFor');
var utils = require('./utils');
var CompressedObject = require('./compressedObject');
Severity: Major
Found in Extension for Firefox/scripts/zip/jszip.js - About 7 hrs to fix
Severity
Category
Status
Source
Language