I am using WartRemover in a game project. I want to exclude the routes file (generated code from it) from the Wartremover scan. I added the following, but it still scans the generated code routes.
wartremoverExcluded ++= Seq("com.xxx.controllers.ReverseMyController","com.xxx.controllers.javascript.ReverseMyController","com.xxx.controllers.ref.ReverseMyController")
And it still shows wart errors from the generated code for the play file routes. eg.
warn] /xxx/conf/routes:23: Inferred type containing Nothing
warn] PUT /service/myendpoint com.xxx.controllers.MyController.postMyData
and the same for many other routes defined in the routes file.
How to exclude routes from wartremover scan?
source
share