Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Because of how the validation engine works now 1, there's no reason to keep adding names to each rule. Instead, create a single rule that handles naming rules with a few other accessories. This change is not necessarily simple, but it shrinks the
Rule
interface, and it's more aligned with how the library works right now.Personally, I think this API is much more straightforward than the
setName()
method, as it's way more explicit about which rule we're naming. Because of this change, the behaviour changed slightly, but it's for the best.Because of this change, I managed to remove a lot of code, but unfortunately, it's quite a big-bang commit. It would be too complicated to make it atomic since names are an intrinsic part of the library.