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

KDoc for private properties are added only when there was no KDoc (also warning) #552

Closed
petertrr opened this issue Nov 19, 2020 · 0 comments · Fixed by #575
Closed

KDoc for private properties are added only when there was no KDoc (also warning) #552

petertrr opened this issue Nov 19, 2020 · 0 comments · Fixed by #575
Assignees
Labels
bug Something isn't working

Comments

@petertrr
Copy link
Member

petertrr commented Nov 19, 2020

This code

class Example(private val foo: Int)

is autofixed into

/**
 * @property foo
 */
class Example(private val foo: Int)

while this

/**
 * KDoc
 */
class Example(private val foo: Int)

doesn't.
The first snippet shouldn't be corrected too.

This is not only about the fixer; the warning is emitted in checking mode too.

diktat versions: 0.1.5

@petertrr petertrr added the bug Something isn't working label Nov 19, 2020
@petertrr petertrr changed the title KDoc for private properties are added only when there was no KDoc KDoc for private properties are added only when there was no KDoc (also warning) Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants