このトピックに関して私が見つけた他のすべての質問はかなり古いものです。
sbt
プラグインを使用してscala プロジェクトを構築してscala-style
いますが、生成されたコードがある特定のフォルダーを除外する方法が見つかりません。
プラグインが特定のフォルダをチェックしないようにする方法はありますか?
現在、ファイルを手動で編集して追加しています:
// scalastyle:off
ファイルの上部にありますが、これは非常に面倒です。
公式ウェブサイトhttp://www.scalastyle.org/sbt.htmlでドキュメントを見つけることができませんでしたが、実際にはそこからパス/ファイルを除外できるようです。
実際に渡すことができるようです:
println(" -x, --excludedFiles STRING regular expressions to exclude file paths (delimited by semicolons)")
私のbuild.sbt
電話では:
lazy val compileScalastyle = taskKey[Unit]("compileScalastyle")
compileScalastyle := org.scalastyle.sbt.ScalastylePlugin.scalastyle.in(Compile).toTask("").value
(compile in Compile) <<= (compile in Compile) dependsOn compileScalastyle
でそれを達成する方法はありsbt plugin
ますか?