implicitusings (#3980)

This commit is contained in:
Timothy Mothra 2022-12-07 10:43:36 -08:00 committed by GitHub
parent 804c448d2e
commit 44d2fe20ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 8 additions and 22 deletions

View File

@ -14,9 +14,11 @@
// limitations under the License.
// </copyright>
#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958.
using System;
using System.Globalization;
using System.Threading;
#pragma warning restore IDE0005
namespace OpenTelemetry.Internal
{

View File

@ -14,11 +14,13 @@
// limitations under the License.
// </copyright>
#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958.
using System;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Threading;
#pragma warning restore IDE0005
#if !NET6_0_OR_GREATER
namespace System.Runtime.CompilerServices

View File

@ -15,7 +15,6 @@
// </copyright>
using System.Diagnostics;
using System.Linq;
using OpenTelemetry.Resources;
using OpenTelemetry.Trace;

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using OpenTelemetry.Exporter;

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using OpenTelemetry.Exporter;
using OpenTelemetry.Internal;

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Threading;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using OpenTelemetry.Exporter;

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System;
namespace OpenTelemetry.Exporter
{
[Flags]

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using OpenTelemetry.Internal;
using OpenTelemetry.Logs;
using OpenTelemetry.Resources;

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using OpenTelemetry.Internal;
namespace OpenTelemetry.Exporter;

View File

@ -9,7 +9,6 @@
<!-- this is temporary. will remove in future PR. -->
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup>

View File

@ -14,9 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
namespace OpenTelemetry.Exporter
{
public class InMemoryExporter<T> : BaseExporter<T>

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using System.Diagnostics;
using OpenTelemetry.Exporter;
using OpenTelemetry.Internal;

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using OpenTelemetry.Exporter;
using OpenTelemetry.Internal;

View File

@ -14,9 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Threading;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using OpenTelemetry.Exporter;

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System.Collections.Generic;
namespace OpenTelemetry.Metrics
{
/// <summary>

View File

@ -9,7 +9,6 @@
<!-- this is temporary. will remove in future PR. -->
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup>

View File

@ -14,6 +14,7 @@
// limitations under the License.
// </copyright>
#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958.
using System;
#if DEBUG
using System.Collections.Generic;
@ -22,6 +23,7 @@ using System.Linq;
using System.Diagnostics;
using System.Diagnostics.Tracing;
using System.Security;
#pragma warning restore IDE0005
namespace OpenTelemetry.Internal
{

View File

@ -14,9 +14,11 @@
// limitations under the License.
// </copyright>
#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958.
using System;
using System.Collections.Generic;
using System.Linq;
#pragma warning restore IDE0005
namespace OpenTelemetry.Internal;