有没有办法在IntelliJ下为测试范围指定备用scalastyle-config.xml?

时间:2017-06-05 05:07:53

标签: scala intellij-idea sbt scalastyle

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

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

当您想要放宽Test范围内的检查时,这非常有用。

不幸的是,IntelliJ会忽略此设置,并在其默认位置查找该文件。

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

1 个答案:

答案 0 :(得分:2)

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