Skip to content

Enum documentation comment is parsed for class definitions #29

@ekscrypto

Description

@ekscrypto

I have the following code:

    /// When the URLSessionTask is complete the validateCompletion() function will return one of these values
    /// to indicate to APIDispatcher how it should proceed
    enum CompletionValidation {
        case completionValidated    /// Indicates to APIDispatcher that the last response you received is valid, and it should consider this request complete
        case rejectedIsRetriable    /// Indicates to APIDispatcher that your class implements APIRetriableRequestCompatible and the last received response was invalid. APIDispatcher will confirm the re-attempt and cooldown interval using the shouldReattempt function
        case rejectedDontRetry      /// Indicates to APIDispatcher that the last response you received was invalid, it should not attempt a retry and it should stop processing the request
    }

Unused.rb complains that "class implements is unused". This refers to the comment of the rejectedIsRetriable enum in which you can find the word "class". This is obviously not a class definition syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions