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
These are perfectly valid Erlang expressions but are often the result of a typo or some confusion from the developers and they can easily be simplified to produce exactly the same output.
Avoid Duplicate Keys in Maps
Brief Description
The idea is to emit a warning in situations like the following ones (notice the duplication of keys everywhere):
Should be on by default?
YES
Reasoning
These are perfectly valid Erlang expressions but are often the result of a typo or some confusion from the developers and they can easily be simplified to produce exactly the same output.
Examples
Origin (#281)
Inspired by the
duplicate_key
rule from https://coffeelint.github.io/The text was updated successfully, but these errors were encountered: