no-restated-comment
Flag a short comment attached to an HCL declaration when it only repeats that declaration's kind, label, or attribute name.
Why
A declaration-label comment adds no durable information and can drift; comments that explain constraints, grouping, or operational rationale remain useful.
Fix
Delete the restatement or replace it with the constraint the configuration cannot express. Improve an author-controlled label when the declaration itself is unclear.
Examples
# Set instance typeinstance_type = var.instance_type# Keep this type because the provider rejects ARM nodes.instance_type = var.instance_type/* Set instance type */instance_type = var.instance_type/* Code generated by schema compiler. * DO NOT EDIT. */# Set instance typeinstance_type = var.instance_type# Service accountservice_account_email = module.iam.api_email# Service accountsapi_service_account_email = module.iam.api_emailworker_service_account_email = module.iam.worker_email