我在播放项目中使用了WartRemover。我想从Wartremover扫描中排除路由文件(从它生成的代码)。我添加了以下内容,但它仍然会扫描routes
生成的代码。排除播放路径文件 - 从WartRemover生成的代码
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扫描中排除路线?
不知道这是否会帮助很多,但同时我注意到,'Wart.Nothing'似乎失败甚至当它被排除在外,其他如'Wart.Any','疣路由文件。 Product'和'Wart.Serializable'似乎表现正确。 – 2014-11-20 21:34:32