-
-
Notifications
You must be signed in to change notification settings - Fork 777
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
Workaround config #3001
Workaround config #3001
Conversation
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 like this!
I was thinking if this location is the only one which needs to get wrapped for fail fast and co (instead of creating a new settings objects which potentially can lead to opening two threadpool/classloaders/environments)?
private val config: Config = settings.config |
I think that we don't need to wrap it any where else. |
detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/tooling/Lifecycle.kt
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #3001 +/- ##
============================================
- Coverage 79.78% 79.70% -0.09%
+ Complexity 2506 2504 -2
============================================
Files 427 427
Lines 7534 7543 +9
Branches 1420 1424 +4
============================================
+ Hits 6011 6012 +1
- Misses 767 773 +6
- Partials 756 758 +2
Continue to review full report at Codecov.
|
Right now we are using
FailFastConfig
andDisabledAutoCorrectConfig
to modify the configuration of all detekt and not just the configuration related with the rules itself.This is kind of complex because we have all those configurations mixed. We should think about this for 2.0.
I need this refactor to implement
--all-rules
. Because I want to enable all the rules, but I don't want to enable any PostProcessor or Report. And all of them checks the same key:"active"
.I really don't like too much this code but I don't want to change any current behaviour.