【问题标题】:Is there a way to specify an alternate scalastyle-config.xml under IntelliJ for test scope?有没有办法在 IntelliJ 下为测试范围指定备用 scalastyle-config.xml?
【发布时间】:2017-06-05 05:07:53
【问题描述】:

build.sbt 中,您可以使用以下命令为测试范围指定备用 scalastyle 配置文件:

(scalastyleConfig in Test) := baseDirectory.value / "scalastyle-test-config.xml"

当您想放松Test 范围内的检查时,这很有用。

很遗憾,IntelliJ 会忽略此设置并在其默认位置查找文件。

有没有办法解决这个问题?

【问题讨论】:

    标签: scala intellij-idea sbt scalastyle


    【解决方案1】:

    目前这是不可能的,位置是硬编码的。我为您创建了一个问题: https://youtrack.jetbrains.com/issue/SCL-12086

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-05-10
      • 1970-01-01
      • 2013-04-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-07
      • 1970-01-01
      相关资源
      最近更新 更多