This commit is contained in:
Jamie Magee 2022-08-25 09:14:39 -07:00 коммит произвёл GitHub
Родитель d1c6d005c0
Коммит 83acbd4788
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
22 изменённых файлов: 28 добавлений и 37 удалений

Просмотреть файл

@ -491,10 +491,6 @@ dotnet_diagnostic.SA1202.severity = suggestion
# 'public' members should come before 'private' members # 'public' members should come before 'private' members
dotnet_diagnostic.SA1203.severity = suggestion dotnet_diagnostic.SA1203.severity = suggestion
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1210.md
# Using directives should be ordered alphabetically by the namespaces
dotnet_diagnostic.SA1210.severity = suggestion
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1214.md # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1214.md
# Readonly fields should appear before non-readonly fields # Readonly fields should appear before non-readonly fields
dotnet_diagnostic.SA1214.severity = suggestion dotnet_diagnostic.SA1214.severity = suggestion

Просмотреть файл

@ -1,6 +1,6 @@
using System; using System;
using System.Linq;
using System.Composition; using System.Composition;
using System.Linq;
using Microsoft.ComponentDetection.Contracts; using Microsoft.ComponentDetection.Contracts;
namespace Microsoft.ComponentDetection.Common namespace Microsoft.ComponentDetection.Common

Просмотреть файл

