Showing 110 of 544 total issues
File monitor.py
has 971 lines of code (exceeds 250 allowed). Consider refactoring. Open
# Copyright (c) 2016 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
File controller.py
has 866 lines of code (exceeds 250 allowed). Consider refactoring. Open
# Copyright (c) 2016 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
File sbemu.py
has 800 lines of code (exceeds 250 allowed). Consider refactoring. Open
# Copyright (c) 2016 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
File test_run.py
has 775 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
File report_spec_templates.py
has 674 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
Function test_selector
has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring. Open
def test_selector(self, args): """ Selects which test to run depending on the information coming from the args object. nstat_test_type_run variable contains information test_type + sb_emulator_name, necessary to select which test to run.
- Read upRead up
File netutil.py
has 346 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
File test_html.py
has 338 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
Function multi_dict_to_html
has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring. Open
def multi_dict_to_html(data, table_title='', map_dictionary=None, row_ordering_key=None): """Generates html tables according to the input it gets from the input \ arguments.
- Read upRead up
Function nb_active_scalability_multinet_run
has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring. Open
def nb_active_scalability_multinet_run(self, json_conf, json_output, output_dir): """ Runs the NorthBound scalability test with idle Multinet switches
- Read upRead up
File plot_json.py
has 318 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
File test_sysstats.py
has 312 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
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
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.
- Read upRead up
File oftraf.py
has 282 lines of code (exceeds 250 allowed). Consider refactoring. Open
# Copyright (c) 2016 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
File controller_exceptions.py
has 277 lines of code (exceeds 250 allowed). Consider refactoring. Open
# Copyright (c) 2016 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
File plot_utils.py
has 274 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
Function monitor_thread_active
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
def monitor_thread_active(self): """ This monitor function is used from south bound active mtcbench \ tests to put into gevent queue the results during test running """
- Read upRead up
Function ssh_run_command
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
def ssh_run_command(ssh_client, command_to_run, prefix='', lines_queue=None, print_flag=True, block_flag=True, getpty_flag=False): """ Runs the specified command on a remote machine
- Read upRead up
Function generate_plots
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
def generate_plots(self): """ NSTAT post test actions :param args: Object containing user specified parameters \
- Read upRead up