I finally got rid of the Wartremover warnings for routes with this line in the build.sbt:
wartremoverExcluded ++= routes.in(Compile).value
How can I achieve the same for the *.scala.html files? To exclude by directory does not seem to work, including
wartremoverExcluded += baseDirectory.value / "templates"
does not seem to have any effect at all
I'm using play-framework 2.6.11 and sbt-wartremover 2.2.1 and sbt 1.0.3