Showing 840 of 1,637 total issues
Function base3
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function base3(t, p1, p2, p3, p4) {
Function setViewBox
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
R._engine.setViewBox = function (x, y, w, h, fit) {
Function d3_geo_clipPolygon
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function d3_geo_clipPolygon(segments, compare, clipStartInside, interpolate, listener) {
Function setViewBox
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
R._engine.setViewBox = function (x, y, w, h, fit) {
Function quadtree
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
d3.geom.quadtree = function(points, x1, y1, x2, y2) {
Function labelSeries
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Morris.labelSeries = function(dmin, dmax, pxwidth, specName, xLabelFormat) {
Function drawLinePoint
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Line.prototype.drawLinePoint = function(xPos, yPos, size, pointColor, lineIndex) {
Function drawEmptyDonutLabel
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Donut.prototype.drawEmptyDonutLabel = function(xPos, yPos, color, fontSize, fontWeight) {
Function drawBar
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Bar.prototype.drawBar = function(xPos, yPos, width, height, barColor) {
Function drawDonutSegment
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
DonutSegment.prototype.drawDonutSegment = function(path, fillColor, strokeColor, hoverFunction, clickFunction) {
Function Tween
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function Tween( elem, options, prop, end, easing ) {
Function add
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
add: function( elem, types, handler, data, selector ) {
Function condense
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function condense( unmatched, map, filter, context, xml ) {
Function remove
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
remove: function( elem, types, handler, selector, mappedTypes ) {
Function superMatcher
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
superMatcher = function( seed, context, xml, results, expandContext ) {
Function on
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
Function augmentWidthOrHeight
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
Function CHILD
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
"CHILD": function( type, what, argument, first, last ) {
Function render
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
render: function(args) {
var graph = this.graph;
var points = args.points;
var point = points.filter( function(p) { return p.active } ).shift();
- 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 send_alert_update
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def send_alert_update(service, duty_officers=None):
users = service.users_to_notify.filter(is_active=True)
for alert in service.alerts.all():
if hasattr(alert, 'send_alert_update'):
try:
- 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"