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

Fixed throwing StringIndexOutOfBoundsException #3016

Conversation

Seetaramayya
Copy link
Contributor

Fixed the issue that is throwing StringIndexOutOfBoundsException when duplicated replacements are used to edit the file.

In other words, trying to replace single dependency more than once which is not valid.

… duplicated replacements are used to edit the file. In other words, trying to replace single dependency more than once which is not valid.
@codecov
Copy link

codecov bot commented Mar 20, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (f1f2e59) 91.09% compared to head (47796a2) 91.09%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3016   +/-   ##
=======================================
  Coverage   91.09%   91.09%           
=======================================
  Files         160      160           
  Lines        3336     3336           
  Branches      306      303    -3     
=======================================
  Hits         3039     3039           
  Misses        297      297           
Impacted Files Coverage Δ
...scalasteward/core/edit/update/data/Substring.scala 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

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

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@fthomas fthomas added the bug Something isn't working label Mar 21, 2023
@fthomas fthomas added this to the 0.24.0 milestone Mar 24, 2023
@@ -432,6 +431,17 @@ class RewriteTest extends FunSuite {
runApplyUpdate(update, original, expected)
}

// https://github.com/scala-steward-org/scala-steward/pull/3016
test("artifact change with multiple artifactId cross names") {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cat:rewrite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants