Add support for dart format fixer (#3764)

This commit is contained in:
ghsang
2021-07-16 16:20:47 +09:00
committed by GitHub
parent d8f4e8b708
commit d6dbb5398e
7 changed files with 97 additions and 0 deletions

View File

@@ -58,6 +58,37 @@ g:ale_dart_dartanalyzer_executable *g:ale_dart_dartanalyzer_executable*
This variable can be set to change the path to dartanalyzer.
===============================================================================
dart-format *ale-dart-format*
Installation
-------------------------------------------------------------------------------
Installing Dart should probably ensure that `dart` is in your `$PATH`.
In case it is not, try to set the executable option to its absolute path. : >
" Set the executable path for dart to the absolute path to it.
let g:ale_dart_format_executable = '/usr/lib/dart/bin/dart'
>
Options
-------------------------------------------------------------------------------
g:ale_dart_format_executable *g:ale_dart_format_executable*
*b:ale_dart_format_executable*
Type: |String|
Default: `'dart'`
This variable can be set to specify an absolute path to the
format executable (or to specify an alternate executable).
g:ale_dart_format_options *g:ale_dart_format_options*
*b:ale_dart_format_options*
Type: |String|
Default: `''`
This variable can be set to pass additional options to the dart format fixer.
===============================================================================
dartfmt *ale-dart-dartfmt*

View File

@@ -124,6 +124,7 @@ Notes:
* `dafny`!!
* Dart
* `analysis_server`
* `dart-format`!!
* `dartanalyzer`!!
* `dartfmt`!!
* `language_server`

View File

@@ -2699,6 +2699,7 @@ documented in additional help files.
dart....................................|ale-dart-options|
analysis_server.......................|ale-dart-analysis_server|
dartanalyzer..........................|ale-dart-dartanalyzer|
dart-format...........................|ale-dart-format|
dartfmt...............................|ale-dart-dartfmt|
desktop.................................|ale-desktop-options|
desktop-file-validate.................|ale-desktop-desktop-file-validate|