-
Notifications
You must be signed in to change notification settings - Fork 43
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
Compilation tweaks #114
Compilation tweaks #114
Conversation
f68c29d
to
a0be19c
Compare
@@ -11,7 +11,7 @@ class LoggingOutputStream( | |||
separator: String | |||
) extends OutputStream { | |||
|
|||
private val baos = new ByteArrayOutputStream { | |||
class LinesExtractorOutputStream extends ByteArrayOutputStream { |
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.
avoid -language:reflectiveCalls
@@ -30,7 +30,7 @@ class JGitCompletion(cwd: Path) { | |||
} | |||
|
|||
val branchesAndTags: List[String] = | |||
refList.map { case (a, _) => Repository.shortenRefName(a) }.toList | |||
refList.map { ref => Repository.shortenRefName(ref.getName) }.toList |
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.
@@ -113,7 +113,7 @@ class SbtCompletionsSuite extends AnyFunSuite { | |||
|""".stripMargin.trim.replaceAll("\r\n", "\n") | |||
if (obtained != expected) { | |||
println("\"\"\"|") | |||
obtained.lines.foreach { line => | |||
obtained.linesIterator.foreach { line => |
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.
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.
LGTM 👍 I'm personally not a fan of fatal warnings combined with unused import warnings. The situation is a lot better in 2.13.2 with -Wconf. Either way, stricter flags is a good thing!
Thanks both for the review!
Do you find it too strict?
Indeed, but I guess that won't help until sbt 2.x (?) for sbt plugins. |
No description provided.