- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 794
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
Fix Signatures.kt:buildFunctionSignature #4961
Fix Signatures.kt:buildFunctionSignature #4961
Conversation
'buildFunctionSignature' fails when function body has KDoc.
a793350
to
68ed1a4
Compare
|
You can find information about that here: #4874. Any feedback there is more than welcome. |
detekt-api/src/test/kotlin/io/gitlab/arturbosch/detekt/api/internal/SignaturesSpec.kt
Show resolved
Hide resolved
detekt-api/src/test/kotlin/io/gitlab/arturbosch/detekt/api/internal/SignaturesSpec.kt
Outdated
Show resolved
Hide resolved
detekt-api/src/test/kotlin/io/gitlab/arturbosch/detekt/api/internal/SignaturesSpec.kt
Outdated
Show resolved
Hide resolved
874d06a
to
0fea783
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This is a fix but it's also kind of "breaking". It will force to regenerate lots of baselines. I'm ok with that but just a heads up if some maintainer wants to pospone he merge to 1.22.0. cc @cortinico |
I think we can merge this, but would be great to include a paragraph in the 'migration' section of the changelog. |
I think that something like this could do the trick on the changelog: We updated the baseline creation. Now the kdoc is not part of the function signature. This could create that already suppressed issues in your baseline reappear. To fix that just recreate your baseline. |
I think KDoc comments were trimmed before that too.
|
Can we verify this. If we require users to regenerate baselines because of trimming of KDocs, that should be reported clearly in the changelog 👍 |
@cortinico No, I was wrong!
Consider the issue #4767 |
Still this doesn't answer my original question: do we need to ask users to regenerate baselines? |
Yes, we do. |
For #4887 ('buildFunctionSignature' fails when function body has KDoc)