I'm finalizing my branch before PR for #26 and I noticed the linter works just fine on other kinds of enums. For example, the test case enum U {c=1<<1, b, a} has no special work required to sort. Is there a specific reason to only sort string enums? If not, I'd propose changing the rule to just enum instead of string-enum.
I figured something such as changing rule names should be part of a major version change, might as well lump it in with the same PR
I'm finalizing my branch before PR for #26 and I noticed the linter works just fine on other kinds of enums. For example, the test case
enum U {c=1<<1, b, a}
has no special work required to sort. Is there a specific reason to only sort string enums? If not, I'd propose changing the rule to justenum
instead ofstring-enum
.I figured something such as changing rule names should be part of a major version change, might as well lump it in with the same PR