mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-08 19:01:06 +08:00
Implement gofumpt Fixer (#3968)
* Implement gofumpt Fixer Add an implementation with test and documentation for the gofumpt go code formatter, a stricter formatter than your standard "go fmt". Signed-off-by: David Houston <houstdav000@gmail.com> * Add gofumpt to ale.txt TOC Forgot to add gofumpt to the ALE vim help Table of Contents, so do so. Signed-off-by: David Houston <houstdav000@gmail.com> * Fix Test Setup Method Capitalization I had put "Setup" instead of "SetUp" for "ale#assert#SetUpFixerTests". Fix such. Signed-off-by: David Houston <houstdav000@gmail.com> * Fix typos Add a missing space, remove an extra bracket by actually running tests locally first. Would've been smart to do that from the beginning... Signed-off-by: David Houston <houstdav000@gmail.com>
This commit is contained in:
@@ -80,6 +80,24 @@ g:ale_go_gofmt_options *g:ale_go_gofmt_options*
|
||||
This variable can be set to pass additional options to the gofmt fixer.
|
||||
|
||||
|
||||
===============================================================================
|
||||
gofumpt *ale-go-gofumpt*
|
||||
|
||||
g:ale_go_gofumpt_executable *g:ale_go_gofumpt_executable*
|
||||
*b:ale_go_gofumpt_executable*
|
||||
Type: |String|
|
||||
Default: `'gofumpt'`
|
||||
|
||||
Executable to run to use as the gofumpt fixer.
|
||||
|
||||
g:ale_go_gofumpt_options *g:ale_go_gofumpt_options*
|
||||
*b:ale_go_gofumpt_options*
|
||||
Type: |String|
|
||||
Default: `''`
|
||||
|
||||
Options to pass to the gofumpt fixer.
|
||||
|
||||
|
||||
===============================================================================
|
||||
golangci-lint *ale-go-golangci-lint*
|
||||
|
||||
@@ -148,7 +166,7 @@ g:ale_go_golines_options *g:ale_go_golines_options*
|
||||
Type: |String|
|
||||
Default: ''
|
||||
|
||||
Additional options passed to the golines command. By default golines has
|
||||
Additional options passed to the golines command. By default golines has
|
||||
--max-length=100 (lines above 100 characters will be wrapped)
|
||||
|
||||
===============================================================================
|
||||
|
||||
@@ -182,6 +182,7 @@ Notes:
|
||||
* `go mod`!!
|
||||
* `go vet`!!
|
||||
* `gofmt`
|
||||
* `gofumpt`
|
||||
* `goimports`
|
||||
* `golangci-lint`!!
|
||||
* `golangserver`
|
||||
|
||||
@@ -2748,6 +2748,7 @@ documented in additional help files.
|
||||
bingo.................................|ale-go-bingo|
|
||||
gobuild...............................|ale-go-gobuild|
|
||||
gofmt.................................|ale-go-gofmt|
|
||||
gofumpt...............................|ale-go-gofumpt|
|
||||
golangci-lint.........................|ale-go-golangci-lint|
|
||||
golangserver..........................|ale-go-golangserver|
|
||||
golines...............................|ale-go-golines|
|
||||
|
||||
Reference in New Issue
Block a user