Add support for Packer (#4192)

* Add support for HashiCorp Packer

* Add test for packer fmt

* Add doc for HCL/Packer

* Add link to Packer doc

* Also suggest packer fix for packer ft

* Add more links to TOC
This commit is contained in:
Zhuoyun Wei
2022-05-16 05:15:52 -07:00
committed by GitHub
parent b611fde718
commit 429f5a1447
8 changed files with 94 additions and 0 deletions

View File

@@ -2,6 +2,11 @@
ALE HCL Integration *ale-hcl-options*
===============================================================================
packer-fmt *ale-hcl-packer-fmt*
See |ale-packer-fmt-fixer| for information about the available options.
===============================================================================
terraform-fmt *ale-hcl-terraform-fmt*

24
doc/ale-packer.txt Normal file
View File

@@ -0,0 +1,24 @@
===============================================================================
ALE Packer Integration *ale-packer-options*
===============================================================================
packer-fmt-fixer *ale-packer-fmt-fixer*
g:ale_packer_fmt_executable *g:ale_packer_fmt_executable*
*b:ale_packer_fmt_executable*
Type: |String|
Default: `'packer'`
This variable can be changed to use a different executable for packer.
g:ale_packer_fmt_options *g:ale_packer_fmt_options*
*b:ale_packer_fmt_options*
Type: |String|
Default: `''`
===============================================================================
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:

View File

@@ -239,6 +239,7 @@ Notes:
* `stack-ghc`
* `stylish-haskell`
* HCL
* `packer-fmt`
* `terraform-fmt`
* HTML
* `VSCode HTML language server`
@@ -392,6 +393,8 @@ Notes:
* `ibm_validator`
* `prettier`
* `yamllint`
* Packer
* `packer-fmt-fixer`
* Pascal
* `ptop`
* Pawn

View File

@@ -2911,6 +2911,7 @@ documented in additional help files.
hie...................................|ale-haskell-hie|
ormolu................................|ale-haskell-ormolu|
hcl.....................................|ale-hcl-options|
packer-fmt............................|ale-hcl-packer-fmt|
terraform-fmt.........................|ale-hcl-terraform-fmt|
help....................................|ale-help-options|
cspell................................|ale-help-cspell|
@@ -3041,6 +3042,8 @@ documented in additional help files.
ibm_validator.........................|ale-openapi-ibm-validator|
prettier..............................|ale-openapi-prettier|
yamllint..............................|ale-openapi-yamllint|
packer..................................|ale-packer-options|
packer-fmt-fixer......................|ale-packer-fmt-fixer|
pascal..................................|ale-pascal-options|
ptop..................................|ale-pascal-ptop|
pawn....................................|ale-pawn-options|