8000 Enable fatal warnings by lihaoyi · Pull Request #4515 · com-lihaoyi/mill · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Enable fatal warnings #4515

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

Merged
merged 18 commits into from
Feb 8, 2025
Merged

Enable fatal warnings #4515

merged 18 commits into from
Feb 8, 2025

Conversation

lihaoyi
Copy link
Member
@lihaoyi lihaoyi commented Feb 8, 2025

The existing warnings were dealt with by a mix of fixing and silencing. We can tweak the set of silenced warnings later as necessary, but this is a significant step in ensuring all warnings are dealt with one way or another, and should prevent them uselessly piling up in the console logs

@lihaoyi lihaoyi merged commit 8cedcba into com-lihaoyi:main Feb 8, 2025
9 checks passed
@@ -477,14 +477,21 @@ trait MillScalaModule extends ScalaModule with MillJavaModule with ScalafixModul
def semanticDbVersion = Deps.semanticDBscala.version

def scaladocOptions = Seq("-Xsource:3")

def scalacOptions =
super.scalacOptions() ++ Seq(
"-deprecation",
"-feature"
) ++ (
if (ZincWorkerUtil.isScala3(scalaVersion())) Seq(
// "-Werror",

Choose a reason for hiding this comment

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

This is the progressive spelling of "warnings as error".

"-Wconf:msg=An existential type that came from a Scala-2 classfile:silent",
"-Wconf:msg=impo 8000 rt scala.language.implicitConversions:silent",
"-Wconf:msg=IterableOnceExtensionMethods:silent",
"-Wconf:msg=is deprecated:silent",

Choose a reason for hiding this comment

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

-Wconf:cat=deprecation:s is one of a few portable "categories".

@lefou lefou added this to the 0.13.0 milestone Feb 9, 2025
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.

3 participants
0