Skip to content

HCL2 formatter, extracted from Terraform itself. This is the same code that powers `terraform fmt`.

License

Notifications You must be signed in to change notification settings

northwood-labs/hcl-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HCL2 Formatter

Overview

This is the code that facilitates terraform fmt, and was extracted from the Terraform project at c94a6102. Only minor changes have been applied to turn this into a standalone, importable library for those of us who work with HCL outside of Terraform.

I don't expect this code to change very much, so don't freak out if there haven't been commits in years (it's not abandoned, it's just complete). It should very much still work for standard HCL2 formatting.

Contributing

If you want to see changes, contribute upstream to the Terraform project. I'll occasionally review any changes between upstream and this project and merge them in.

License and Authorship

Authorship by the Terraform Contributors. The contents of this file are licensed under the terms of the Mozilla Public License 2.0.