intracom-telecom-sdn/nstat

View on GitHub
stress_test/html_generation.py

Summary

Maintainability
B
4 hrs
Test Coverage

Showing 2 of 2 total issues

File html_generation.py has 308 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright (c) 2015 Intracom S.A. Telecom Solutions. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v1.0 which accompanies this distribution,
# and is available at http://www.eclipse.org/legal/epl-v10.html
Severity: Minor
Found in stress_test/html_generation.py - About 3 hrs to fix

    Function insert_plots has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
    Open

    def insert_plots(plots_list):
    """
    Gets a list of dictionaries that describes the plots of the report,
    and generates the corresponded html code.
     
     
    Severity: Minor
    Found in stress_test/html_generation.py - About 1 hr to fix
    Category
    Status