google / google/vim-codefmt

Support passing `--srcdir` to goimports

Đang mở
#79 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Vim Script
Star
1.1k
Fork
102
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.