Formats Terraform HCL the way terraform fmt does — two-space nesting, = aligned within each run of attributes, single blank lines, no trailing whitespace — while leaving strings, ${} interpolations, heredocs and comments untouched, and checks the structure: unbalanced brackets, unterminated strings, heredocs and block comments, and stray tokens at the top level, each with a line number. The summary format lists blocks and counts (resources, variables, modules, …). Nothing is initialised, planned or applied.
no: still format and list the problems as comments.