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

Rewrite MaxLineLength & TrailingWhitespace to avoid problematic offset calcs #7270

Merged
merged 5 commits into from
May 8, 2024

Conversation

3flex
Copy link
Member

@3flex 3flex commented May 8, 2024

No description provided.

3flex added 3 commits May 8, 2024 15:58
Negative values are invalid as the text range must start and end within the
range 0 to file.text.length
@detekt-ci detekt-ci added the rules label May 8, 2024
@detekt-ci
Copy link
Collaborator

detekt-ci commented May 8, 2024

Warnings
⚠️ It looks like this PR contains functional changes without a corresponding test.

Generated by 🚫 dangerJS against 7f61100

@3flex 3flex marked this pull request as draft May 8, 2024 06:04
@3flex 3flex marked this pull request as ready for review May 8, 2024 06:04
Copy link

codecov bot commented May 8, 2024

Codecov Report

Attention: Patch coverage is 96.29630% with 1 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (main@35c4599). Click here to learn what that means.
Report is 1 commits behind head on main.

Files Patch % Lines
...lab/arturbosch/detekt/rules/style/MaxLineLength.kt 92.30% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7270   +/-   ##
=======================================
  Coverage        ?   84.74%           
  Complexity      ?     3990           
=======================================
  Files           ?      578           
  Lines           ?    12027           
  Branches        ?     2483           
=======================================
  Hits            ?    10192           
  Misses          ?      606           
  Partials        ?     1229           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@3flex 3flex marked this pull request as draft May 8, 2024 09:59
@3flex 3flex changed the title Rewrite MaxLineLength to avoid problematic offset calcs Rewrite MaxLineLength & TrailingWhitespace to avoid problematic offset calcs May 8, 2024
@3flex 3flex marked this pull request as ready for review May 8, 2024 10:32
@3flex 3flex requested a review from BraisGabin May 8, 2024 10:33
Copy link
Member

@BraisGabin BraisGabin left a comment

Choose a reason for hiding this comment

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

LGTM

This PR is really related with #7259. Because these two rules are the more problematic ones related with the null KtElement.

@3flex 3flex merged commit 236635a into detekt:main May 8, 2024
21 checks passed
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.

None yet

3 participants