Mechanism for passing arbitrary extra config to formatters
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- vim
- 領域
- tooling
調査の方向性
この issue では、プロジェクトローカルな設定ソースの候補として .clang-format と .editorconfig を挙げ、例として js-beautify の --type と --aosp を示している。まず、formatter 固有のオプションが現在どのように選択されているかを整理する。完了の定義は、競合する defaults と意図しない伝播を避ける、formatter ごと・パスごとに決定された仕組みがあることとする。
索引モデルが issue の本文から書いたものです。
説明
Lots of formatters have extra config users may want to pass, and creating a top-level flag for each one will get cumbersome. We should consider a generic mechanism for passing flags through to formatters.
Factors to consider:
- These should be attached to the fine-grained formatter name, not the language, because we don't want to accidentally pass them to a different formatter that doesn't support them when the user switches formatter.
- Some might conflict with default flags. For instance, a user might want to pass
--typeto js-beautify and find that it conflicts with the--typeflag we already pass by default. - Most config would be per-path rather than global preferences. For instance, a user will want to configure an
--aospflag when working on Android Java, but then be surprised if it's applied to other Java code they're working on later. - If possible, these config options should live in some project-local config file like
.clang-formator.editorconfig, not something codefmt-specific, and codefmt should just try to be smart about detecting and not conflicting with such config where appropriate.
- 主要言語
- Vim Script
- スター
- 1.1k
- フォーク
- 102
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/vim-codefmt のほかの issue
-
Write a codefmt FAQ オープンenhancement
難易度 1/5 1〜3時間 初心者へのやさしさ 68/100
google/vim-codefmt#53 ·
-
Add meson format オープンnew formatter
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
google/vim-codefmt#243 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
google/vim-codefmt#240 · コメント 1 件 ·
-
Add `:CodefmtInfo` command to report diagnostics to help users check config / diagnose problems オープンenhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
google/vim-codefmt#234 · コメント 2 件 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 45/100
google/vim-codefmt#222 · コメント 3 件 ·
google/vim-codefmt の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
vercel-labs/just-bash#464 ·
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Automattic/safe-publish#594 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
bug feat:crypto feat:utils
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100