isudatateam / datateam

Function with cyclomatic complexity higher than threshold PY-R1000
Anti-pattern
Minor
2 days ago3 months old
do_work has a cyclomatic complexity of 27 with "very-high" risk
242    return any(x in hascols for x in wanted)
243
244
245def do_work(form):246    """do great things"""
247    pgconn = get_dbconnstr("td")
248    email = form.get("email")
main has a cyclomatic complexity of 17 with "high" risk
 23        )
 24
 25
 26def main(): 27    """Go Main."""
 28    config = util.get_config()
 29
main has a cyclomatic complexity of 29 with "very-high" risk
 47]
 48
 49
 50def main(): 51    """Go"""
 52    config = util.get_config()
 53
main has a cyclomatic complexity of 17 with "high" risk
  7import isudatateam.cscap_utils as util
  8
  9
 10def main(): 11    """Go Main"""
 12    config = util.get_config()
 13
drive_changelog has a cyclomatic complexity of 27 with "very-high" risk
154    return folders
155
156
157def drive_changelog(regime, yesterday, html):158    """Do something"""
159    drive = util.get_driveclient(CONFIG, regime)
160    folders = get_folders(drive, CONFIG[regime].get("driveId"))