google / google/vim-codefmt

Support passing `--srcdir` to goimports

オープン
#79 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Vim Script
スター
1.1k
フォーク
102
PR マージ指標
30日以内にマージされた PR はありません

説明

When using goimports via our gofmt formatter as [suggested in the docs](https://github.com/google/vim-codefmt/blob/1025977/doc/codefmt.txt#L42), the goimports path-based inference doesn't work because we don't tell goimports about the path. It does support a `--srcdir` argument we could pass.

We'd have to make it conditional and detect `basename(gofmt_executable) == 'goimports'` or something like that because gofmt doesn't support any `--srcdir` arg.

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

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

評価

この issue はまだ評価されていません。

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

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