From 48fab99a0ab793e1b9607795c21659f12bd6947f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Gagn=C3=A9?= Date: Sun, 28 Feb 2021 08:31:44 -0500 Subject: Add support for `erlfmt` fixer (#3602) * Add support for `erlfmt` * Add missing entry to table of contents * Fix warnings * Add missing tools to supported tools --- doc/ale-erlang.txt | 20 ++++++++++++++++++++ doc/ale-supported-languages-and-tools.txt | 2 ++ doc/ale.txt | 1 + 3 files changed, 23 insertions(+) (limited to 'doc') diff --git a/doc/ale-erlang.txt b/doc/ale-erlang.txt index 93ac7915..ede179d1 100644 --- a/doc/ale-erlang.txt +++ b/doc/ale-erlang.txt @@ -71,6 +71,26 @@ g:ale_erlang_erlc_options *g:ale_erlang_erlc_options* or `-pa`. +------------------------------------------------------------------------------- +erlfmt *ale-erlang-erlfmt* + +g:ale_erlang_erlfmt_executable *g:ale_erlang_erlfmt_executable* + *b:ale_erlang_erlfmt_executable* + Type: |String| + Default: `'erlfmt'` + + This variable can be changed to specify the erlfmt executable. + + +g:ale_erlang_erlfmt_options *g:ale_erlang_erlfmt_options* + *b:ale_erlang_erlfmt_options* + Type: |String| + Default: `''` + + This variable controls additional parameters passed to `erlfmt`, such as + `--insert-pragma` or `--print-width`. + + ------------------------------------------------------------------------------- syntaxerl *ale-erlang-syntaxerl* diff --git a/doc/ale-supported-languages-and-tools.txt b/doc/ale-supported-languages-and-tools.txt index cb90de4c..e6764144 100644 --- a/doc/ale-supported-languages-and-tools.txt +++ b/doc/ale-supported-languages-and-tools.txt @@ -150,8 +150,10 @@ Notes: * `ruumba` * Erlang * `SyntaxErl` + * `dialyzer` * `elvis`!! * `erlc` + * `erlfmt` * Fish * `fish` (-n flag) * `fish_indent` diff --git a/doc/ale.txt b/doc/ale.txt index 113e29c5..1f7dbe76 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -2697,6 +2697,7 @@ documented in additional help files. dialyzer..............................|ale-erlang-dialyzer| elvis.................................|ale-erlang-elvis| erlc..................................|ale-erlang-erlc| + erlfmt................................|ale-erlang-erlfmt| syntaxerl.............................|ale-erlang-syntaxerl| eruby...................................|ale-eruby-options| ruumba................................|ale-eruby-ruumba| -- cgit v1.2.3