intracom-telecom-sdn/nstat

View on GitHub
util/file_ops.py

Summary

Maintainability
A
3 hrs
Test Coverage

Showing 2 of 2 total issues

Function merge_dict_and_avg has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
Open

def merge_dict_and_avg(results_add, results_delete):
"""
Takes two dictionaries results_add, results_delete and returns a merged \
dictionary. Special purpose method for the NSTAT NorthBound \
stress test.
Severity: Minor
Found in util/file_ops.py - About 3 hrs to fix

Cyclomatic complexity is too high in function merge_dict_and_avg. (11)
Open

def merge_dict_and_avg(results_add, results_delete):
"""
Takes two dictionaries results_add, results_delete and returns a merged \
dictionary. Special purpose method for the NSTAT NorthBound \
stress test.
Severity: Minor
Found in util/file_ops.py by radon
Category
Status