Skip to content

Commit

Permalink
ImplicitUsings (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Oct 19, 2024
1 parent 9d0e33f commit 094ee08
Show file tree
Hide file tree
Showing 59 changed files with 1 addition and 100 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Serilog.Exceptions.Benchmark;

using System;
using System.Runtime.Serialization;

[Serializable]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Benchmark;

using System;
using System.Collections.Generic;
using Serilog.Exceptions.Core;
using Serilog.Exceptions.Destructurers;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Benchmark;

using System;
using System.Collections.Generic;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Jobs;
using Serilog.Exceptions.Destructurers;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Benchmark;

using System;
using System.Collections.Generic;
using Serilog.Exceptions.Core;
using Serilog.Exceptions.Filters;

Expand Down
1 change: 1 addition & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<AnalysisLevel>latest</AnalysisLevel>
<NeutralLanguage>en-GB</NeutralLanguage>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<!-- TODO: re enable TreatWarningsAsErrors once warnings are fixed -->
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
namespace Serilog.Exceptions.EntityFrameworkCore.Destructurers;

using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using Serilog.Exceptions.Core;
using Serilog.Exceptions.Destructurers;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Runtime.CompilerServices;

[assembly: CLSCompliant(true)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Grpc.Destructurers;

using System;
using System.Collections.Generic;
using global::Grpc.Core;
using Serilog.Exceptions.Core;
using Serilog.Exceptions.Destructurers;
Expand Down
2 changes: 0 additions & 2 deletions Source/Serilog.Exceptions.Grpc/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
using System;

[assembly: CLSCompliant(true)]
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
namespace Serilog.Exceptions.MsSqlServer.Destructurers;

using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Data.SqlClient;
using Serilog.Exceptions.Core;
using Serilog.Exceptions.Destructurers;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Runtime.CompilerServices;

[assembly: CLSCompliant(true)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Refit.Destructurers;

using System;
using System.Collections.Generic;
using global::Refit;
using Serilog.Exceptions.Core;
using Serilog.Exceptions.Destructurers;
Expand Down
2 changes: 0 additions & 2 deletions Source/Serilog.Exceptions.Refit/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
using System;

[assembly: CLSCompliant(true)]
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
namespace Serilog.Exceptions.SqlServer.Destructurers;

using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using Serilog.Exceptions.Core;
using Serilog.Exceptions.Destructurers;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Runtime.CompilerServices;

[assembly: CLSCompliant(true)]
Expand Down
2 changes: 0 additions & 2 deletions Source/Serilog.Exceptions/Core/DestructuringOptionsBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Core;

using System;
using System.Collections.Generic;
using System.Globalization;
using Serilog.Events;
using Serilog.Exceptions.Destructurers;
Expand Down
2 changes: 0 additions & 2 deletions Source/Serilog.Exceptions/Core/ExceptionEnricher.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Core;

using System;
using System.Collections.Generic;
using Serilog.Core;
using Serilog.Events;
using Serilog.Exceptions.Destructurers;
Expand Down
2 changes: 0 additions & 2 deletions Source/Serilog.Exceptions/Core/ExceptionPropertiesBag.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Core;

using System;
using System.Collections.Generic;
using Serilog.Exceptions.Filters;

/// <inheritdoc />
Expand Down
1 change: 0 additions & 1 deletion Source/Serilog.Exceptions/Core/IDestructuringOptions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Serilog.Exceptions.Core;

using System.Collections.Generic;
using Serilog.Exceptions.Destructurers;
using Serilog.Exceptions.Filters;

Expand Down
2 changes: 0 additions & 2 deletions Source/Serilog.Exceptions/Core/IExceptionPropertiesBag.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Core;

using System.Collections.Generic;

/// <summary>
/// Container for all properties of single exception instance. All properties must be added before result
/// dictionary is requested.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
namespace Serilog.Exceptions.Destructurers;

using System;
using System.Collections.Generic;
using System.Linq;
using Serilog.Exceptions.Core;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Destructurers;

using System;
using System.Collections.Generic;
using Serilog.Exceptions.Core;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Destructurers;

using System;
using System.Collections.Generic;
using Serilog.Exceptions.Core;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Destructurers;

using System;
using System.Collections.Generic;
using Serilog.Exceptions.Core;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Destructurers;

using System;
using System.Collections.Generic;
using Serilog.Exceptions.Core;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Destructurers;

using System;
using System.Collections.Generic;
using System.Threading;
using Serilog.Exceptions.Core;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
namespace Serilog.Exceptions.Destructurers;

using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Destructurers;

using System;
using System.Collections.Generic;
using System.Reflection;
using Serilog.Exceptions.Core;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Destructurers;

using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using Serilog.Exceptions.Core;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Destructurers;

using System;
using System.Collections.Generic;
using System.Net.Sockets;
using Serilog.Exceptions.Core;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Destructurers;

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Serilog.Exceptions.Core;

Expand Down
1 change: 0 additions & 1 deletion Source/Serilog.Exceptions/DictionaryExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace Serilog.Exceptions;

using System.Collections;
using System.Collections.Generic;

/// <summary>
/// Helper extension methods for specific dictionary operations.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Filters;

using System;

/// <summary>
/// Abstraction over collection of filters that filters property is any of given filters alone would filter it.
/// This is equivalent to OR over a set of booleans. Executes filters in the order they were passed to a
Expand Down
2 changes: 0 additions & 2 deletions Source/Serilog.Exceptions/Filters/IExceptionPropertyFilter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Filters;

using System;

/// <summary>
/// Interface used for filtering exception properties. Filtering process is global, each property of every
/// exception will go through a configured exception property filter.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Filters;

using System;

/// <summary>
/// Filters the exception properties based only on their name. If exception property matches any of provided
/// property names, exception property is ignored altogether. Comparison method is exact case-sensitive.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Serilog.Exceptions;

using System;
using Serilog.Configuration;
using Serilog.Core;
using Serilog.Exceptions.Core;
Expand Down
1 change: 0 additions & 1 deletion Source/Serilog.Exceptions/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Runtime.CompilerServices;

[assembly: CLSCompliant(true)]
Expand Down
2 changes: 0 additions & 2 deletions Source/Serilog.Exceptions/Reflection/ReflectionInfo.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Reflection;

using System;

/// <summary>
/// Contains metadata information about a type
/// useful for destructuring process.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
namespace Serilog.Exceptions.Reflection;

using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Reflection;

using System;

/// <summary>
/// Class that holds reflection information about a single property.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Serilog.Exceptions.Test.Destructurers;

using System;
using Newtonsoft.Json.Linq;
using Xunit;
using static LogJsonOutputUtils;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Serilog.Exceptions.Test.Destructurers;

using System;
using System.Net;
using System.Net.Http;
using System.Net.Http.Json;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Serilog.Exceptions.Test.Destructurers;

using System;
using Xunit;
using static LogJsonOutputUtils;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Serilog.Exceptions.Test.Destructurers;

using System;
using Xunit;
using static LogJsonOutputUtils;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Serilog.Exceptions.Test.Destructurers;

using System;
using Xunit;
using static LogJsonOutputUtils;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Test.Destructurers;

using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.ChangeTracking;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace Serilog.Exceptions.Test.Destructurers;

using System;
using System.Collections.Generic;
using System.Globalization;
using Microsoft.EntityFrameworkCore;
using Moq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Serilog.Exceptions.Test.Destructurers;

using System;
using Serilog.Exceptions.Core;
using Serilog.Exceptions.Filters;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Serilog.Exceptions.Test.Destructurers;

using System;
using System.IO;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Serilog.Exceptions.Test.Destructurers;

using System;
using System.Threading;
using Xunit;
using static LogJsonOutputUtils;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
namespace Serilog.Exceptions.Test.Destructurers;

using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Serilog.Exceptions.Core;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Serilog.Exceptions.Test.Destructurers;

using System;
using System.Text.RegularExpressions;
using Serilog.Exceptions.Core;
using Serilog.Exceptions.Destructurers;
Expand Down
Loading

0 comments on commit 094ee08

Please sign in to comment.