Showing 14 of 25 total issues
File daniel_400.font.js
has 910 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* The following copyright notice may not be removed under any circumstances.
*
* Copyright:
* Copyright (c) 2011 by Daniel Midgley. All rights reserved.
File daniel_black_900.font.js
has 906 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* The following copyright notice may not be removed under any circumstances.
*
* Copyright:
* Copyright (c) 2011 by Daniel Midgley. All rights reserved.
File daniel_700.font.js
has 878 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* The following copyright notice may not be removed under any circumstances.
*
* Copyright:
* Copyright (c) 2011 by Daniel Midgley. All rights reserved.
Function layout
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
layout: function() {
// Local copies
var diagram = this.diagram;
var font = this.font_;
var actors = diagram.actors;
File theme.js
has 313 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/** js sequence diagrams
* https://bramp.github.io/js-sequence-diagrams/
* (c) 2012-2017 Andrew Brampton (bramp.net)
* Simplified BSD license.
*/
Function drawLine
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
drawLine: function(x1, y1, x2, y2, linetype, arrowhead) {
Function drawTextBox
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
drawTextBox: function(box, text, margin, padding, font, align) {
Function drawLine
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
drawLine: function(x1, y1, x2, y2, linetype, arrowhead) {
Function drawLine
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
drawLine: function(x1, y1, x2, y2, linetype, arrowhead) {
Function layout
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
layout: function() {
// Local copies
var diagram = this.diagram;
var font = this.font_;
var actors = diagram.actors;
- Read upRead up
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 drawLine
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
drawLine: function(x1, y1, x2, y2, linetype, arrowhead) {
Function drawText
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
drawText: function(x, y, text, font, align) {
text = this.cleanText(text);
font = font || {};
align = align || ALIGN_LEFT;
- Read upRead up
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 drawText
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
drawText: function(x, y, text, font, align) {
Function drawText
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
drawText: function(x, y, text, font, align) {