uilianries/bintray-python

View on GitHub

Showing 90 of 187 total issues

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

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

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

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

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

          def create_version_release_notes_github(self, subject, repo, package, version, github_repo,
      Severity: Minor
      Found in bintray/bintray.py - About 45 mins to fix

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

            def create_version_release_notes_bintray(self, subject, repo, package, version, syntax,
        Severity: Minor
        Found in bintray/bintray.py - About 45 mins to fix

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

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

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

                def gpg_sign_file(self, subject, repo, file_path, key_subject=None, passphrase=None,
            Severity: Minor
            Found in bintray/bintray.py - About 45 mins to fix

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

                  def _update_access_key(self, request_url, url=None, cache_for_secs=None, expiry=None,
              Severity: Minor
              Found in bintray/bintray.py - About 45 mins to fix

                Function _update_access_key has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                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.
                Severity: Minor
                Found in bintray/bintray.py - About 45 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 get_daily_downloads has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

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

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

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

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

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

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

                          def get_product_signed_eulas(self, subject, product, from_date=None, to_date=None,
                      Severity: Minor
                      Found in bintray/bintray.py - About 45 mins to fix

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

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

                          Function update_repository has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                          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
                          
                          
                          Severity: Minor
                          Found in bintray/bintray.py - About 45 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 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 create_package_release_notes_github has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def create_package_release_notes_github(self, subject, repo, package, github_repo,
                            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 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 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 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
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language