-
Notifications
You must be signed in to change notification settings - Fork 237
Closed
Labels
False PositiveRule IS triggered when it shouldn't be.Rule IS triggered when it shouldn't be.
Milestone
Description
Description
S3604 is reported for classes with primary constructors.
Repro steps
class SampleClass(object options)
{
private readonly object _options = options; // Noncompliant - FP: S3604 shouldn't be reported here, this is not a redundant initializer
}Expected behavior
S3064 should not be raised.
Actual behavior
S3064 raises a warning.
Known workarounds
N/A
Related information
- C#/VB.NET Plugins version: 9.5.0.73987
- Visual Studio version: latest preview
- MSBuild / dotnet version: .NET 8 preview 6
smokedlinq, bitbound, OpenEnergyGroup, rcdailey, FelixDamrau and 12 more
Metadata
Metadata
Assignees
Labels
False PositiveRule IS triggered when it shouldn't be.Rule IS triggered when it shouldn't be.