-
-
Notifications
You must be signed in to change notification settings - Fork 798
Fix documentation for deprecated 'reports' object (Issue #5908) #5924
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
Conversation
|
detekt { | ||
reports.xml.required.set(true) | ||
// reports.sarif.required.set(true) | ||
reports { | ||
xml.required.set(true) | ||
// sarif.required.set(true) | ||
} | ||
} |
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.
The docs are still wrong. The problem is that the whole:
detekt {
- reports {
- ...
- }
}
is deprecated. Reports should be configured using this approach:
https://detekt.dev/docs/gettingstarted/gradle#reports
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.
LGTM 👍
Codecov Report
@@ Coverage Diff @@
## main #5924 +/- ##
============================================
- Coverage 84.56% 84.46% -0.11%
- Complexity 3782 3784 +2
============================================
Files 546 546
Lines 12933 12923 -10
Branches 2271 2268 -3
============================================
- Hits 10937 10915 -22
- Misses 863 877 +14
+ Partials 1133 1131 -2
... and 2 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
should i write a test case for the detekt-formatting/src/main/kotlin/io/gitlab/arturbosch/detekt/formatting/FormattingRule.kt |
That's not necessary. Thanks to improve the documentation |
I made a completely new branch and removed whitespaced and fixed the deprecated reports object.
Fixes #5908