Bloombox/Swift

View on GitHub
Sources/Client/AuthClient.swift

Summary

Maintainability
A
0 mins
Test Coverage

Function connect has 6 arguments (exceeds 4 allowed). Consider refactoring.
Invalid

  public func connect(identity: VerifiedIdentityToken,
                      withPublicKey publicKey: UserPublicKey,
                      andNonce nonce: NonceValue,
                      forClient client: ConnectApp,
                      apiKey: APIKey? = nil,
Severity: Minor
Found in Sources/Client/AuthClient.swift - About 45 mins to fix

    Function connect has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Invalid

      public func connect(identity: VerifiedIdentityToken,
                          withPublicKey publicKey: UserPublicKey,
                          andNonce nonce: NonceValue,
                          forClient client: ConnectApp,
                          apiKey: APIKey? = nil) throws -> IdentityConnect.Response {
    Severity: Minor
    Found in Sources/Client/AuthClient.swift - About 35 mins to fix

      Multiline comment should end with whitespace
      Open

      **/
      Severity: Minor
      Found in Sources/Client/AuthClient.swift by tailor

      comment-whitespace

      Prefer at least one whitespace character after a comment opening symbol (//, ///, /*, or /**) and at least one whitespace character before a comment closing symbol (*/).

      Preferred

      // This is a comment
      
      /// This is a documentation comment
      
      /* This is a
      multi-line comment */
      
      /* This is a
      multi-line comment
      */
      
      /** This is a
      documentation multi-line
      comment
      */

      Not Preferred

      //This is a comment
      
      ///This is a documentation comment
      
      /*This is a
      multi-line comment*/
      
      /**This is a multi-line
      documentation comment */

      There are no issues that match your filters.

      Category
      Status