Skip to content

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

Merged
merged 2 commits into from
Mar 26, 2023

Conversation

BeBAKE
Copy link
Contributor

@BeBAKE BeBAKE commented Mar 21, 2023

I made a completely new branch and removed whitespaced and fixed the deprecated reports object.

Fixes #5908

@github-actions
Copy link

github-actions bot commented Mar 21, 2023

Messages
📖

Thank you very much for making our website better ❤️!

Generated by 🚫 dangerJS against 36d44bd

Comment on lines 95 to 100
detekt {
reports.xml.required.set(true)
// reports.sarif.required.set(true)
reports {
xml.required.set(true)
// sarif.required.set(true)
}
}
Copy link
Member

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

Copy link
Member

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@codecov
Copy link

codecov bot commented Mar 25, 2023

Codecov Report

Merging #5924 (36d44bd) into main (b07acae) will decrease coverage by 0.11%.
The diff coverage is 88.88%.

@@             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     
Impacted Files Coverage Δ
...lab/arturbosch/detekt/formatting/FormattingRule.kt 90.56% <88.88%> (-1.50%) ⬇️

... 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.

@BeBAKE
Copy link
Contributor Author

BeBAKE commented Mar 26, 2023

@BraisGabin BraisGabin added this to the 1.23.0 milestone Mar 26, 2023
@BraisGabin
Copy link
Member

That's not necessary. Thanks to improve the documentation

@BraisGabin BraisGabin merged commit a722910 into detekt:main Mar 26, 2023
@BeBAKE BeBAKE deleted the fix-reports-docs-5908 branch March 26, 2023 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation suggests using deprecated method
3 participants