terraform fmt

0.0% Savings
0 Commands
0 Tokens saved
2 Tests

Install

tokf install 1ffe53746199e367e03cfd058706bbc346fab153bda8bd48914b781c20a945af
Safety checks passed

Filter definition

command = "terraform fmt"

strip_empty_lines = true

[on_success]
output = "✓ formatted"

[on_failure]
tail = 10

Examples

failure shows error output ~30 tokens → ~29 tokens (3% saved)
Raw output
Error: Invalid expression

  on main.tf line 5:
  5:   name = var.name {

An argument definition must end with a newline.
Filtered output
Error: Invalid expression
  on main.tf line 5:
  5:   name = var.name {
An argument definition must end with a newline.
success shows formatted message ~5 tokens → ~3 tokens (40% saved)
Raw output
main.tf
variables.tf
Filtered output
✓ formatted
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters