You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the common issues users face is that they end up with duplicate blocks. This can be a result of copy pasting or just complex module with many files that make it difficult to keep track of all blocks.
This concerns blocks which are addressable and need to be unique within the module "namespace":
check
data
locals
module
output
resource
variable
Proposal
Report duplicate check "<name>" as error
Report duplicate data ... "<name>" as error
Report duplicate locals entries as error
Report duplicate module ""` as error
Report duplicate output "<name>" as error
Report duplicate resource ... "<name>" as error
Report duplicate variable "<name>" as error
Provide quickfix code action to remove duplicate check "<name>"
Provide quickfix code action to remove duplicate data ... "<name>"
Provide quickfix code action to remove duplicate locals entries
Provide quickfix code action to remove duplicate module ""`
Provide quickfix code action to remove duplicate output "<name>"
Provide quickfix code action to remove duplicate resource ... "<name>"
Provide quickfix code action to remove duplicate variable "<name>"
Notes
We already track similar enhancement for tfvars entries:
Background
One of the common issues users face is that they end up with duplicate blocks. This can be a result of copy pasting or just complex module with many files that make it difficult to keep track of all blocks.
This concerns blocks which are addressable and need to be unique within the module "namespace":
check
data
locals
module
output
resource
variable
Proposal
check "<name>"
as errordata ... "<name>"
as errorlocals
entries as errormodule
""` as erroroutput "<name>"
as errorresource ... "<name>"
as errorvariable "<name>"
as errorcheck "<name>"
data ... "<name>"
locals
entriesmodule
""`output "<name>"
resource ... "<name>"
variable "<name>"
Notes
We already track similar enhancement for tfvars entries:
The text was updated successfully, but these errors were encountered: