-
-
Notifications
You must be signed in to change notification settings - Fork 798
Dynamic deprecation #4104
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
Dynamic deprecation #4104
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4104 +/- ##
============================================
- Coverage 83.60% 83.57% -0.03%
- Complexity 3187 3189 +2
============================================
Files 459 460 +1
Lines 9098 9108 +10
Branches 1769 1770 +1
============================================
+ Hits 7606 7612 +6
- Misses 560 564 +4
Partials 932 932
Continue to review full report at Codecov.
|
75195be
to
9d78247
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.
I think this PR is making a positive impact in general, but as mentioned in #3935, our config validation is still relatively incomplete.
@@ -36,19 +37,20 @@ val generateDocumentation by tasks.registering(JavaExec::class) { | |||
inputs.files( | |||
ruleModules.map { fileTree(it) }, | |||
fileTree("${rootProject.rootDir}/detekt-formatting/src/main/kotlin"), | |||
file("${rootProject.rootDir}/detekt-generator/build/libs/detekt-generator-${Versions.DETEKT}-all.jar") | |||
file("${rootProject.rootDir}/detekt-generator/build/libs/detekt-generator-${Versions.DETEKT}-all.jar"), |
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.
Did we enable rules to force comma to be added on the last argument?
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.
We did not. But I added them because I think that they improve the code.
9d78247
to
a893dab
Compare
Make the list of deprecation configurations dynamic. This way we don't forget about updating a hardcoded list.