Showing 187 of 187 total issues
Function create_org_team
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_org_team(self, org, name, members, allow_repo_creation=True, business_unit=None):
Function create_user_team
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_user_team(self, user, name, members, allow_repo_creation=True, business_unit=None):
Function update_org_team
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_org_team(self, org, team, members=None, allow_repo_creation=None, business_unit=None):
Function get_all_products_signed_eulas
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_all_products_signed_eulas(self, subject, from_date=None, to_date=None, username=None,
Function get_entitlements
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_entitlements(self, subject, repo=None, package=None, version=None, product=None):
Function set_attributes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def set_attributes(self, subject, repo, package, version=None, attributes=None):
Function put
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def put(self, url, params=None, data=None, json=None, headers=None):
Function search_file_by_checksum
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def search_file_by_checksum(self, sha1, subject=None, repo=None, start_pos=None,
Function get_attributes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_attributes(self, subject, repo, package, version=None, attributes=None):
Function search_maven_package
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def search_maven_package(self, group_id=None, artifact_id=None, query=None, subject=None,
Function unlink_package
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def unlink_package(self, subject, repo, source_subject, source_repo, source_package):
Function update_attributes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_attributes(self, subject, repo, package, version=None, attributes=None):
Function get_version_files
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_version_files(self, subject, repo, package, version, include_unpublished=False):
Function create_product_readme
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_product_readme(self, subject, product, github=None, bintray_syntax=None,
Function register_webhook
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def register_webhook(self, subject, repo, package, url, method):
Function update_user_team
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_user_team(self, user, team, members=None, allow_repo_creation=None,
Function search_attributes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def search_attributes(self, subject, repo, package=None, attributes=None,
Function download_package_download_log_file
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def download_package_download_log_file(self, subject, repo, package, remote_log_name,
Function create_product
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def create_product(self, subject, name, display_name, desc, website, vcs, packages,
sign_url_expiry=10):
""" Create a product for the given subject.
Security: Authenticated user with 'admin' permission.
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function update_product
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def update_product(self, subject, product, display_name=None, desc=None, website=None, vcs=None,
packages=None):
""" Update an existing product.
Security: Authenticated user with 'admin' permission.
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"