psono/psono-server

View on GitHub

Showing 228 of 423 total issues

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

def user_has_rights_on_file_repository(user_id: str = "", file_repository_id: str = "", read: bool = None, write: bool = None, grant: bool = None) -> bool:
Severity: Minor
Found in psono/restapi/utils/various.py - About 35 mins to fix

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

    def do_construct_signed_upload_url(bucket, region, access_key_id, secret_access_key, hash_checksum):
    Severity: Minor
    Found in psono/restapi/utils/do.py - About 35 mins to fix

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

      def api_request(method, endpoint, data = None, token = None, session_secret_key = None):
      Severity: Minor
      Found in examples/export_as_json.py - About 35 mins to fix

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

        def do_construct_signed_download_url(bucket, region, access_key_id, secret_access_key, hash_checksum):
        Severity: Minor
        Found in psono/restapi/utils/do.py - About 35 mins to fix

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

          def backblaze_construct_signed_download_url(bucket, region, access_key_id, secret_access_key, hash_checksum):
          Severity: Minor
          Found in psono/restapi/utils/backblaze.py - About 35 mins to fix

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

            def backblaze_construct_signed_upload_url(bucket, region, access_key_id, secret_access_key, hash_checksum):
            Severity: Minor
            Found in psono/restapi/utils/backblaze.py - About 35 mins to fix

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

              def create_signature_string(method, path, content_md5, content_type, expiration):
              Severity: Minor
              Found in psono/restapi/utils/gcp.py - About 35 mins to fix

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

                def backblaze_delete(bucket, region, access_key_id, secret_access_key, hash_checksum):
                Severity: Minor
                Found in psono/restapi/utils/backblaze.py - About 35 mins to fix

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

                  def api_request(method, endpoint, data = None, token = None, session_secret_key = None):
                  Severity: Minor
                  Found in examples/api_key_with_session.py - About 35 mins to fix

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

                    def create_user(username, password, email, gen_authkey=True, display_name=''):
                    Severity: Minor
                    Found in psono/restapi/utils/various.py - About 35 mins to fix

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

                      def api_request(method, endpoint, data = None, token = None, session_secret_key = None):
                      Severity: Minor
                      Found in examples/create_secret_in_share.py - About 35 mins to fix

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

                        def api_write_share(token, session_secret_key, share_id, encrypted_data, encrypted_data_nonce):
                        Severity: Minor
                        Found in examples/create_secret_in_share.py - About 35 mins to fix

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

                          def api_request(method, endpoint, data = None, token = None, session_secret_key = None):
                          Severity: Minor
                          Found in examples/create_secret_in_datastore.py - About 35 mins to fix

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

                            def azure_blob_construct_signed_url(storage_account_name, storage_account_primary_key, container_name, hash_checksum, permission):
                            Severity: Minor
                            Found in psono/restapi/utils/azure_blob.py - About 35 mins to fix

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

                              def api_update_secret(token, session_secret_key, secret_id, data, data_nonce):
                              Severity: Minor
                              Found in examples/api_key_with_session.py - About 35 mins to fix

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

                                def aws_construct_signed_download_url(bucket, region, access_key_id, secret_access_key, hash_checksum):
                                Severity: Minor
                                Found in psono/restapi/utils/aws.py - About 35 mins to fix

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

                                  def duo_auth_enroll_status(integration_key: str, secret_key: str, host: str, user_id: str, activation_code: str) -> dict:
                                  Severity: Minor
                                  Found in psono/restapi/utils/duo.py - About 35 mins to fix

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

                                    def user_has_rights_on_share(user_id: str, share_id: Union[str, List[str]], read: bool = None, write: bool = None, grant: bool = None) -> Union[None, bool, List[bool]]:
                                    Severity: Minor
                                    Found in psono/restapi/utils/various.py - About 35 mins to fix

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

                                      def aws_construct_signed_upload_url(bucket, region, access_key_id, secret_access_key, hash_checksum):
                                      Severity: Minor
                                      Found in psono/restapi/utils/aws.py - About 35 mins to fix

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

                                        def aws_delete(bucket, region, access_key_id, secret_access_key, hash_checksum):
                                        Severity: Minor
                                        Found in psono/restapi/utils/aws.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language