Consistent warnings between IntelliJ and Metals
tanishiking
Posted on November 26, 2023
Maybe your team, some people use IntelliJ and other people use Metals.
While IntelliJ shows a bunch of warnings out of the box in their IDE, Metals requires some settings (like unused imports).
Metals' warnings depends on Scala compilers warnings, while IntelliJ uses its own typechecker and shows them out of the box.
Which means, we have to add some scalacOptions
to scala compiler such as scalacOptions ++= Seq( "-Ywarn-unused:imports")
(for unused imports).
For Scala2, this blog post might be a good read Make Your Scala Compiler Work Harder | by Dick Wall | Life at Hopper | Medium
π πͺ π
π©
tanishiking
Posted on November 26, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.