diffplug / diffplug/spotless

Avoid check of the ratchetFrom branch when Spotless not invoked

オープン
#1,902 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Java
スター
5.6k
フォーク
559
平均マージ
1日 14時間
マージ済み PR(30日)
43

説明

Currently, Spotless (Gradle Plugin) performs a check for the presence of the ratchetFrom branch on every command execution. This includes instances where Spotless-specific commands aren't called, which can lead to unnecessary checks, and adds the workaround (e.g. git fetch depth:0) for all cases.

Could we refine the ratchetFrom functionality so that it checks for branch presence only when a Spotless command is actually invoked?

I believe this adjustment could be beneficial for users who integrate Spotless into their development workflows, ensuring that the tool remains as efficient and unobtrusive as possible.

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

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

調査の方向性

まず、Spotless Gradle Plugin における ratchetFrom の処理と、Spotless 固有のコマンドがどのように呼び出されるかを追跡します。Spotless コマンドの実行時にのみブランチの存在チェックが行われ、通常の Gradle コマンドではそのチェックと、それによって生じる fetch-depth の回避策が行われないことを確認します。

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

評価

技術スタック
java
領域
build-system
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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