gpt4 book ai didi

scala - 从 WartRemover 中排除播放路径文件生成的代码

转载 作者:行者123 更新时间:2023-12-02 07:56:04 26 4
gpt4 key购买 nike

我正在一个游戏项目中使用 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 放入 scalacOptions 中以查看哪个包存在问题。当我忽略以下内容时,它似乎对我有用

wartremoverExcluded ++= Seq("Routes", "controllers.ref")

关于scala - 从 WartRemover 中排除播放路径文件生成的代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26621728/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com