ranaroussi / quantstats

Function with cyclomatic complexity higher than threshold PY-R1000
Anti-pattern
Minor
4 occurrences in this check
plots has a cyclomatic complexity of 27 with "very-high" risk
1229    return metrics
1230
1231
1232def plots(1233    returns,
1234    benchmark=None,
1235    grayscale=False,
metrics has a cyclomatic complexity of 87 with "critical" risk
 715    )
 716
 717
 718def metrics( 719    returns,
 720    benchmark=None,
 721    rf=0.0,
full has a cyclomatic complexity of 27 with "very-high" risk
 488        f.write(tpl)
 489
 490
 491def full( 492    returns,
 493    benchmark=None,
 494    rf=0.0,
html has a cyclomatic complexity of 41 with "very-high" risk
  51    return returns, benchmark
  52
  53
  54def html(  55    returns,
  56    benchmark=None,
  57    rf=0.0,