uilianries/bintray-python

View on GitHub

Showing 90 of 187 total issues

Function update_entitlement has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    def update_entitlement(self, subject, entitlement_id, repo=None, package=None, version=None,
                           access=None, access_keys=None, tags=None, product=None):
        """ Update the information of the specified entitlement of a specified scope. Scope can be a
            product, a repository with an optional path, a package or a version.

Severity: Minor
Found in bintray/bintray.py - About 55 mins to fix

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 gpg_sign_version has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def gpg_sign_version(self, subject, repo, package, version, key_subject=None, passphrase=None,
Severity: Major
Found in bintray/bintray.py - About 50 mins to fix

    Function sync_version_artifacts_to_maven_central has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def sync_version_artifacts_to_maven_central(self, subject, repo, package, version, username,
    Severity: Major
    Found in bintray/bintray.py - About 50 mins to fix

      Function maven_upload has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def maven_upload(self, subject, repo, package, remote_file_path, local_file_path, publish=True,
      Severity: Major
      Found in bintray/bintray.py - About 50 mins to fix

        Function create_usage_threshold_repository has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def create_usage_threshold_repository(self, org, repo, monthly_storage=None,
        Severity: Major
        Found in bintray/bintray.py - About 50 mins to fix

          Function update_eula has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def update_eula(self, subject, product, eula, syntax, content, versions, default=False):
          Severity: Major
          Found in bintray/bintray.py - About 50 mins to fix

            Function update_access_key_org has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def update_access_key_org(self, org, access_key_id, url=None, cache_for_secs=None, expiry=None,
            Severity: Major
            Found in bintray/bintray.py - About 50 mins to fix

              Function update_access_key_user has 7 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def update_access_key_user(self, user, access_key_id, url=None, cache_for_secs=None,
              Severity: Major
              Found in bintray/bintray.py - About 50 mins to fix

                Function create_eula has 7 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def create_eula(self, subject, product, name, syntax, content, versions, default=False):
                Severity: Major
                Found in bintray/bintray.py - About 50 mins to fix

                  Function _publish_discard_uploaded_content has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def _publish_discard_uploaded_content(self, subject, repo, package, version, discard=False,
                  Severity: Major
                  Found in bintray/bintray.py - About 50 mins to fix

                    Function _get_custom_downloads has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def _get_custom_downloads(self, subject, repo, package, suffix, version=None,
                    Severity: Major
                    Found in bintray/bintray.py - About 50 mins to fix

                      Function create_usage_threshold_business_unit has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def create_usage_threshold_business_unit(self, org, business_unit, monthly_storage=None,
                      Severity: Major
                      Found in bintray/bintray.py - About 50 mins to fix

                        Function update_usage_threshold_business_unit has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def update_usage_threshold_business_unit(self, org, business_unit, monthly_storage=None,
                        Severity: Major
                        Found in bintray/bintray.py - About 50 mins to fix

                          Function update_product has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def update_product(self, subject, product, display_name=None, desc=None, website=None, vcs=None,
                          Severity: Major
                          Found in bintray/bintray.py - About 50 mins to fix

                            Function update_usage_threshold_repository has 7 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def update_usage_threshold_repository(self, org, repo, monthly_storage=None,
                            Severity: Major
                            Found in bintray/bintray.py - About 50 mins to fix

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

                                  def create_usage_threshold_org(self, org, monthly_storage=None, monthly_download=None,
                              Severity: Minor
                              Found in bintray/bintray.py - About 45 mins to fix

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

                                    def get_downloads_by_country(self, subject, repo, package, version=None, from_date=None,
                                Severity: Minor
                                Found in bintray/bintray.py - About 45 mins to fix

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

                                      def update_ip_restrictions(self, subject, repo, add_white_cidrs=None, rm_white_cidrs=None,
                                  Severity: Minor
                                  Found in bintray/bintray.py - About 45 mins to fix

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

                                        def create_readme(self, subject, repo, package, github=None, bintray_syntax=None,
                                    Severity: Minor
                                    Found in bintray/bintray.py - About 45 mins to fix

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

                                          def test_webhook(self, subject, repo, package, version, url, method):
                                      Severity: Minor
                                      Found in bintray/bintray.py - About 45 mins to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language