Replace @active KDoc tag with @ActiveByDefault annotation#3592
Replace @active KDoc tag with @ActiveByDefault annotation#3592chao2zhang merged 13 commits intodetekt:mainfrom
@active KDoc tag with @ActiveByDefault annotation#3592Conversation
@active KDoc tag with @ActiveByDefault annotation
Codecov Report
@@ Coverage Diff @@
## main #3592 +/- ##
============================================
+ Coverage 78.21% 78.22% +0.01%
+ Complexity 2829 2826 -3
============================================
Files 465 466 +1
Lines 9121 9136 +15
Branches 1722 1724 +2
============================================
+ Hits 7134 7147 +13
Misses 1059 1059
- Partials 928 930 +2
Continue to review full report at Codecov.
|
detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/internal/ActiveByDefault.kt
Outdated
Show resolved
Hide resolved
detekt-formatting/src/main/kotlin/io/gitlab/arturbosch/detekt/formatting/FormattingProvider.kt
Outdated
Show resolved
Hide resolved
...erator/src/test/kotlin/io/gitlab/arturbosch/detekt/generator/collection/RuleCollectorSpec.kt
Outdated
Show resolved
Hide resolved
...erator/src/test/kotlin/io/gitlab/arturbosch/detekt/generator/collection/RuleCollectorSpec.kt
Outdated
Show resolved
Hide resolved
...-complexity/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/complexity/ComplexCondition.kt
Outdated
Show resolved
Hide resolved
|
Just wondering - do we need to still support the kdoc tag as well in order to work for custom rules that have not made the switch? |
To my knowledge, not: the |
detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/internal/ActiveByDefault.kt
Outdated
Show resolved
Hide resolved
69e9717 to
64cc5a0
Compare
9929b26 to
43f19dc
Compare
43f19dc to
8053965
Compare
Following up on #3562 this replaces the
@active¸ kdoc tag with an@ActiveByDefault` annotation.