Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enum documentation comment is parsed for class definitions #29

Open
ekscrypto opened this issue Jun 2, 2021 · 0 comments
Open

Enum documentation comment is parsed for class definitions #29

ekscrypto opened this issue Jun 2, 2021 · 0 comments

Comments

@ekscrypto
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant