問題タブ [scalastyle]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
scala - scalastyle 警告で sbt ビルドを失敗させる
http://www.scalastyle.org/sbt.htmlを参照して、コード空間に scalastyle チェックを適用しています。
build.sbt:
project/plugins.sbt:
実行するsbt compile
と、scalastyle は生成されます[warning] ***./utils/ConfigManager.scala: File must end with newline character
が、コンパイルは成功します。
sbt compile
scalastyle の警告で失敗する方法はありますか?
すべて<check level="warning" ...>
を に変更するだけです。これが正しい方法かどうかはわかりません<check level="error" ...>
。scalastyleGenerateConfig
どうもありがとう
scala - Intellij Idea の scala 静的解析ルールを scalastyle_configuration ファイルにエクスポートする
Intellij Idea の事前定義された静的分析ルールを scalastyle_configuration ファイルに保持し、チーム全体でこれらのルールを適用するために prepush githook でチェックを実行したいと考えています。そうする標準的な方法はありますか?
scala - scalastyle sbt プラグインからフォルダーを除外する
このトピックに関して私が見つけた他のすべての質問はかなり古いものです。
sbt
プラグインを使用してscala プロジェクトを構築してscala-style
いますが、生成されたコードがある特定のフォルダーを除外する方法が見つかりません。
プラグインが特定のフォルダをチェックしないようにする方法はありますか?
現在、ファイルを手動で編集して追加しています:
// scalastyle:off
ファイルの上部にありますが、これは非常に面倒です。
公式ウェブサイトhttp://www.scalastyle.org/sbt.htmlでドキュメントを見つけることができませんでしたが、実際にはそこからパス/ファイルを除外できるようです。
実際に渡すことができるようです:
私のbuild.sbt
電話では:
でそれを達成する方法はありsbt plugin
ますか?