Skip to content
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

Update ktlint to v0.49.0 #6028

Merged
merged 12 commits into from Apr 23, 2023
Merged

Update ktlint to v0.49.0 #6028

merged 12 commits into from Apr 23, 2023

Conversation

3flex
Copy link
Member

@3flex 3flex commented Apr 22, 2023

No description provided.

@codecov
Copy link

codecov bot commented Apr 22, 2023

Codecov Report

Merging #6028 (f4a664e) into main (b224dcb) will increase coverage by 0.15%.
The diff coverage is 99.35%.

❗ Current head f4a664e differs from pull request most recent head f307ced. Consider uploading reports for the commit f307ced to get more accurate results

@@             Coverage Diff              @@
##               main    #6028      +/-   ##
============================================
+ Coverage     84.69%   84.84%   +0.15%     
- Complexity     3865     3944      +79     
============================================
  Files           550      561      +11     
  Lines         13117    13251     +134     
  Branches       2313     2313              
============================================
+ Hits          11109    11243     +134     
  Misses          868      868              
  Partials       1140     1140              
Impacted Files Coverage Δ
.../kotlin/io/gitlab/arturbosch/detekt/cli/CliArgs.kt 100.00% <ø> (ø)
...ch/detekt/formatting/wrappers/AnnotationSpacing.kt 100.00% <ø> (ø)
...detekt/formatting/wrappers/ArgumentListWrapping.kt 100.00% <ø> (ø)
...tting/wrappers/BlockCommentInitialStarAlignment.kt 100.00% <ø> (ø)
...bosch/detekt/formatting/wrappers/CommentSpacing.kt 100.00% <ø> (ø)
...osch/detekt/formatting/wrappers/CommentWrapping.kt 100.00% <ø> (ø)
...tekt/formatting/wrappers/ContextReceiverMapping.kt 100.00% <ø> (ø)
.../formatting/wrappers/DiscouragedCommentLocation.kt 100.00% <ø> (ø)
...ch/detekt/formatting/wrappers/EnumEntryNameCase.kt 100.00% <ø> (ø)
.../arturbosch/detekt/formatting/wrappers/Filename.kt 100.00% <ø> (ø)
... and 73 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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.

Great work @3flex left some initial comments 👍

@cortinico
Copy link
Member

I'm merging this as I'm about to do 1.23.0-RC2. If there are any follow-ups, we can still do RC3 👍

@cortinico cortinico merged commit b54e5c8 into detekt:main Apr 23, 2023
23 checks passed
@@ -83,11 +82,4 @@ class RulesWhichCantBeCorrectedSpec {
.isNotEmpty
.hasExactlyElementsOfTypes(CodeSmell::class.java)
}

@Test
Copy link
Member

Choose a reason for hiding this comment

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

Curious why we are removing this test?

Copy link
Member Author

Choose a reason for hiding this comment

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

ktlint behaviour seemed to change and it failed. I didn't dig further assuming that this now might be a rule which can be corrected.

If this was incorrect a test with the new corrected behaviour could be added back in

@@ -73,18 +73,10 @@ formatting:
active: true
Filename:
active: false
FunctionReturnTypeSpacing:
Copy link
Member

Choose a reason for hiding this comment

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

I suppose we still want to keep these previously experimental now standard rules in the configs

Copy link
Member Author

Choose a reason for hiding this comment

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

Config has been removed in the past when other rules became active by default, it seems redundant to leave it in when we're using buildUponDefaultConfig.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api build cli core dependencies Pull requests that update a dependency file formatting gradle-plugin notable changes Marker for notable changes in the changelog rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants