Showing 90 of 187 total issues
Function get_usage_report_for_package
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_usage_report_for_package(self, subject, repo, package=None, start_pos=50,
Function link_package
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def link_package(self, subject, repo, source_subject, source_repo, source_package,
Function create_version_release_notes_github
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_version_release_notes_github(self, subject, repo, package, version, github_repo,
Function create_version_release_notes_bintray
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_version_release_notes_bintray(self, subject, repo, package, version, syntax,
Function get_entitlement
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_entitlement(self, subject, entitlement_id, repo=None, package=None, version=None,
Function gpg_sign_file
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def gpg_sign_file(self, subject, repo, file_path, key_subject=None, passphrase=None,
Function _update_access_key
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _update_access_key(self, request_url, url=None, cache_for_secs=None, expiry=None,
Function _update_access_key
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
def _update_access_key(self, request_url, url=None, cache_for_secs=None, expiry=None,
white_cidrs=None, black_cidrs=None):
""" Update an existing access key identified by an access key id
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 get_daily_downloads
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_daily_downloads(self, subject, repo, package, version=None, from_date=None,
Function delete_entitlement
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def delete_entitlement(self, subject, entitlement_id, repo=None, package=None, version=None,
Function get_total_downloads
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_total_downloads(self, subject, repo, package, version=None, from_date=None,
Function get_product_signed_eulas
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_product_signed_eulas(self, subject, product, from_date=None, to_date=None,
Function update_usage_threshold_org
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_usage_threshold_org(self, org, monthly_storage=None, monthly_download=None,
Function update_repository
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
def update_repository(self, subject, repo, business_unit=None, description=None, labels=None,
gpg_sign_metadata=None, gpg_sign_files=None, gpg_use_owner_key=None,
version_update_max_days=None):
""" Update a repository under the specified subject
- 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 get_attributes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_attributes(self, subject, repo, package, version=None, attributes=None):
Function create_package_release_notes_github
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_package_release_notes_github(self, subject, repo, package, github_repo,
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 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 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 update_attributes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_attributes(self, subject, repo, package, version=None, attributes=None):