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 ModifierOrder to support value class #3719
Fix ModifierOrder to support value class #3719
Conversation
593a288
to
cb1758b
Compare
Codecov Report
@@ Coverage Diff @@
## main #3719 +/- ##
=========================================
Coverage 83.58% 83.58%
Complexity 3055 3055
=========================================
Files 456 456
Lines 8916 8917 +1
Branches 1752 1752
=========================================
+ Hits 7452 7453 +1
Misses 541 541
Partials 923 923
Continue to review full report at Codecov.
|
a9064d9
to
d2b87af
Compare
566bc32
to
2d5da7e
Compare
2d5da7e
to
d25098e
Compare
@@ -75,6 +76,7 @@ class ModifierOrder(config: Config = Config.empty) : Rule(config) { | |||
ENUM_KEYWORD, ANNOTATION_KEYWORD, FUN_KEYWORD, | |||
COMPANION_KEYWORD, | |||
INLINE_KEYWORD, | |||
VALUE_KEYWORD, |
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.
It seems reasonable to put value
here because value class
is inline class
. However, would you mind creating a PR for Kotlin coding convention here since it does not include the value
modifier yet?
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.
I just created that PR: JetBrains/kotlin-web-site#2300
Should we wait for it to be merged before merging this? Or can we merge it and revert it in case it is rejected?
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.
I am inclined to merge it now since this will impact the correctness when running Detekt on Kotlin 1.5 code. See https://github.com/detekt/detekt/pull/3810/files#r637354618
@cortinico @chao2zhang can we please have a new release that'd include this fix? |
On top of #3718
Fixes #3717