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

standard:kdoc - A KDoc is not allowed inside 'value_argument_list' #2656

Closed
vanniktech opened this issue May 15, 2024 · 2 comments
Closed

standard:kdoc - A KDoc is not allowed inside 'value_argument_list' #2656

vanniktech opened this issue May 15, 2024 · 2 comments

Comments

@vanniktech
Copy link
Contributor

The following enum entry gets flagged with 1.2.1:

      /** Planks. */
      Exercise(
        ...
      )

Why isn't kdoc allowed on an individual enum entry?

@paul-dingemans
Copy link
Collaborator

Please share a more complete code example and your .editorconfig that reproduces finding above.

Examples below are accepted by Ktlint without warnings:

enum class FooBar {
    /** Some foo */
    FOO,

    /** some bar */
    BAR
}

enum class FooBar2(s: String) {
    /** Some foo */
    FOO("aa"),

    /** Some bar */
    BAR("bb")
}

with .editorconfig:

root = true

[*.{kt,kts}]
ktlint_code_style = ktlint_official
ktlint_standard = enabled
ktlint_experimental = enabled

@paul-dingemans
Copy link
Collaborator

Closed due to lack of response.

@paul-dingemans paul-dingemans closed this as not planned Won't fix, can't repro, duplicate, stale May 28, 2024
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

2 participants