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]);
- Create a ticketCreate a ticket
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]);
- Create a ticketCreate a ticket
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]);
- Create a ticketCreate a ticket
Function jsPDF
has 232 lines of code (exceeds 25 allowed). Consider refactoring. Open
var jsPDF = function(){
// Private properties
var version = '20090504';
var buffer = '';
- Create a ticketCreate a ticket
Function jsPDF
has 232 lines of code (exceeds 25 allowed). Consider refactoring. Open
var jsPDF = function(){
// Private properties
var version = '20090504';
var buffer = '';
- Create a ticketCreate a ticket
Function jsPDF
has 232 lines of code (exceeds 25 allowed). Consider refactoring. Open
var jsPDF = function(){
// Private properties
var version = '20090504';
var buffer = '';
- Create a ticketCreate a ticket
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');
- Create a ticketCreate a ticket
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');
- Create a ticketCreate a ticket
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');
- Create a ticketCreate a ticket
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 */
- Create a ticketCreate a ticket
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 */
- Create a ticketCreate a ticket
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 */
- Create a ticketCreate a ticket
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
- 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 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
- 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 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
- 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 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 */
- Create a ticketCreate a ticket
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 */
- Create a ticketCreate a ticket
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 */
- Create a ticketCreate a ticket
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');
- Create a ticketCreate a ticket
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');
- Create a ticketCreate a ticket