Fix S2094 FP: Allow empty queries #9241
Labels
Area: C#
C# rules related issues.
Area: VB.NET
VB.NET rules related issues.
Type: False Positive
Rule IS triggered when it shouldn't be.
Milestone
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
.Expected behavior
I would expect rule S2094 not to raise on such classes.
I would suggest ignoring classes that have known
Query
suffixThe text was updated successfully, but these errors were encountered: