Skip to content

Update ktlint to v0.49.0 - #6028

Merged
cortinico merged 12 commits into
detekt:mainfrom
3flex:ktlint-0.49.0
Apr 23, 2023
Merged

cortinico merged 12 commits into
detekt:mainfrom
3flex:ktlint-0.49.0

Conversation

@3flex

@3flex 3flex commented Apr 22, 2023

Copy link
Copy Markdown
Member

No description provided.

@codecov

codecov Bot commented Apr 22, 2023 •

Copy link
Copy Markdown

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.

@cortinico cortinico left a comment

Copy link
Copy Markdown
Member

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 👍

Comment thread gradle/libs.versions.toml
@cortinico

Copy link
Copy Markdown
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
.hasExactlyElementsOfTypes(CodeSmell::class.java)
}

@Test

Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread config/detekt/detekt.yml
active: true
Filename:
active: false
FunctionReturnTypeSpacing:

Copy link
Copy Markdown
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
Copy Markdown
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.

This branch was successfully deployed

1 active deployment
Preview — f307cedf Deployed Apr 23, 2023 by vercel[bot]
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.

3 participants