diff --git a/src/.editorconfig b/src/.editorconfig index 3d4032c..8686800 100644 --- a/src/.editorconfig +++ b/src/.editorconfig @@ -19,3 +19,12 @@ dotnet_diagnostic.IDE0058.severity = silent # IDE0008: Use explicit type dotnet_diagnostic.IDE0008.severity = silent + +# IDE0046: Convert to conditional expression +dotnet_diagnostic.IDE0046.severity = none + +# IDE0011: Add braces +dotnet_diagnostic.IDE0011.severity = none + +# IDE0065: Misplaced using directive +dotnet_diagnostic.IDE0065.severity = none diff --git a/src/DataGridExtensions.sln.DotSettings b/src/DataGridExtensions.sln.DotSettings index bc98b63..bb9eb16 100644 --- a/src/DataGridExtensions.sln.DotSettings +++ b/src/DataGridExtensions.sln.DotSettings @@ -1,5 +1,53 @@  True + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW DO_NOT_SHOW DO_NOT_SHOW DO_NOT_SHOW diff --git a/src/DataGridExtensions/ColumnStyles.cs b/src/DataGridExtensions/ColumnStyles.cs index 2e48195..0541888 100644 --- a/src/DataGridExtensions/ColumnStyles.cs +++ b/src/DataGridExtensions/ColumnStyles.cs @@ -39,7 +39,6 @@ public static void SetDefaultColumnStyles(DataGrid dataGrid, DataGridColumnStyle public static readonly DependencyProperty DefaultColumnStylesProperty = DependencyProperty.RegisterAttached("DefaultColumnStyles", typeof(DataGridColumnStyleCollection), typeof(ColumnStyles), new FrameworkPropertyMetadata(null, DefaultColumnStyles_Changed)); - [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "AssignNullToNotNullAttribute")] private static void DefaultColumnStyles_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e) { var dataGrid = (DataGrid)d; @@ -56,8 +55,6 @@ private static void DefaultColumnStyles_Changed(DependencyObject d, DependencyPr dataGrid.Columns.CollectionChanged += (_, args) => Columns_CollectionChanged(styles, args); } - [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "AssignNullToNotNullAttribute")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "PossibleNullReferenceException")] private static void Columns_CollectionChanged(DataGridColumnStyleCollection styles, NotifyCollectionChangedEventArgs args) { if (args.Action != NotifyCollectionChangedAction.Add)