summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDavid Houston <houstdav000@gmail.com>2021-11-09 02:53:44 -0500
committerGitHub <noreply@github.com>2021-11-09 16:53:44 +0900
commit8b3b16d71c4c683da6f3ca39662d207a3e894901 (patch)
treed221ad3ec518fcfff3c33bfe33e5e9ac5621271a /doc
parentf37cd1fd4fc17173a98649d8a0b2f37ce7ba61cf (diff)
downloadale-8b3b16d71c4c683da6f3ca39662d207a3e894901.zip
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>
Diffstat (limited to 'doc')
-rw-r--r--doc/ale-go.txt20
-rw-r--r--doc/ale-supported-languages-and-tools.txt1
-rw-r--r--doc/ale.txt1
3 files changed, 21 insertions, 1 deletions
diff --git a/doc/ale-go.txt b/doc/ale-go.txt
index 2f1e4c1c..3ed48576 100644
--- a/doc/ale-go.txt
+++ b/doc/ale-go.txt
@@ -81,6 +81,24 @@ g:ale_go_gofmt_options *g:ale_go_gofmt_options*
===============================================================================
+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*
`golangci-lint` is a `lint_file` linter, which only lints files that are
@@ -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)
===============================================================================
diff --git a/doc/ale-supported-languages-and-tools.txt b/doc/ale-supported-languages-and-tools.txt
index 36ef83ea..0e1da319 100644
--- a/doc/ale-supported-languages-and-tools.txt
+++ b/doc/ale-supported-languages-and-tools.txt
@@ -182,6 +182,7 @@ Notes:
* `go mod`!!
* `go vet`!!
* `gofmt`
+ * `gofumpt`
* `goimports`
* `golangci-lint`!!
* `golangserver`
diff --git a/doc/ale.txt b/doc/ale.txt
index 6cc81784..71da263a 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -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|