SE: Move CollectionConstraint
from S4158 to the engine
#7866
Labels
Area: C#
C# rules related issues.
Area: CFG/SE
CFG and SE related issues.
Area: VB.NET
VB.NET rules related issues.
Milestone
CollectionConstraint
is a local constraint of S4158. We do learnNumberConstraints
fromlist.Count
iflist
has aCollectionConstraint
. This has beneficial effects on other rules. TheCollectionConstraint
logic should be moved to the engine itself and the rule should only check for the constraint's presence. This will make sure,CollectionConstraints
can can be learned even if S4158 is deactivated.The text was updated successfully, but these errors were encountered: