【问题标题】:Running sbt with Wartremover使用 Wartremover 运行 sbt
【发布时间】:2015-09-30 09:25:46
【问题描述】:

我想用wartremover 和 sbt 检查我整个项目的代码。

我已将addSbtPlugin("org.brianmckenna" % "sbt-wartremover" % "0.13" 添加到plugins.sbt,但不知道下一步该做什么。

我没有从 wartremoversbt runsbt compile 得到任何输出。

【问题讨论】:

    标签: scala plugins sbt


    【解决方案1】:

    就像the documentation 中所说,您需要配置 linter:

    wartremoverErrors ++= Warts.unsafe

    使用 sbt >= 0.13.5 和自动插件功能,仅此而已。添加上面的行后,示例会出现编译错误。

    【讨论】:

      猜你喜欢
      • 2015-02-18
      • 2013-03-06
      • 2015-06-08
      • 1970-01-01
      • 2015-03-26
      • 1970-01-01
      • 1970-01-01
      • 2023-03-20
      • 2014-08-05
      相关资源
      最近更新 更多