thoth-station/thamos

View on GitHub
thamos/lib.py

Summary

Maintainability
D
2 days
Test Coverage

File lib.py has 1570 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

#!/usr/bin/env python3
# thamos
# Copyright(C) 2018 - 2021 Fridolin Pokorny
#
# This program is free software: you can redistribute it and / or modify
Severity: Major
Found in thamos/lib.py - About 4 days to fix

Function advise has 27 arguments (exceeds 4 allowed). Consider refactoring.
Open

def advise(
Severity: Major
Found in thamos/lib.py - About 3 hrs to fix

Function advise_here has 23 arguments (exceeds 4 allowed). Consider refactoring.
Open

def advise_here(
Severity: Major
Found in thamos/lib.py - About 2 hrs to fix

Function advise_using_config has 22 arguments (exceeds 4 allowed). Consider refactoring.
Open

def advise_using_config(
Severity: Major
Found in thamos/lib.py - About 2 hrs to fix

Function build_analysis has 16 arguments (exceeds 4 allowed). Consider refactoring.
Open

def build_analysis(
Severity: Major
Found in thamos/lib.py - About 2 hrs to fix

Function provenance_check has 13 arguments (exceeds 4 allowed). Consider refactoring.
Open

def provenance_check(
Severity: Major
Found in thamos/lib.py - About 1 hr to fix

Function image_analysis has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

def image_analysis(
Severity: Major
Found in thamos/lib.py - About 1 hr to fix

Function list_thoth_container_images has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

def list_thoth_container_images(
Severity: Major
Found in thamos/lib.py - About 1 hr to fix

Function provenance_check_here has 10 arguments (exceeds 4 allowed). Consider refactoring.
Open

def provenance_check_here(
Severity: Major
Found in thamos/lib.py - About 1 hr to fix

Function _traverse_edges has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

def _traverse_edges(
Severity: Major
Found in thamos/lib.py - About 1 hr to fix

Function get_verified_packages_from_static_analysis has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

def get_verified_packages_from_static_analysis(
Severity: Minor
Found in thamos/lib.py - About 45 mins to fix

Function _wait_for_analysis has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

def _wait_for_analysis(
Severity: Minor
Found in thamos/lib.py - About 35 mins to fix

Function get_static_analysis has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

def get_static_analysis(
Severity: Minor
Found in thamos/lib.py - About 35 mins to fix

There are no issues that match your filters.

Category
Status