Skip to content

Commit beaf549

Browse files
committed
Sort and organize usings
Signed-off-by: Derrick Stolee <[email protected]>
1 parent 9f402b5 commit beaf549

File tree

120 files changed

+288
-326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+288
-326
lines changed

Scalar.Common/FileBasedDictionary.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using Scalar.Common.FileSystem;
1+
using Newtonsoft.Json;
2+
using Scalar.Common.FileSystem;
23
using Scalar.Common.Tracing;
3-
using Newtonsoft.Json;
44
using System;
55
using System.Collections.Concurrent;
66
using System.Collections.Generic;

Scalar.Common/Http/ConfigHttpRequestor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using Scalar.Common.Tracing;
2-
using Newtonsoft.Json;
1+
using Newtonsoft.Json;
2+
using Scalar.Common.Tracing;
33
using System;
44
using System.Net;
55
using System.Net.Http;

Scalar.Common/Http/GitObjectsHttpRequestor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using Scalar.Common.Git;
1+
using Newtonsoft.Json;
2+
using Scalar.Common.Git;
23
using Scalar.Common.Tracing;
3-
using Newtonsoft.Json;
44
using System;
55
using System.Collections.Generic;
66
using System.Linq;

Scalar.Common/NuGetUpgrade/NuGetFeed.cs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using Scalar.Common.Tracing;
21
using NuGet.Commands;
32
using NuGet.Common;
43
using NuGet.Configuration;
54
using NuGet.Packaging.Core;
65
using NuGet.Protocol;
76
using NuGet.Protocol.Core.Types;
7+
using Scalar.Common.Tracing;
88
using System;
99
using System.Collections.Generic;
1010
using System.IO;
@@ -111,7 +111,7 @@ public virtual async Task<string> DownloadPackageAsync(PackageIdentity packageId
111111
packageId,
112112
packageDownloadContext,
113113
globalPackagesFolder: string.Empty,
114-
logger : this.nuGetLogger,
114+
logger: this.nuGetLogger,
115115
token: CancellationToken.None))
116116
{
117117
if (downloadResourceResult.Status != DownloadResourceResultStatus.Available)
@@ -199,21 +199,21 @@ public void Log(LogLevel level, string data)
199199
string message = $"NuGet Logger: ({level}): {data}";
200200
switch (level)
201201
{
202-
case LogLevel.Debug:
203-
case LogLevel.Verbose:
204-
case LogLevel.Minimal:
205-
case LogLevel.Information:
206-
this.tracer.RelatedInfo(message);
207-
break;
208-
case LogLevel.Warning:
209-
this.tracer.RelatedWarning(message);
210-
break;
211-
case LogLevel.Error:
212-
this.tracer.RelatedWarning(message);
213-
break;
214-
default:
215-
this.tracer.RelatedWarning(message);
216-
break;
202+
case LogLevel.Debug:
203+
case LogLevel.Verbose:
204+
case LogLevel.Minimal:
205+
case LogLevel.Information:
206+
this.tracer.RelatedInfo(message);
207+
break;
208+
case LogLevel.Warning:
209+
this.tracer.RelatedWarning(message);
210+
break;
211+
case LogLevel.Error:
212+
this.tracer.RelatedWarning(message);
213+
break;
214+
default:
215+
this.tracer.RelatedWarning(message);
216+
break;
217217
}
218218
}
219219

Scalar.Common/NuGetUpgrade/NuGetUpgrader.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
using Scalar.Common;
1+
using NuGet.Packaging.Core;
2+
using NuGet.Protocol.Core.Types;
23
using Scalar.Common.FileSystem;
34
using Scalar.Common.Git;
45
using Scalar.Common.Tracing;
5-
using NuGet.Packaging.Core;
6-
using NuGet.Protocol.Core.Types;
76
using System;
87
using System.Collections.Generic;
9-
using System.Diagnostics;
108
using System.IO;
119
using System.IO.Compression;
1210
using System.Threading;

Scalar.Common/Prefetch/BlobPrefetcher.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using Scalar.Common.FileSystem;
1+
using Newtonsoft.Json;
2+
using Scalar.Common.FileSystem;
23
using Scalar.Common.Git;
34
using Scalar.Common.Http;
45
using Scalar.Common.Prefetch.Git;
56
using Scalar.Common.Prefetch.Pipeline;
67
using Scalar.Common.Tracing;
7-
using Newtonsoft.Json;
88
using System;
99
using System.Collections.Concurrent;
1010
using System.Collections.Generic;

Scalar.Common/ScalarEnlistment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
using Newtonsoft.Json;
12
using Scalar.Common.FileSystem;
23
using Scalar.Common.Git;
34
using Scalar.Common.NamedPipes;
45
using Scalar.Common.Tracing;
5-
using Newtonsoft.Json;
66
using System;
77
using System.IO;
88
using System.Threading;

Scalar.Common/Tracing/TelemetryDaemonEventListener.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
using System;
2-
using System.IO.Pipes;
1+
using Newtonsoft.Json;
32
using Scalar.Common.Git;
4-
using Newtonsoft.Json;
3+
using System;
4+
using System.IO.Pipes;
55

66
namespace Scalar.Common.Tracing
77
{

Scalar.FunctionalTests/FileSystemRunners/BashRunner.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using Scalar.FunctionalTests.Properties;
1+
using NUnit.Framework;
2+
using Scalar.FunctionalTests.Properties;
23
using Scalar.Tests.Should;
3-
using NUnit.Framework;
44
using System;
55
using System.Diagnostics;
66
using System.IO;

Scalar.FunctionalTests/FileSystemRunners/SystemIORunner.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
using Scalar.Tests.Should;
2-
using NUnit.Framework;
1+
using NUnit.Framework;
2+
using Scalar.Tests.Should;
33
using System;
44
using System.Diagnostics;
55
using System.IO;
66
using System.Runtime.InteropServices;
7-
using System.Text;
87
using System.Threading;
98

109
namespace Scalar.FunctionalTests.FileSystemRunners

0 commit comments

Comments
 (0)