DEV Community

tanishiking
tanishiking

Posted on

1

Consistent warnings between IntelliJ and Metals

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

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (1)

Collapse
 
brunoferrots profile image
BrunoFerroTs

What was the conclusion ?

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay