Support using tabs for indentation (--use-tabs flag)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Review the API support added in #1320 and the existing --max-line-length CLI option as starting points. Determine how a --use-tabs flag should connect to the formatter’s tab configuration, then verify that CLI formatting uses tab-based indentation while preserving the project’s opinionated formatting behavior.
索引モデルが issue の本文から書いたものです。
説明
Support for configuring tabs was added to the API in #1320, but there is not currently a CLI flag for it.
In general google-java-format remains committed to being an opinionated, low-configuration formatter (https://github.com/google/google-java-format/issues/425#issuecomment-5928605364). Line lengths and tabs are in a different category than configuration for core formatting layout decisions. Other opinionated formatters also support configuring line lengths and tabs.
The bug for line lengths (#425) reviewed more votes, there have been fewer requests for tabs. There's some evidence tabs are not as widely used as spaces in the Java ecosystem.
Another potential different from --max-line-length is that it's possible to convert spaces to tabs by post-processing the formatter output, i.e.
google-java-format - | unexpand -t 2
Adding a --use-tabs flag is currently unplanned, this bug tracks demand for it. If you would like to use google-java-format but its lack of support for tab-based indents is prevent you from doing that, please 'thumbs up' the bug or leave a comment.
- 主要言語
- Java
- スター
- 6.2k
- フォーク
- 940
- 平均マージ
- 7時間 46分
- マージ済み PR(30日)
- 11
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/google-java-format のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
google/google-java-format#1094 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
IndexOutOfBoundsException - Wrong formatted content when dealing with latex String再び着手できるかも @Amlan2000 が 60 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
google/google-java-format#1439 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
unused import removal leaves extra blank line between package declaration and class Javadoc / declaration対応中かも @arimu1 が 69 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
google/google-java-format#1436 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Eclipse
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
google/google-java-format#1428 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
Eclipse
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
google/google-java-format#1417 ·
メンテナーはふだん 1 日以内に返信
google/google-java-format の issue をすべて見る
似ている issue
-
`timer` rule rejects dates the engine accepts対応中かも @MFA-G が今日担当しました。 オープンbug ready
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
camunda/bpmnlint-plugin-camunda-compat#281 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
status: waiting-for-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
AOT compilation fails for derived delete queries returning Set対応中かも @ryujungkyun が今日担当しました。 オープンstatus: waiting-for-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
spring-projects/spring-data-jpa#4387 ·
メンテナーはふだん 3 日以内に返信