@ -5,11 +5,11 @@ using System.IO;
using System.Linq; using System.Linq;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
using Valleysoft.DockerfileModel;
using Microsoft.ComponentDetection.Common; using Microsoft.ComponentDetection.Common;
using Microsoft.ComponentDetection.Contracts; using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Contracts.Internal; using Microsoft.ComponentDetection.Contracts.Internal;
using Microsoft.ComponentDetection.Contracts.TypedComponent; using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Valleysoft.DockerfileModel;
namespace Microsoft.ComponentDetection.Detectors.Dockerfile namespace Microsoft.ComponentDetection.Detectors.Dockerfile
{ {

Просмотреть файл

@ -1,4 +1,4 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Composition; using System.Composition;
using System.IO; using System.IO;
@ -7,9 +7,9 @@ using System.Reactive.Linq;
using System.Reflection; using System.Reflection;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.ComponentDetection.Contracts; using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Contracts.BcdeModels;
using Microsoft.ComponentDetection.Contracts.Internal; using Microsoft.ComponentDetection.Contracts.Internal;
using Microsoft.ComponentDetection.Contracts.TypedComponent; using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.ComponentDetection.Contracts.BcdeModels;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
namespace Microsoft.ComponentDetection.Detectors.Ivy namespace Microsoft.ComponentDetection.Detectors.Ivy

Просмотреть файл

@ -8,9 +8,9 @@ using Microsoft.ComponentDetection.Common.DependencyGraph;
using Microsoft.ComponentDetection.Contracts; using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Contracts.TypedComponent; using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.ComponentDetection.Detectors.Go; using Microsoft.ComponentDetection.Detectors.Go;
using Microsoft.ComponentDetection.TestsUtilities;
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq; using Moq;
using Microsoft.ComponentDetection.TestsUtilities;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests
{ {

Просмотреть файл

@ -6,8 +6,8 @@ using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Contracts.TypedComponent; using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.ComponentDetection.Detectors.Gradle; using Microsoft.ComponentDetection.Detectors.Gradle;
using Microsoft.ComponentDetection.Detectors.Tests.Utilities; using Microsoft.ComponentDetection.Detectors.Tests.Utilities;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.ComponentDetection.TestsUtilities; using Microsoft.ComponentDetection.TestsUtilities;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests
{ {

Просмотреть файл

@ -9,9 +9,9 @@ using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Contracts.TypedComponent; using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.ComponentDetection.Detectors.Maven; using Microsoft.ComponentDetection.Detectors.Maven;
using Microsoft.ComponentDetection.Detectors.Tests.Utilities; using Microsoft.ComponentDetection.Detectors.Tests.Utilities;
using Microsoft.ComponentDetection.TestsUtilities;
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq; using Moq;
using Microsoft.ComponentDetection.TestsUtilities;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests
{ {

Просмотреть файл

@ -6,10 +6,9 @@ using Microsoft.ComponentDetection.Common.DependencyGraph;
using Microsoft.ComponentDetection.Contracts; using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Contracts.TypedComponent; using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.ComponentDetection.Detectors.Npm; using Microsoft.ComponentDetection.Detectors.Npm;
using Microsoft.ComponentDetection.TestsUtilities;
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq; using Moq;
using Microsoft.ComponentDetection.TestsUtilities;
using static Microsoft.ComponentDetection.Detectors.Tests.Utilities.TestUtilityExtensions; using static Microsoft.ComponentDetection.Detectors.Tests.Utilities.TestUtilityExtensions;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests

Просмотреть файл

@ -1,4 +1,4 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
@ -9,10 +9,9 @@ using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Contracts.TypedComponent; using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.ComponentDetection.Detectors.Npm; using Microsoft.ComponentDetection.Detectors.Npm;
using Microsoft.ComponentDetection.Detectors.Tests.Utilities; using Microsoft.ComponentDetection.Detectors.Tests.Utilities;
using Microsoft.ComponentDetection.TestsUtilities;
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq; using Moq;
using Microsoft.ComponentDetection.TestsUtilities;
using static Microsoft.ComponentDetection.Detectors.Tests.Utilities.TestUtilityExtensions; using static Microsoft.ComponentDetection.Detectors.Tests.Utilities.TestUtilityExtensions;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests

Просмотреть файл

@ -6,9 +6,8 @@ using System.Reactive.Linq;
using Microsoft.ComponentDetection.Common.DependencyGraph; using Microsoft.ComponentDetection.Common.DependencyGraph;
using Microsoft.ComponentDetection.Contracts; using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Contracts.Internal; using Microsoft.ComponentDetection.Contracts.Internal;
using Moq;
using Microsoft.ComponentDetection.TestsUtilities; using Microsoft.ComponentDetection.TestsUtilities;
using Moq;
using static Microsoft.ComponentDetection.Detectors.Tests.Utilities.TestUtilityExtensions; using static Microsoft.ComponentDetection.Detectors.Tests.Utilities.TestUtilityExtensions;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests

Просмотреть файл

@ -1,4 +1,4 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
@ -7,11 +7,11 @@ using System.Threading.Tasks;
using Microsoft.ComponentDetection.Common.DependencyGraph; using Microsoft.ComponentDetection.Common.DependencyGraph;
using Microsoft.ComponentDetection.Contracts; using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Contracts.Internal; using Microsoft.ComponentDetection.Contracts.Internal;
using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.ComponentDetection.Detectors.NuGet; using Microsoft.ComponentDetection.Detectors.NuGet;
using Microsoft.ComponentDetection.TestsUtilities;
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq; using Moq;
using Microsoft.ComponentDetection.TestsUtilities;
using Microsoft.ComponentDetection.Contracts.TypedComponent;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests
{ {

Просмотреть файл

@ -9,9 +9,9 @@ using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.ComponentDetection.Detectors.NuGet; using Microsoft.ComponentDetection.Detectors.NuGet;
using Microsoft.ComponentDetection.Detectors.Tests.Mocks; using Microsoft.ComponentDetection.Detectors.Tests.Mocks;
using Microsoft.ComponentDetection.Detectors.Tests.Utilities; using Microsoft.ComponentDetection.Detectors.Tests.Utilities;
using Microsoft.ComponentDetection.TestsUtilities;
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq; using Moq;
using Microsoft.ComponentDetection.TestsUtilities;
using Newtonsoft.Json; using Newtonsoft.Json;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests

Просмотреть файл

@ -5,9 +5,8 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.ComponentDetection.Contracts; using Microsoft.ComponentDetection.Contracts;
using Moq;
using Microsoft.ComponentDetection.TestsUtilities; using Microsoft.ComponentDetection.TestsUtilities;
using Moq;
using static Microsoft.ComponentDetection.Detectors.Tests.Utilities.TestUtilityExtensions; using static Microsoft.ComponentDetection.Detectors.Tests.Utilities.TestUtilityExtensions;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests

Просмотреть файл

@ -8,9 +8,9 @@ using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Contracts.TypedComponent; using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.ComponentDetection.Detectors.Pip; using Microsoft.ComponentDetection.Detectors.Pip;
using Microsoft.ComponentDetection.Detectors.Tests.Utilities; using Microsoft.ComponentDetection.Detectors.Tests.Utilities;
using Microsoft.ComponentDetection.TestsUtilities;
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq; using Moq;
using Microsoft.ComponentDetection.TestsUtilities;
using Newtonsoft.Json; using Newtonsoft.Json;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests

Просмотреть файл

@ -1,4 +1,4 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -8,8 +8,8 @@ using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Contracts.TypedComponent; using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.ComponentDetection.Detectors.Pnpm; using Microsoft.ComponentDetection.Detectors.Pnpm;
using Microsoft.ComponentDetection.Detectors.Tests.Utilities; using Microsoft.ComponentDetection.Detectors.Tests.Utilities;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.ComponentDetection.TestsUtilities; using Microsoft.ComponentDetection.TestsUtilities;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests
{ {

Просмотреть файл

@ -4,9 +4,9 @@ using FluentAssertions;
using Microsoft.ComponentDetection.Contracts; using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Contracts.TypedComponent; using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.ComponentDetection.Detectors.Pnpm; using Microsoft.ComponentDetection.Detectors.Pnpm;
using Microsoft.ComponentDetection.TestsUtilities;
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq; using Moq;
using Microsoft.ComponentDetection.TestsUtilities;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests
{ {

Просмотреть файл

@ -1,4 +1,4 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
@ -7,8 +7,8 @@ using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Contracts.TypedComponent; using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.ComponentDetection.Detectors.CocoaPods; using Microsoft.ComponentDetection.Detectors.CocoaPods;
using Microsoft.ComponentDetection.Detectors.Tests.Utilities; using Microsoft.ComponentDetection.Detectors.Tests.Utilities;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.ComponentDetection.TestsUtilities; using Microsoft.ComponentDetection.TestsUtilities;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests
{ {

Просмотреть файл

@ -5,8 +5,8 @@ using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Contracts.TypedComponent; using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.ComponentDetection.Detectors.Poetry; using Microsoft.ComponentDetection.Detectors.Poetry;
using Microsoft.ComponentDetection.Detectors.Tests.Utilities; using Microsoft.ComponentDetection.Detectors.Tests.Utilities;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.ComponentDetection.TestsUtilities; using Microsoft.ComponentDetection.TestsUtilities;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests
{ {

Просмотреть файл

@ -1,4 +1,4 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -8,9 +8,9 @@ using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Contracts.TypedComponent; using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.ComponentDetection.Detectors.Ruby; using Microsoft.ComponentDetection.Detectors.Ruby;
using Microsoft.ComponentDetection.Detectors.Tests.Utilities; using Microsoft.ComponentDetection.Detectors.Tests.Utilities;
using Microsoft.ComponentDetection.TestsUtilities;
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq; using Moq;
using Microsoft.ComponentDetection.TestsUtilities;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests
{ {

Просмотреть файл

@ -9,8 +9,8 @@ using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Contracts.TypedComponent; using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.ComponentDetection.Detectors.Rust; using Microsoft.ComponentDetection.Detectors.Rust;
using Microsoft.ComponentDetection.Detectors.Tests.Utilities; using Microsoft.ComponentDetection.Detectors.Tests.Utilities;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.ComponentDetection.TestsUtilities; using Microsoft.ComponentDetection.TestsUtilities;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests
{ {

Просмотреть файл

@ -13,11 +13,10 @@ using Microsoft.ComponentDetection.Contracts.Internal;
using Microsoft.ComponentDetection.Contracts.TypedComponent; using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.ComponentDetection.Detectors.Tests.Utilities; using Microsoft.ComponentDetection.Detectors.Tests.Utilities;
using Microsoft.ComponentDetection.Detectors.Yarn; using Microsoft.ComponentDetection.Detectors.Yarn;
using Microsoft.ComponentDetection.TestsUtilities;
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq; using Moq;
using Microsoft.ComponentDetection.TestsUtilities;
using Newtonsoft.Json; using Newtonsoft.Json;
using static Microsoft.ComponentDetection.Detectors.Tests.Utilities.TestUtilityExtensions; using static Microsoft.ComponentDetection.Detectors.Tests.Utilities.TestUtilityExtensions;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests

Просмотреть файл

@ -1,8 +1,8 @@
using System.IO; using System.IO;
using System.Text; using System.Text;
using Microsoft.ComponentDetection.Contracts; using Microsoft.ComponentDetection.Contracts;
using Moq;
using Microsoft.ComponentDetection.TestsUtilities; using Microsoft.ComponentDetection.TestsUtilities;
using Moq;
namespace Microsoft.ComponentDetection.Detectors.Tests namespace Microsoft.ComponentDetection.Detectors.Tests
{ {