-
-
Notifications
You must be signed in to change notification settings - Fork 779
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
Create rule set configurations in a safe way #3964
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3964 +/- ##
============================================
+ Coverage 83.51% 83.63% +0.11%
- Complexity 3186 3188 +2
============================================
Files 461 462 +1
Lines 9095 9085 -10
Branches 1768 1762 -6
============================================
+ Hits 7596 7598 +2
+ Misses 570 565 -5
+ Partials 929 922 -7
Continue to review full report at Codecov.
|
...src/main/kotlin/io/gitlab/arturbosch/detekt/generator/collection/RuleSetProviderCollector.kt
Show resolved
Hide resolved
...src/main/kotlin/io/gitlab/arturbosch/detekt/generator/collection/RuleSetProviderCollector.kt
Outdated
Show resolved
Hide resolved
...src/main/kotlin/io/gitlab/arturbosch/detekt/generator/collection/RuleSetProviderCollector.kt
Show resolved
Hide resolved
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.
Thank you for picking this up. I really like your solution.
detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/internal/RuleSetConfigProperty.kt
Outdated
Show resolved
Hide resolved
...src/main/kotlin/io/gitlab/arturbosch/detekt/generator/collection/RuleSetProviderCollector.kt
Show resolved
Hide resolved
detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/internal/RuleSetConfigProperty.kt
Show resolved
Hide resolved
detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/internal/RuleSetConfigProperty.kt
Outdated
Show resolved
Hide resolved
…ernal/RuleSetConfigProperty.kt Co-authored-by: marschwar <marschwar@users.noreply.github.com>
Is there something blocking us to merge this? 3 approvals and all checks are green seems good to me. |
I was hoping to get more reviews for subsequent commits. Let me merge since as this has been left open for a while. |
This resolves #3816.
Created
ruleSetConfig
function to moveRuleSetProviders
' configuration from kdoc to actual annotation class.Note that list as the default value is not supported until we actually have a usecase.