-
-
Notifications
You must be signed in to change notification settings - Fork 755
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
OutdatedDocumentation should allow us to use @param
even when constructor properties have val
#4366
Comments
This looks more like a bug in KDoc, given that marking even one property as |
Regardless, I still don't see why I can submit PR to fix this, if desired. |
It's invalid because |
Well, at the same time, they are parameters, because they are part of the constructor. |
Per KDoc's documentation:
Yes, it's physically possible to mark a property in the constructor with |
I agree with severn here. It seems like a bug in the Jetbrains side. |
I agree with both of you but I just want to mention that answer from Jetbrains might take a while. In the meantime, the issue persists. If they do not answer in a meaningful time frame, I would opt for adding |
Just got a response from the JetBrains team: this was already identified as an issue in the IntelliJ plugin... three years ago. It doesn't look like there's any movement on fixing it anytime soon, so maybe we should allow the option like @matejdro suggests. |
Given that a fix from JB side would take some time, I believe that |
Expected Behavior of the rule
Following code:
fails the
OutdatedDocumentation
rule. Rule expects that allval
constructor parameters are marked as@property
instead.But there is really no benefit to using
@property
that I can see.Context
Main drawback of using
@property
is that there is no documentation when calling constructor of the class:As opposed to
@param
:However, even when using
@param
, IntellIJ still populates the property javadoc, so using@param
actually gives us the best of both worlds:Semi-related to the #4365
The text was updated successfully, but these errors were encountered: