Is your feature request related to a problem? Please describe.
Currently, there is no report of repeated keys
e.g.
{
a.b = true;
a.c = true;
a = { d = true; };
a = {
e.f = true;
e.g = true;
};
}
Which, grouped, would be
{
a = {
b = true;
c = true;
d = true;
e = {
f = true;
g = true;
};
};
}
Describe the solution you'd like
Raising a report for repeated keys
Taking in its scope only the selection, or otherwise the current file / module
The linked code action fix for it would be #831
Describe alternatives you've considered
statix
statix list
"W20 repeated_keys"
Additional context
- Linked : Code Action - Attribute Grouping
- Related : Code Action - Attribute Packing
- Implementation
- Testing
- Feature Request
Is your feature request related to a problem? Please describe.
Currently, there is no report of repeated keys
e.g.
Which, grouped, would be
Describe the solution you'd like
Raising a report for repeated keys
Taking in its scope only the selection, or otherwise the current file / module
The linked code action fix for it would be #831
Describe alternatives you've considered
statix
statix list"W20 repeated_keys"
Additional context