diffplug / diffplug/spotless

Support author name in LicenseHeaderStep

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

説明

Some license texts include the name of the file's initial creator. This is currently not possible to do with the `LicenseHeaderStep`.
Maybe the step could should work with templates rather than constant strings, e,g,
```groovy
licenseHeader('/* Copyright ${year} ${author}*/',
[year: java.time.LocalDate.now().year, author: 'John Doe'])
```

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

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

調査の方向性

LicenseHeaderStep エントリーポイントから開始し、licenseHeader が現在どのように定数文字列を受け取っているかを追跡します。提案された年と著者の値をどのように渡すべきかを定義し、例を使って期待されるレンダリング後のヘッダーを特定します。完了には、テンプレート置換を集中的にカバーすることが必要です。

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

評価

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

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

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