Skip to content

Detect and warn on duplicate map keys#532

Open
alexjurkiewicz wants to merge 1 commit intohashicorp:mainfrom
alexjurkiewicz:detect-duplicate-keys
Open

Detect and warn on duplicate map keys#532
alexjurkiewicz wants to merge 1 commit intohashicorp:mainfrom
alexjurkiewicz:detect-duplicate-keys

Conversation

@alexjurkiewicz
Copy link

This PR is currently WIP. I want to get early feedback before continuing. Is this something the HCL maintainers would accept?

(I'm also stuck technically on how to implement the below points -- would love some advice 🙏.)

TODO:

  • Add tests - current tests use JSON input, which doesn't allow duplicate map keys. Create tests using HCL input to validate behaviour.
  • Add context to warning

@alexjurkiewicz
Copy link
Author

Related: #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant