Skip to content

Fix redundant ClassOrdering violations using maximum increasing section - #6003

Merged
cortinico merged 1 commit into
detekt:mainfrom
atulgpt:fixes/3144
Apr 29, 2023
Merged

cortinico merged 1 commit into
detekt:mainfrom
atulgpt:fixes/3144

Conversation

@atulgpt

@atulgpt atulgpt commented Apr 15, 2023

Copy link
Copy Markdown
Contributor

Fixes #3144

@github-actions github-actions Bot added the rules label Apr 15, 2023
@atulgpt
atulgpt force-pushed the fixes/3144 branch 2 times, most recently from 257050a to acbcac5 Compare April 15, 2023 11:28
@atulgpt atulgpt changed the title Fixes/3144 Find redundant ClassOrdering violations using maximum increasing section Apr 15, 2023
@atulgpt atulgpt changed the title Find redundant ClassOrdering violations using maximum increasing section Fix redundant ClassOrdering violations using maximum increasing section Apr 15, 2023
And based on that find the minimal violation
Original implementation comment at detekt#3142 (comment) which suggested the [algo](https://www.geeksforgeeks.org/minimum-insertions-sort-array/) from which this change is derived
@codecov

codecov Bot commented Apr 15, 2023 •

Copy link
Copy Markdown

Codecov Report

Merging #6003 (acbcac5) into main (b925968) will decrease coverage by 0.02%.
The diff coverage is 85.71%.

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

@@             Coverage Diff              @@
##               main    #6003      +/-   ##
============================================
- Coverage     84.66%   84.64%   -0.02%     
- Complexity     3836     3846      +10     
============================================
  Files           549      549              
  Lines         13065    13092      +27     
  Branches       2305     2315      +10     
============================================
+ Hits          11061    11082      +21     
- Misses          868      869       +1     
- Partials       1136     1141       +5     
Impacted Files Coverage Δ
...ub/detekt/psi/internal/FullQualifiedNameGuesser.kt 87.50% <ø> (ø)
...lab/arturbosch/detekt/rules/style/ClassOrdering.kt 82.27% <85.71%> (-2.34%) ⬇️

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

@atulgpt

atulgpt commented Apr 25, 2023

Copy link
Copy Markdown
Contributor Author

@BraisGabin I gues failing CI is due to intermittent failure. Right?

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

Thanks!

@BraisGabin BraisGabin added this to the 1.23.0 milestone Apr 27, 2023
@cortinico
cortinico merged commit df82521 into detekt:main Apr 29, 2023
@atulgpt
atulgpt deleted the fixes/3144 branch April 29, 2023 15:10

This branch was successfully deployed

1 active deployment
Preview — 079d0ca2 Deployed Apr 15, 2023 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ClassOrdering identifies minimum set of reorders

3 participants