remove `ImplicitUsings disable` from projects (part 3) (#3985)

This commit is contained in:
Timothy Mothra 2022-12-07 16:40:27 -08:00 committed by GitHub
parent 72595ac4bf
commit 7401069298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
29 changed files with 14 additions and 56 deletions

View File

@ -8,7 +8,6 @@
<!-- this is temporary. will remove in future PR. -->
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>
<!--Do not run ApiCompat as this package has never released a stable version.

View File

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

View File

@ -14,11 +14,8 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;

View File

@ -14,9 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Threading;
using System.Threading.Tasks;
using Grpc.Core;
using OpenTelemetry.Internal;
#if NETSTANDARD2_1 || NET6_0_OR_GREATER

View File

@ -14,10 +14,9 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
#if NETFRAMEWORK
using System.Net.Http;
using System.Threading;
#endif
using OpenTelemetry.Internal;
namespace OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.ExportClient

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System;
namespace OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.ExportClient
{
internal static class ExporterClientValidation

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System.Threading;
namespace OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.ExportClient
{
/// <summary>Export client interface.</summary>

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Threading;
using Grpc.Core;
using OtlpCollector = OpenTelemetry.Proto.Collector.Logs.V1;

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Threading;
using Grpc.Core;
using OtlpCollector = OpenTelemetry.Proto.Collector.Metrics.V1;

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Threading;
using Grpc.Core;
using OtlpCollector = OpenTelemetry.Proto.Collector.Trace.V1;

View File

@ -14,15 +14,12 @@
// limitations under the License.
// </copyright>
using System.IO;
using System.Net;
#if NETFRAMEWORK
using System.Net.Http;
#endif
using System.Net.Http.Headers;
using System.Runtime.CompilerServices;
#if NET6_0_OR_GREATER
using System.Threading;
#endif
using System.Threading.Tasks;
using Google.Protobuf;
using OtlpCollector = OpenTelemetry.Proto.Collector.Logs.V1;

View File

@ -14,15 +14,12 @@
// limitations under the License.
// </copyright>
using System.IO;
using System.Net;
#if NETFRAMEWORK
using System.Net.Http;
#endif
using System.Net.Http.Headers;
using System.Runtime.CompilerServices;
#if NET6_0_OR_GREATER
using System.Threading;
#endif
using System.Threading.Tasks;
using Google.Protobuf;
using OtlpCollector = OpenTelemetry.Proto.Collector.Metrics.V1;

View File

@ -14,15 +14,12 @@
// limitations under the License.
// </copyright>
using System.IO;
using System.Net;
#if NETFRAMEWORK
using System.Net.Http;
#endif
using System.Net.Http.Headers;
using System.Runtime.CompilerServices;
#if NET6_0_OR_GREATER
using System.Threading;
#endif
using System.Threading.Tasks;
using Google.Protobuf;
using OtlpCollector = OpenTelemetry.Proto.Collector.Trace.V1;

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using Google.Protobuf;
using Microsoft.Extensions.Logging;

View File

@ -14,10 +14,7 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;

View File

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

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using OpenTelemetry.Internal;
using OtlpCommon = OpenTelemetry.Proto.Common.V1;

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using System.Linq;
using OpenTelemetry.Resources;
using OtlpCommon = OpenTelemetry.Proto.Common.V1;
using OtlpResource = OpenTelemetry.Proto.Resource.V1;

View File

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

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System;
namespace OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation
{
/// <summary>

View File

@ -8,7 +8,6 @@
<!-- this is temporary. will remove in future PR. -->
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">

View File

@ -14,9 +14,10 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
#if NETFRAMEWORK
using System.Net.Http;
#endif
using Microsoft.Extensions.Configuration;
using OpenTelemetry.Internal;
using OpenTelemetry.Metrics;

View File

@ -14,8 +14,9 @@
// limitations under the License.
// </copyright>
using System;
#if NETFRAMEWORK
using System.Net.Http;
#endif
using System.Reflection;
using Grpc.Core;
using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.ExportClient;

View File

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

View File

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

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 System.Diagnostics;
using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation;
using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.ExportClient;

View File

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

View File

@ -14,8 +14,10 @@
// 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;
#pragma warning restore IDE0005
namespace OpenTelemetry.Internal;