Lint Scala on the fly, using scalac. Additionally, pass compiler flags (e.g. -Ywarn-dead-code) and your project's full classpath for more robust/accurate errors and warnings.