-
Notifications
You must be signed in to change notification settings - Fork 489
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
Fixed throwing StringIndexOutOfBoundsException #3016
Conversation
… duplicated replacements are used to edit the file. In other words, trying to replace single dependency more than once which is not valid.
modules/core/src/test/scala/org/scalasteward/core/edit/RewriteTest.scala
Outdated
Show resolved
Hide resolved
Codecov ReportPatch coverage:
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
... 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. |
@@ -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") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
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.