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

Compilation tweaks #114

Merged
merged 2 commits into from
Jun 3, 2020
Merged

Conversation

bjaglin
Copy link
Collaborator

@bjaglin bjaglin commented May 28, 2020

No description provided.

@@ -11,7 +11,7 @@ class LoggingOutputStream(
separator: String
) extends OutputStream {

private val baos = new ByteArrayOutputStream {
class LinesExtractorOutputStream extends ByteArrayOutputStream {
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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 =>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@bjaglin bjaglin marked this pull request as ready for review May 28, 2020 22:06
@bjaglin bjaglin requested review from olafurpg and mlachkar June 3, 2020 10:22
Copy link
Contributor

@olafurpg olafurpg left a 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!

@bjaglin
Copy link
Collaborator Author

bjaglin commented Jun 3, 2020

Thanks both for the review!

I'm personally not a fan of fatal warnings combined with unused import warnings.

Do you find it too strict?

The situation is a lot better in 2.13.2 with -Wconf.

Indeed, but I guess that won't help until sbt 2.x (?) for sbt plugins.

@bjaglin bjaglin merged commit 7a070a2 into scalacenter:master Jun 3, 2020
@bjaglin
Copy link
Collaborator Author

bjaglin commented Jun 3, 2020

I'm personally not a fan of fatal warnings combined with unused import warnings

@olafurpg I think I get your point now #122 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants