diff --git a/src/GitHubVulnerabilities2Db/Configuration/GitHubVulnerabilities2DbConfiguration.cs b/src/GitHubVulnerabilities2Db/Configuration/GitHubVulnerabilities2DbConfiguration.cs index 11547ce483..2f9e5265e7 100644 --- a/src/GitHubVulnerabilities2Db/Configuration/GitHubVulnerabilities2DbConfiguration.cs +++ b/src/GitHubVulnerabilities2Db/Configuration/GitHubVulnerabilities2DbConfiguration.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using NuGet.Services.GitHub.Configuration; namespace GitHubVulnerabilities2Db.Configuration diff --git a/src/GitHubVulnerabilities2v3/Configuration/GitHubVulnerabilities2v3Configuration.cs b/src/GitHubVulnerabilities2v3/Configuration/GitHubVulnerabilities2v3Configuration.cs index 5939a3d5c9..d3bb422310 100644 --- a/src/GitHubVulnerabilities2v3/Configuration/GitHubVulnerabilities2v3Configuration.cs +++ b/src/GitHubVulnerabilities2v3/Configuration/GitHubVulnerabilities2v3Configuration.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using NuGet.Services.GitHub.Configuration; namespace GitHubVulnerabilities2v3.Configuration diff --git a/src/GitHubVulnerabilities2v3/Extensions/BlobStorageVulnerabilityWriter.cs b/src/GitHubVulnerabilities2v3/Extensions/BlobStorageVulnerabilityWriter.cs index 53b9727155..9dc441d139 100644 --- a/src/GitHubVulnerabilities2v3/Extensions/BlobStorageVulnerabilityWriter.cs +++ b/src/GitHubVulnerabilities2v3/Extensions/BlobStorageVulnerabilityWriter.cs @@ -17,8 +17,6 @@ using NuGet.Services.Entities; using NuGet.Services.GitHub.Ingest; using NuGet.Services.Storage; -using Microsoft.Owin.Security.Provider; -using System.Configuration; namespace GitHubVulnerabilities2v3.Extensions { diff --git a/src/NuGet.Services.Entities/PackageDeprecation.cs b/src/NuGet.Services.Entities/PackageDeprecation.cs index 596b7c6f47..68732ddc35 100644 --- a/src/NuGet.Services.Entities/PackageDeprecation.cs +++ b/src/NuGet.Services.Entities/PackageDeprecation.cs @@ -3,7 +3,6 @@ using System; using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; namespace NuGet.Services.Entities { diff --git a/src/NuGet.Services.Entities/UserCertificate.cs b/src/NuGet.Services.Entities/UserCertificate.cs index 75ea8f8308..f7a45b01b6 100644 --- a/src/NuGet.Services.Entities/UserCertificate.cs +++ b/src/NuGet.Services.Entities/UserCertificate.cs @@ -1,8 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.ComponentModel.DataAnnotations.Schema; - namespace NuGet.Services.Entities { /// diff --git a/src/NuGet.Services.GitHub/Ingest/AdvisoryIngestor.cs b/src/NuGet.Services.GitHub/Ingest/AdvisoryIngestor.cs index ba88c376fd..a91ff455e8 100644 --- a/src/NuGet.Services.GitHub/Ingest/AdvisoryIngestor.cs +++ b/src/NuGet.Services.GitHub/Ingest/AdvisoryIngestor.cs @@ -8,7 +8,6 @@ using NuGet.Services.GitHub.GraphQL; using Microsoft.Extensions.Logging; using NuGet.Services.Entities; -using NuGetGallery; namespace NuGet.Services.GitHub.Ingest { diff --git a/src/NuGetGallery.Core/Auditing/FeatureFlagsAuditRecord.cs b/src/NuGetGallery.Core/Auditing/FeatureFlagsAuditRecord.cs index 4209c5210e..8bfa77d576 100644 --- a/src/NuGetGallery.Core/Auditing/FeatureFlagsAuditRecord.cs +++ b/src/NuGetGallery.Core/Auditing/FeatureFlagsAuditRecord.cs @@ -4,7 +4,6 @@ using System; using NuGet.Services.FeatureFlags; using NuGetGallery.Auditing.AuditedEntities; -using NuGetGallery.Features; using NuGetGallery.Shared; namespace NuGetGallery.Auditing diff --git a/src/NuGetGallery.Core/Auditing/Obfuscation/Obfuscator.cs b/src/NuGetGallery.Core/Auditing/Obfuscation/Obfuscator.cs index 45aeeb7386..b0c7fec519 100644 --- a/src/NuGetGallery.Core/Auditing/Obfuscation/Obfuscator.cs +++ b/src/NuGetGallery.Core/Auditing/Obfuscation/Obfuscator.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Text; using System.Net; namespace NuGetGallery.Auditing diff --git a/src/NuGetGallery.Core/Entities/EntitiesContext.cs b/src/NuGetGallery.Core/Entities/EntitiesContext.cs index cd2bc902f9..02f00d072b 100644 --- a/src/NuGetGallery.Core/Entities/EntitiesContext.cs +++ b/src/NuGetGallery.Core/Entities/EntitiesContext.cs @@ -7,7 +7,6 @@ using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Data.Entity.Infrastructure.Annotations; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Services.Entities; diff --git a/src/NuGetGallery.Core/Login/IEditableLoginConfigurationFileStorageService.cs b/src/NuGetGallery.Core/Login/IEditableLoginConfigurationFileStorageService.cs index 196a07f54c..6fc28e33fb 100644 --- a/src/NuGetGallery.Core/Login/IEditableLoginConfigurationFileStorageService.cs +++ b/src/NuGetGallery.Core/Login/IEditableLoginConfigurationFileStorageService.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Threading.Tasks; using NuGetGallery.Shared; diff --git a/src/NuGetGallery.Core/Login/ILoginDiscontinuationFileStorageService.cs b/src/NuGetGallery.Core/Login/ILoginDiscontinuationFileStorageService.cs index fb5aad764d..45eb715b1e 100644 --- a/src/NuGetGallery.Core/Login/ILoginDiscontinuationFileStorageService.cs +++ b/src/NuGetGallery.Core/Login/ILoginDiscontinuationFileStorageService.cs @@ -1,10 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading.Tasks; namespace NuGetGallery.Login diff --git a/src/NuGetGallery.Core/Login/LoginDiscontinuation.cs b/src/NuGetGallery.Core/Login/LoginDiscontinuation.cs index 994c4dbf5e..dc4b99c0b3 100644 --- a/src/NuGetGallery.Core/Login/LoginDiscontinuation.cs +++ b/src/NuGetGallery.Core/Login/LoginDiscontinuation.cs @@ -3,9 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Newtonsoft.Json; using NuGet.Services.Entities; diff --git a/src/NuGetGallery.Core/Login/LoginDiscontinuationFileStorageService.cs b/src/NuGetGallery.Core/Login/LoginDiscontinuationFileStorageService.cs index 39fb13b112..f57e5f3318 100644 --- a/src/NuGetGallery.Core/Login/LoginDiscontinuationFileStorageService.cs +++ b/src/NuGetGallery.Core/Login/LoginDiscontinuationFileStorageService.cs @@ -4,12 +4,9 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using NuGet.Services.FeatureFlags; namespace NuGetGallery.Login { diff --git a/src/NuGetGallery.Services/Configuration/LoginDiscontinuationConfiguration.cs b/src/NuGetGallery.Services/Configuration/LoginDiscontinuationConfiguration.cs index ccdaebf889..fd3c0e125f 100644 --- a/src/NuGetGallery.Services/Configuration/LoginDiscontinuationConfiguration.cs +++ b/src/NuGetGallery.Services/Configuration/LoginDiscontinuationConfiguration.cs @@ -3,10 +3,7 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Net.Mail; using Newtonsoft.Json; -using NuGet.Services.Entities; using NuGetGallery.Authentication; using NuGetGallery.Login; diff --git a/src/NuGetGallery/App_Start/OwinStartup.cs b/src/NuGetGallery/App_Start/OwinStartup.cs index 861e637874..5d90570769 100644 --- a/src/NuGetGallery/App_Start/OwinStartup.cs +++ b/src/NuGetGallery/App_Start/OwinStartup.cs @@ -9,7 +9,6 @@ using System.Net; using System.Threading; using System.Threading.Tasks; -using System.Web; using System.Web.Hosting; using System.Web.Http; using System.Web.Mvc; @@ -23,7 +22,6 @@ using NuGetGallery.Authentication.Providers.Cookie; using NuGetGallery.Configuration; using NuGetGallery.Diagnostics; -using NuGetGallery.Infrastructure; using Owin; [assembly: OwinStartup(typeof(NuGetGallery.OwinStartup))] diff --git a/src/NuGetGallery/Areas/Admin/Controllers/PasswordAuthenticationController.cs b/src/NuGetGallery/Areas/Admin/Controllers/PasswordAuthenticationController.cs index 77b9cee536..1ab8e206eb 100644 --- a/src/NuGetGallery/Areas/Admin/Controllers/PasswordAuthenticationController.cs +++ b/src/NuGetGallery/Areas/Admin/Controllers/PasswordAuthenticationController.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.Threading.Tasks; using System.Web.Mvc; using Microsoft.Ajax.Utilities; diff --git a/src/NuGetGallery/Areas/Admin/ViewModels/UserCredentialSearchResult.cs b/src/NuGetGallery/Areas/Admin/ViewModels/UserCredentialSearchResult.cs index 877399c9f6..adfb9d2073 100644 --- a/src/NuGetGallery/Areas/Admin/ViewModels/UserCredentialSearchResult.cs +++ b/src/NuGetGallery/Areas/Admin/ViewModels/UserCredentialSearchResult.cs @@ -2,8 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; -using System.Linq; -using NuGet.Services.Entities; namespace NuGetGallery.Areas.Admin.ViewModels { diff --git a/src/NuGetGallery/Controllers/ApiController.cs b/src/NuGetGallery/Controllers/ApiController.cs index 717bef8c33..f8b7e6a771 100644 --- a/src/NuGetGallery/Controllers/ApiController.cs +++ b/src/NuGetGallery/Controllers/ApiController.cs @@ -28,7 +28,6 @@ using NuGetGallery.Infrastructure.Authentication; using NuGetGallery.Infrastructure.Mail.Messages; using NuGetGallery.Packaging; -using NuGetGallery.RequestModels; using NuGetGallery.Security; using PackageIdValidator = NuGetGallery.Packaging.PackageIdValidator; diff --git a/src/NuGetGallery/Helpers/ViewModelExtensions/ListPackageItemViewModelFactory.cs b/src/NuGetGallery/Helpers/ViewModelExtensions/ListPackageItemViewModelFactory.cs index 2163852224..748d1bddef 100644 --- a/src/NuGetGallery/Helpers/ViewModelExtensions/ListPackageItemViewModelFactory.cs +++ b/src/NuGetGallery/Helpers/ViewModelExtensions/ListPackageItemViewModelFactory.cs @@ -4,7 +4,6 @@ using System; using System.Linq; using NuGet.Services.Entities; -using NuGetGallery; using NuGetGallery.Frameworks; using NuGetGallery.Helpers; diff --git a/src/NuGetGallery/Services/SymbolPackageUploadService.cs b/src/NuGetGallery/Services/SymbolPackageUploadService.cs index 8a706e63f9..33f82dfec9 100644 --- a/src/NuGetGallery/Services/SymbolPackageUploadService.cs +++ b/src/NuGetGallery/Services/SymbolPackageUploadService.cs @@ -6,7 +6,6 @@ using System.IO; using System.IO.Compression; using System.Linq; -using System.Net; using System.Threading.Tasks; using NuGet.Frameworks; using NuGet.Packaging; diff --git a/tests/NuGetGallery.Core.Facts/Login/EditableLoginConfigurationFileStorageServiceFacts.cs b/tests/NuGetGallery.Core.Facts/Login/EditableLoginConfigurationFileStorageServiceFacts.cs index 6adea3c8b7..e3ac1c2b04 100644 --- a/tests/NuGetGallery.Core.Facts/Login/EditableLoginConfigurationFileStorageServiceFacts.cs +++ b/tests/NuGetGallery.Core.Facts/Login/EditableLoginConfigurationFileStorageServiceFacts.cs @@ -3,7 +3,6 @@ using System; using System.IO; -using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Extensions.Logging; diff --git a/tests/NuGetGallery.Core.Facts/Services/CloudBlobWrapperFacts.cs b/tests/NuGetGallery.Core.Facts/Services/CloudBlobWrapperFacts.cs index 29aabff1c7..9294f98d64 100644 --- a/tests/NuGetGallery.Core.Facts/Services/CloudBlobWrapperFacts.cs +++ b/tests/NuGetGallery.Core.Facts/Services/CloudBlobWrapperFacts.cs @@ -2,11 +2,9 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.IO; using System.Threading; using System.Threading.Tasks; using Azure; -using Azure.Storage.Blobs; using Azure.Storage.Blobs.Models; using Azure.Storage.Blobs.Specialized; using Moq; diff --git a/tests/NuGetGallery.Facts/Areas/Admin/HelperFacts.cs b/tests/NuGetGallery.Facts/Areas/Admin/HelperFacts.cs index e5b5dba853..5a70ce512f 100644 --- a/tests/NuGetGallery.Facts/Areas/Admin/HelperFacts.cs +++ b/tests/NuGetGallery.Facts/Areas/Admin/HelperFacts.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Web; using Xunit; namespace NuGetGallery.Areas.Admin diff --git a/tests/NuGetGallery.Facts/Controllers/StatisticsControllerFacts.cs b/tests/NuGetGallery.Facts/Controllers/StatisticsControllerFacts.cs index 712a9bbc9e..c5330ec494 100644 --- a/tests/NuGetGallery.Facts/Controllers/StatisticsControllerFacts.cs +++ b/tests/NuGetGallery.Facts/Controllers/StatisticsControllerFacts.cs @@ -9,7 +9,6 @@ using System.Threading; using System.Threading.Tasks; using System.Web; -using System.Web.Http.Results; using System.Web.Mvc; using System.Web.Routing; using Moq; diff --git a/tests/NuGetGallery.Facts/Infrastructure/Mail/Messages/ContactOwnersMessageFacts.cs b/tests/NuGetGallery.Facts/Infrastructure/Mail/Messages/ContactOwnersMessageFacts.cs index 2119a4ee9f..c62e424dc7 100644 --- a/tests/NuGetGallery.Facts/Infrastructure/Mail/Messages/ContactOwnersMessageFacts.cs +++ b/tests/NuGetGallery.Facts/Infrastructure/Mail/Messages/ContactOwnersMessageFacts.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Net.Mail; -using Moq; using NuGet.Services.Entities; using NuGet.Services.Messaging.Email; using Xunit; diff --git a/tests/NuGetGallery.Facts/Services/TyposquattingServiceFacts.cs b/tests/NuGetGallery.Facts/Services/TyposquattingServiceFacts.cs index e0edde554c..ce7489c583 100644 --- a/tests/NuGetGallery.Facts/Services/TyposquattingServiceFacts.cs +++ b/tests/NuGetGallery.Facts/Services/TyposquattingServiceFacts.cs @@ -7,7 +7,6 @@ using Moq; using Xunit; using NuGet.Services.Entities; -using NuGetGallery.TestUtils; using NuGetGallery.Services; namespace NuGetGallery