the-deep/server

View on GitHub
apps/analysis_framework/export.py

Summary

Maintainability
B
4 hrs
Test Coverage
A
100%

Showing 2 of 2 total issues

Function export_af_to_csv has a Cognitive Complexity of 30 (exceeds 12 allowed). Consider refactoring.
Open

def export_af_to_csv(af, file):
"""
Only extracts this widgets
- matrix1dWidget
- matrix2dWidget
Severity: Minor
Found in apps/analysis_framework/export.py - About 3 hrs to fix

Avoid deeply nested control flow statements.
Open

for column in widget_prop['columns']:
for sub_column in column['subColumns'] or [{'label': ''}]:
writer.writerow({
ExportColumn.TITLE: w_title,
ExportColumn.PILLAR: row['label'],
Severity: Major
Found in apps/analysis_framework/export.py - About 45 mins to fix
    Category
    Status