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
Use the new configure config for formatting #4352
Conversation
2684a57
to
b2d6f10
Compare
f55e273
to
f1a9f79
Compare
f1a9f79
to
ddfa577
Compare
Codecov Report
@@ Coverage Diff @@
## main #4352 +/- ##
============================================
- Coverage 84.15% 84.11% -0.05%
+ Complexity 3314 3310 -4
============================================
Files 476 477 +1
Lines 10871 10879 +8
Branches 2011 2015 +4
============================================
+ Hits 9149 9151 +2
- Misses 692 698 +6
Partials 1030 1030
Continue to review full report at Codecov.
|
1518949
to
c6b0b1b
Compare
ddfa577
to
24b1017
Compare
24b1017
to
13e7f8d
Compare
13e7f8d
to
6442700
Compare
Many codebases I worked with refer to the URL detekt-core/src/main/resources/default-detekt-config.yml directly in the config file. So this is one of the most notable changes |
Why do they that instead of using the generate task? It seems odd because we add new rules there that old versions of detekt don't have. |
Sorry, I should have clarify - The URL was referred as a link in the comment section. Because people need to compare what has changed between the old detekt version and new detekt version. |
Oh, I see. I use this script #3558 (comment) Update the Detekt configuration between versions is really difficult. We should probably look for a way to improve it. Maybe implement a semantic merge but I don't know. |
6442700
to
df33211
Compare
Guys this is not well documented at all. |
Nope you should not. Please open an issue and explain your setup as you're most likely facing a bug of some sort |
It just says that |
That seems like an issue in your configuration. To be more precise it seems that you are not applying the formatting plugin. And, because you are not applying it |
interesting what is the formatting plugin and how do we use it. Also here trying to upgrade from an older version and seeing the same error as above |
https://detekt.dev//docs/rules/formatting/ You can find information about how to use it there. It's a wrapper around ktlint. |
Here's the correct link in case it's useful: |
Now that we can concat different configuration files this PR uses it on our first-party-plugin
formatting
.close #3242