Fix S2094 FP: Allow empty queries
Closed this issue · 3 comments
fraserkyle commented
Description
It is not an uncommon pattern to have Query
s with absolutely no members in it when using CQRS design pattern.
In such cases, rule S2094 raises.
Repro steps
Consider the following class, which is a totally valid Query
.
public class GetAllUsersQuery {}
Expected behavior
I would expect rule S2094 not to raise on such classes.
I would suggest ignoring classes that have known Query
suffix
fraserkyle commented
Expands #9063
Tim-Pohlmann commented
Hi @fraserkyle, thanks for the report!
I confirm this as an FP.
Tim-Pohlmann commented
This will require an RSPEC update.