diff --git a/.editorconfig b/.editorconfig index db7d37e9..e0ccbdce 100644 --- a/.editorconfig +++ b/.editorconfig @@ -190,7 +190,7 @@ dotnet_diagnostic.CA1000.severity = none # Do not declare static members on gene dotnet_diagnostic.CA1001.severity = error # Types that own disposable fields should be disposable dotnet_diagnostic.CA1002.severity = none # Do not expose generic lists — we deliberately expose List; interface-based collections are an older convention we don't follow dotnet_diagnostic.CA1003.severity = error # Use generic event handler instances -dotnet_diagnostic.CA1005.severity = error # Avoid excessive parameters on generic types +dotnet_diagnostic.CA1005.severity = none # Avoid excessive parameters on generic types - stateful maps, multi-value handles and self-typed aggregators need the extra type parameters; collapsing them costs tuples or boxing dotnet_diagnostic.CA1008.severity = error # Enums should have zero value dotnet_diagnostic.CA1010.severity = none # Collections should implement generic interface — we deliberately expose concrete collection types; interface-based collections are an older convention we don't follow dotnet_diagnostic.CA1012.severity = error # Abstract types should not have public constructors @@ -213,7 +213,7 @@ dotnet_diagnostic.CA1040.severity = error # Avoid empty interfaces dotnet_diagnostic.CA1041.severity = error # Provide ObsoleteAttribute message dotnet_diagnostic.CA1043.severity = error # Use integral or string argument for indexers dotnet_diagnostic.CA1044.severity = error # Properties should not be write only -dotnet_diagnostic.CA1045.severity = error # Do not pass types by reference +dotnet_diagnostic.CA1045.severity = none # Do not pass types by reference - passing mutable structs by ref is the zero-allocation idiom for delivery gates and sink helpers dotnet_diagnostic.CA1046.severity = error # Do not overload operator equals on reference types dotnet_diagnostic.CA1047.severity = error # Do not declare protected member in sealed type dotnet_diagnostic.CA1048.severity = error # Do not declare virtual members in sealed types @@ -289,6 +289,7 @@ dotnet_diagnostic.CA1819.severity = none # Properties should not return arrays dotnet_diagnostic.CA1820.severity = error # Test for empty strings using string length dotnet_diagnostic.CA1821.severity = error # Remove empty finalizers dotnet_diagnostic.CA1822.severity = error # Mark members as static +dotnet_code_quality.CA1822.api_surface = private, internal # Mark members as static applies to private and internal members only; making a public member static breaks callers dotnet_diagnostic.CA1823.severity = error # Avoid unused private fields dotnet_diagnostic.CA1824.severity = error # Mark assemblies with NeutralResourcesLanguageAttribute dotnet_diagnostic.CA1825.severity = error # Avoid zero-length array allocations diff --git a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16}.cs b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16}.cs index bcc5126c..f10fbfc0 100644 --- a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16}.cs +++ b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16}.cs @@ -42,10 +42,6 @@ namespace ReactiveUI.Binding; /// The value of the fifteenth observed property. /// The value of the sixteenth observed property. [DebuggerDisplay("PropertyValues: {Property1}, {Property2}, +14 more")] -[SuppressMessage( - "Design", - "CA1005:Avoid excessive parameters on generic types", - Justification = "One arity-expanded emission per observed-property count; the type parameters are the observed properties.")] public readonly record struct PropertyValues( T1 Property1, T2 Property2, diff --git a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15}.cs b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15}.cs index 46d985ef..41e898c1 100644 --- a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15}.cs +++ b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15}.cs @@ -40,10 +40,6 @@ namespace ReactiveUI.Binding; /// The value of the fourteenth observed property. /// The value of the fifteenth observed property. [DebuggerDisplay("PropertyValues: {Property1}, {Property2}, +13 more")] -[SuppressMessage( - "Design", - "CA1005:Avoid excessive parameters on generic types", - Justification = "One arity-expanded emission per observed-property count; the type parameters are the observed properties.")] public readonly record struct PropertyValues( T1 Property1, T2 Property2, diff --git a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14}.cs b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14}.cs index 67eebdcc..73c8840c 100644 --- a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14}.cs +++ b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14}.cs @@ -38,10 +38,6 @@ namespace ReactiveUI.Binding; /// The value of the thirteenth observed property. /// The value of the fourteenth observed property. [DebuggerDisplay("PropertyValues: {Property1}, {Property2}, +12 more")] -[SuppressMessage( - "Design", - "CA1005:Avoid excessive parameters on generic types", - Justification = "One arity-expanded emission per observed-property count; the type parameters are the observed properties.")] public readonly record struct PropertyValues( T1 Property1, T2 Property2, diff --git a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13}.cs b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13}.cs index d69739c6..bd041c90 100644 --- a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13}.cs +++ b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13}.cs @@ -36,10 +36,6 @@ namespace ReactiveUI.Binding; /// The value of the twelfth observed property. /// The value of the thirteenth observed property. [DebuggerDisplay("PropertyValues: {Property1}, {Property2}, +11 more")] -[SuppressMessage( - "Design", - "CA1005:Avoid excessive parameters on generic types", - Justification = "One arity-expanded emission per observed-property count; the type parameters are the observed properties.")] public readonly record struct PropertyValues( T1 Property1, T2 Property2, diff --git a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12}.cs b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12}.cs index 8f68ca2d..ba4a1bd9 100644 --- a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12}.cs +++ b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12}.cs @@ -34,10 +34,6 @@ namespace ReactiveUI.Binding; /// The value of the eleventh observed property. /// The value of the twelfth observed property. [DebuggerDisplay("PropertyValues: {Property1}, {Property2}, +10 more")] -[SuppressMessage( - "Design", - "CA1005:Avoid excessive parameters on generic types", - Justification = "One arity-expanded emission per observed-property count; the type parameters are the observed properties.")] public readonly record struct PropertyValues( T1 Property1, T2 Property2, diff --git a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11}.cs b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11}.cs index 615dcd43..2691579a 100644 --- a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11}.cs +++ b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11}.cs @@ -32,10 +32,6 @@ namespace ReactiveUI.Binding; /// The value of the tenth observed property. /// The value of the eleventh observed property. [DebuggerDisplay("PropertyValues: {Property1}, {Property2}, +9 more")] -[SuppressMessage( - "Design", - "CA1005:Avoid excessive parameters on generic types", - Justification = "One arity-expanded emission per observed-property count; the type parameters are the observed properties.")] public readonly record struct PropertyValues( T1 Property1, T2 Property2, diff --git a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10}.cs b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10}.cs index 0bb634c2..066a724f 100644 --- a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10}.cs +++ b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10}.cs @@ -30,10 +30,6 @@ namespace ReactiveUI.Binding; /// The value of the ninth observed property. /// The value of the tenth observed property. [DebuggerDisplay("PropertyValues: {Property1}, {Property2}, +8 more")] -[SuppressMessage( - "Design", - "CA1005:Avoid excessive parameters on generic types", - Justification = "One arity-expanded emission per observed-property count; the type parameters are the observed properties.")] public readonly record struct PropertyValues( T1 Property1, T2 Property2, diff --git a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9}.cs b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9}.cs index ae7cf7cd..4abf2f21 100644 --- a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9}.cs +++ b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8, T9}.cs @@ -28,10 +28,6 @@ namespace ReactiveUI.Binding; /// The value of the eighth observed property. /// The value of the ninth observed property. [DebuggerDisplay("PropertyValues: {Property1}, {Property2}, +7 more")] -[SuppressMessage( - "Design", - "CA1005:Avoid excessive parameters on generic types", - Justification = "One arity-expanded emission per observed-property count; the type parameters are the observed properties.")] public readonly record struct PropertyValues( T1 Property1, T2 Property2, diff --git a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8}.cs b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8}.cs index e6862ad9..e4a951de 100644 --- a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8}.cs +++ b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7, T8}.cs @@ -26,10 +26,6 @@ namespace ReactiveUI.Binding; /// The value of the seventh observed property. /// The value of the eighth observed property. [DebuggerDisplay("PropertyValues: {Property1}, {Property2}, +6 more")] -[SuppressMessage( - "Design", - "CA1005:Avoid excessive parameters on generic types", - Justification = "One arity-expanded emission per observed-property count; the type parameters are the observed properties.")] public readonly record struct PropertyValues( T1 Property1, T2 Property2, diff --git a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7}.cs b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7}.cs index 57b84384..dfa06c93 100644 --- a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7}.cs +++ b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6, T7}.cs @@ -24,10 +24,6 @@ namespace ReactiveUI.Binding; /// The value of the sixth observed property. /// The value of the seventh observed property. [DebuggerDisplay("PropertyValues: {Property1}, {Property2}, +5 more")] -[SuppressMessage( - "Design", - "CA1005:Avoid excessive parameters on generic types", - Justification = "One arity-expanded emission per observed-property count; the type parameters are the observed properties.")] public readonly record struct PropertyValues( T1 Property1, T2 Property2, diff --git a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6}.cs b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6}.cs index 5bb9d25f..e2aa504c 100644 --- a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6}.cs +++ b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5, T6}.cs @@ -22,10 +22,6 @@ namespace ReactiveUI.Binding; /// The value of the fifth observed property. /// The value of the sixth observed property. [DebuggerDisplay("PropertyValues: {Property1}, {Property2}, +4 more")] -[SuppressMessage( - "Design", - "CA1005:Avoid excessive parameters on generic types", - Justification = "One arity-expanded emission per observed-property count; the type parameters are the observed properties.")] public readonly record struct PropertyValues( T1 Property1, T2 Property2, diff --git a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5}.cs b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5}.cs index e969729c..6c1f5cdc 100644 --- a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5}.cs +++ b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4, T5}.cs @@ -20,10 +20,6 @@ namespace ReactiveUI.Binding; /// The value of the fourth observed property. /// The value of the fifth observed property. [DebuggerDisplay("PropertyValues: {Property1}, {Property2}, +3 more")] -[SuppressMessage( - "Design", - "CA1005:Avoid excessive parameters on generic types", - Justification = "One arity-expanded emission per observed-property count; the type parameters are the observed properties.")] public readonly record struct PropertyValues( T1 Property1, T2 Property2, diff --git a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4}.cs b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4}.cs index ba3adbb3..b57f0642 100644 --- a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4}.cs +++ b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3, T4}.cs @@ -18,10 +18,6 @@ namespace ReactiveUI.Binding; /// The value of the third observed property. /// The value of the fourth observed property. [DebuggerDisplay("PropertyValues: {Property1}, {Property2}, +2 more")] -[SuppressMessage( - "Design", - "CA1005:Avoid excessive parameters on generic types", - Justification = "One arity-expanded emission per observed-property count; the type parameters are the observed properties.")] public readonly record struct PropertyValues( T1 Property1, T2 Property2, diff --git a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3}.cs b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3}.cs index efe75b37..73ff3212 100644 --- a/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3}.cs +++ b/src/ReactiveUI.Binding.Shared/Observables/Values/PropertyValues{T1, T2, T3}.cs @@ -16,10 +16,6 @@ namespace ReactiveUI.Binding; /// The value of the second observed property. /// The value of the third observed property. [DebuggerDisplay("PropertyValues: {Property1}, {Property2}, +1 more")] -[SuppressMessage( - "Design", - "CA1005:Avoid excessive parameters on generic types", - Justification = "One arity-expanded emission per observed-property count; the type parameters are the observed properties.")] public readonly record struct PropertyValues( T1 Property1, T2 Property2,