From the documentation :
terminal:
scalac -Xplugin:<path-to-linter-jar>.jar ...
sbt: (in build.sbt)
scalacOptions += "-Xplugin:<path-to-linter-jar>.jar"
maven: (in pom.xml inside scala-maven-plugin configuration)
<configuration>
<args>
<arg>-Xplugin:<path-to-linter-jar>.jar</arg>
</args>
</configuration>
However, it worked for me by simply adding the compiler plugin as you did. A simple way to test is this method:
def f(a: Int) = 10
You should get a warning that looks like this:
Parameter a is not used in method f.
[warn] def f(a: Int) = 10
[warn] ^
source
share