uilianries/bintray-python

View on GitHub

Showing 187 of 187 total issues

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

    def create_org_team(self, org, name, members, allow_repo_creation=True, business_unit=None):
Severity: Minor
Found in bintray/bintray.py - About 35 mins to fix

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

        def create_user_team(self, user, name, members, allow_repo_creation=True, business_unit=None):
    Severity: Minor
    Found in bintray/bintray.py - About 35 mins to fix

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

          def update_org_team(self, org, team, members=None, allow_repo_creation=None, business_unit=None):
      Severity: Minor
      Found in bintray/bintray.py - About 35 mins to fix

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

            def get_all_products_signed_eulas(self, subject, from_date=None, to_date=None, username=None,
        Severity: Minor
        Found in bintray/bintray.py - About 35 mins to fix

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

              def get_entitlements(self, subject, repo=None, package=None, version=None, product=None):
          Severity: Minor
          Found in bintray/bintray.py - About 35 mins to fix

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

                def set_attributes(self, subject, repo, package, version=None, attributes=None):
            Severity: Minor
            Found in bintray/bintray.py - About 35 mins to fix

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

                  def put(self, url, params=None, data=None, json=None, headers=None):
              Severity: Minor
              Found in bintray/requester.py - About 35 mins to fix

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

                    def search_file_by_checksum(self, sha1, subject=None, repo=None, start_pos=None,
                Severity: Minor
                Found in bintray/bintray.py - About 35 mins to fix

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

                      def get_attributes(self, subject, repo, package, version=None, attributes=None):
                  Severity: Minor
                  Found in bintray/bintray.py - About 35 mins to fix

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

                        def search_maven_package(self, group_id=None, artifact_id=None, query=None, subject=None,
                    Severity: Minor
                    Found in bintray/bintray.py - About 35 mins to fix

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

                          def unlink_package(self, subject, repo, source_subject, source_repo, source_package):
                      Severity: Minor
                      Found in bintray/bintray.py - About 35 mins to fix

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

                            def update_attributes(self, subject, repo, package, version=None, attributes=None):
                        Severity: Minor
                        Found in bintray/bintray.py - About 35 mins to fix

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

                              def get_version_files(self, subject, repo, package, version, include_unpublished=False):
                          Severity: Minor
                          Found in bintray/bintray.py - About 35 mins to fix

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

                                def create_product_readme(self, subject, product, github=None, bintray_syntax=None,
                            Severity: Minor
                            Found in bintray/bintray.py - About 35 mins to fix

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

                                  def register_webhook(self, subject, repo, package, url, method):
                              Severity: Minor
                              Found in bintray/bintray.py - About 35 mins to fix

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

                                    def update_user_team(self, user, team, members=None, allow_repo_creation=None,
                                Severity: Minor
                                Found in bintray/bintray.py - About 35 mins to fix

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

                                      def search_attributes(self, subject, repo, package=None, attributes=None,
                                  Severity: Minor
                                  Found in bintray/bintray.py - About 35 mins to fix

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

                                        def download_package_download_log_file(self, subject, repo, package, remote_log_name,
                                    Severity: Minor
                                    Found in bintray/bintray.py - About 35 mins to fix

                                      Function create_product has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                      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.
                                      Severity: Minor
                                      Found in bintray/bintray.py - About 35 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 update_product has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                      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.
                                      Severity: Minor
                                      Found in bintray/bintray.py - About 25 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

                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language