terraform/outputs_tf.grept.hcl (9 lines of code) (raw):
rule "must_be_true" "output_tf_should_not_exist" {
condition = !fileexists("output.tf")
error_message = "file name should be `outputs.tf` rather than `output.tf`."
}
fix "rename_file" "output_tf_to_outputs_tf" {
rule_ids = [rule.must_be_true.output_tf_should_not_exist.id]
old_name = "output.tf"
new_name = "outputs.tf"
}