我在一个游戏项目中使用 WartRemover。我想从 Wartremover 扫描中排除路由文件(从中生成的代码)。我添加了以下内容,但它仍然扫描播放routes
生成的代码。
wartremoverExcluded ++= Seq("com.xxx.controllers.ReverseMyController","com.xxx.controllers.javascript.ReverseMyController","com.xxx.controllers.ref.ReverseMyController")
它仍然显示生成的代码中的疣错误routes
播放文件。例如
warn] /xxx/conf/routes:23: Inferred type containing Nothing
warn] PUT /service/myendpoint com.xxx.controllers.MyController.postMyData
对于路由文件中定义的更多路由也是如此。
如何从 wartremover 扫描中排除路由?
你有没有尝试过把-Xprint:typer
in scalacOptions
查看哪个包有问题。当我忽略以下内容时,它似乎对我有用
wartremoverExcluded ++= Seq("Routes", "controllers.ref")
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)