Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

spotless-maven-plugin: Allow to overwrite the recommended goal/phase for applying the formatting

オープン
#1,988 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
java

調査の方向性

plugin-maven/src/main/java/com/diffplug/spotless/maven/SpotlessCheckMojo.java の 83 行目付近から始めます。ここでは runToFix メッセージがハードコードされています。Maven mojo のパラメーターを追跡し、現在のデフォルト値を維持したまま runToFix を上書きできることを確認してください。設定された実行またはビルドコマンドがガイダンスに反映されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement

In https://github.com/diffplug/spotless/blob/657926464aae27dee2c83c5b28ac6b7e52f2229a/plugin-maven/src/main/java/com/diffplug/spotless/maven/SpotlessCheckMojo.java#L83 the message Run 'mvn spotless:apply' to fix these violations. is hard-coded. In some complex setups the configuration for the apply goal only is different than applying it in the context of a regular build. Therefore it should be possible to overwrite the runToFix argument with a mojo parameter (but the default should obviously stay as is). That way you can run e.g. with a particular execution id or a full Maven build up to a certain phase (most probably with a dedicated profile or property parameter) to enable the reformatting.

主要言語
Java
スター
5.7k
フォーク
560
平均マージ
1日 13時間
マージ済み PR(30日)
43

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

diffplug/spotless のほかの issue

diffplug/spotless の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。