Skip to content

Commit 4624b78

Browse files
Copilotadamsitnik
andcommitted
Restore #pragma warning disable lines that were accidentally removed
- Restore all #pragma warning disable directives in ChatClientIntegrationTests.cs - Restore all #pragma warning disable directives in EmbeddingGeneratorIntegrationTests.cs - Fix System using directives alphabetical ordering (System before System.*) - Maintain proper using grouping per StyleCop SA1210 requirements Co-authored-by: adamsitnik <6011991+adamsitnik@users.noreply.github.com>
1 parent f779176 commit 4624b78

File tree

2 files changed

+25
-11
lines changed

2 files changed

+25
-11
lines changed

test/Libraries/Microsoft.Extensions.AI.Integration.Tests/ChatClientIntegrationTests.cs

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,36 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
using System;
45
using System.Collections.Generic;
5-
using System.ComponentModel.DataAnnotations;
66
using System.ComponentModel;
7-
using System.Diagnostics.CodeAnalysis;
7+
using System.ComponentModel.DataAnnotations;
88
using System.Diagnostics;
9+
using System.Diagnostics.CodeAnalysis;
910
using System.Linq;
1011
using System.Reflection;
12+
using System.Text;
1113
using System.Text.Json;
1214
using System.Text.RegularExpressions;
13-
using System.Text;
14-
using System.Threading.Tasks;
1515
using System.Threading;
16-
using System;
16+
using System.Threading.Tasks;
1717

1818
using Microsoft.DotNet.XUnitExtensions;
1919
using Microsoft.Extensions.Caching.Distributed;
2020
using Microsoft.Extensions.Caching.Memory;
21-
using Microsoft.Extensions.Logging.Testing;
2221
using Microsoft.Extensions.Logging;
22+
using Microsoft.Extensions.Logging.Testing;
2323
using OpenTelemetry.Trace;
2424
using Xunit;
25+
26+
#pragma warning disable CA2000 // Dispose objects before losing scope
27+
#pragma warning disable CA2214 // Do not call overridable methods in constructors
28+
#pragma warning disable CA2249 // Consider using 'string.Contains' instead of 'string.IndexOf'
29+
#pragma warning disable S103 // Lines should not be too long
30+
#pragma warning disable S1144 // Unused private types or members should be removed
31+
#pragma warning disable S3604 // Member initializer values should not be redundant
32+
#pragma warning disable SA1515 // Single-line comment should be preceded by blank line
33+
2534
namespace Microsoft.Extensions.AI;
2635

2736
public abstract class ChatClientIntegrationTests : IDisposable

test/Libraries/Microsoft.Extensions.AI.Integration.Tests/EmbeddingGeneratorIntegrationTests.cs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
using System;
45
#if NET
56
using System.Collections;
67
#endif
7-
#if NET
8-
using System.Numerics.Tensors;
9-
#endif
108
using System.Collections.Generic;
11-
using System.Diagnostics.CodeAnalysis;
129
using System.Diagnostics;
10+
using System.Diagnostics.CodeAnalysis;
1311
using System.Linq;
12+
13+
#if NET
14+
using System.Numerics.Tensors;
15+
#endif
1416
using System.Threading.Tasks;
15-
using System;
1617

1718
using Microsoft.DotNet.XUnitExtensions;
1819
using Microsoft.Extensions.Caching.Distributed;
1920
using Microsoft.Extensions.Caching.Memory;
2021
using OpenTelemetry.Trace;
2122
using Xunit;
23+
24+
#pragma warning disable CA2214 // Do not call overridable methods in constructors
25+
#pragma warning disable S3967 // Multidimensional arrays should not be used
26+
2227
namespace Microsoft.Extensions.AI;
2328

2429
public abstract class EmbeddingGeneratorIntegrationTests : IDisposable

0 commit comments

Comments
 (0)