Skip to content

Conversation

@hugop95
Copy link
Contributor

@hugop95 hugop95 commented Oct 9, 2024

Continuation of #232 to solve #214.

Description

Groups that are not part of predefined groups nor entered as custom groups have no reason to exist in the groups attribute. sort-classes was the only remaining rule not to have this feature, because predefined groups are computed differently.

  • Makes sort-classes throw an error if a group entered in groups is not a predefined nor custom custom.
  • For all rules, also checks that no group is entered more than once in groups.

Screenshot 2024-10-09 at 08 27 13

What is the purpose of this pull request?

  • New Feature

@hugop95 hugop95 changed the title feat(sort-classes): Throw an error when a group entered in config does not exist feat(sort-classes): Throw an error when a group entered in config does not exist/is duplicated Oct 9, 2024
@azat-io azat-io merged commit d447ffb into azat-io:main Oct 9, 2024
@hugop95 hugop95 deleted the feat/sort-classes/group-validation branch October 9, 2024 20:30
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.

2 participants