remove `ImplicitUsings disable` from projects (part 2) (#3983)

This commit is contained in:
Timothy Mothra 2022-12-07 16:02:08 -08:00 committed by GitHub
parent a58c3c0c0d
commit 72595ac4bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 15 additions and 21 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.Runtime.CompilerServices;
using OpenTelemetry.Trace;
#pragma warning restore IDE0005
namespace OpenTelemetry.Internal
{

View File

@ -14,9 +14,6 @@
// limitations under the License.
// </copyright>
#if NETSTANDARD2_0 || NETFRAMEWORK
using System;
#endif
using Thrift.Protocol;
using Thrift.Protocol.Entities;

View File

@ -14,9 +14,6 @@
// limitations under the License.
// </copyright>
#if NETSTANDARD2_0 || NETFRAMEWORK
using System;
#endif
using Thrift.Protocol;
using Thrift.Protocol.Entities;

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
internal interface IJaegerClient : IDisposable

View File

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

View File

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

View File

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

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{

View File

@ -14,9 +14,10 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
#if NETFRAMEWORK
using System.Net.Http;
#endif
using System.Net.Http.Headers;
namespace OpenTelemetry.Exporter.Jaeger.Implementation

View File

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

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using System.Text;
using Thrift.Protocol;
using Thrift.Protocol.Entities;

View File

@ -14,10 +14,7 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;
using OpenTelemetry.Exporter.Jaeger.Implementation;
using OpenTelemetry.Internal;

View File

@ -14,8 +14,9 @@
// limitations under the License.
// </copyright>
using System;
#if NETFRAMEWORK
using System.Net.Http;
#endif
using System.Reflection;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;

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.Trace;

View File

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

View File

@ -16,6 +16,7 @@
#nullable enable
#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.Diagnostics;
@ -27,6 +28,7 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Options;
#pragma warning restore IDE0005
namespace OpenTelemetry.Internal;

View File

@ -14,10 +14,12 @@
// 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.Runtime.CompilerServices;
using OpenTelemetry.Trace;
#pragma warning restore IDE0005
namespace OpenTelemetry.Exporter
{

View File

@ -13,10 +13,13 @@
// See the License for the specific language governing permissions and
// 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.Buffers;
using System.Collections;
using System.Collections.Generic;
#pragma warning restore IDE0005
namespace OpenTelemetry.Internal
{