From f6263d4ef2bc67bc1e31f01230d68f197e97581d Mon Sep 17 00:00:00 2001 From: Arthit Suriyawongkul Date: Thu, 31 Oct 2024 05:56:02 +0000 Subject: [PATCH 1/2] typo: ThrowArguement -> ThrowArgument Signed-off-by: Arthit Suriyawongkul --- .../ApiConfigurationBuilderTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Microsoft.Sbom.Api.Tests/ApiConfigurationBuilderTests.cs b/test/Microsoft.Sbom.Api.Tests/ApiConfigurationBuilderTests.cs index 558fe14c1..1744a2f12 100644 --- a/test/Microsoft.Sbom.Api.Tests/ApiConfigurationBuilderTests.cs +++ b/test/Microsoft.Sbom.Api.Tests/ApiConfigurationBuilderTests.cs @@ -175,21 +175,21 @@ public void GetConfiguration_DefaultRuntime() [DataRow(" ")] [DataRow(null)] [ExpectedException(typeof(ArgumentException))] - public void ThrowArguementExceptionOnRootPathValues(string input) + public void ThrowArgumentExceptionOnRootPathValues(string input) { ApiConfigurationBuilder.GetConfiguration(input, null, null, null, null); } [TestMethod] [ExpectedException(typeof(ArgumentNullException))] - public void ThrowArguementNulExceptionOnNullMetadata() + public void ThrowArgumentNulExceptionOnNullMetadata() { ApiConfigurationBuilder.GetConfiguration("random", null, null, null, null); } [TestMethod] [ExpectedException(typeof(ArgumentException))] - public void ThrowArguementExceptionOnSpecificationZero() + public void ThrowArgumentExceptionOnSpecificationZero() { ApiConfigurationBuilder.GetConfiguration("random", null, null, null, metadata, new List(), runtime); } From b1e1625ffa72c3eef4c355676f232d61f236b0c8 Mon Sep 17 00:00:00 2001 From: Arthit Suriyawongkul Date: Thu, 31 Oct 2024 06:04:00 +0000 Subject: [PATCH 2/2] Bring back anchors to specific section in a web page Signed-off-by: Arthit Suriyawongkul --- .../Entities/Enums/SPDXRelationshipType.cs | 2 +- .../Utils/InternalMetadataProviderIdentityExtensions.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.Sbom.Parsers.Spdx22SbomParser/Entities/Enums/SPDXRelationshipType.cs b/src/Microsoft.Sbom.Parsers.Spdx22SbomParser/Entities/Enums/SPDXRelationshipType.cs index 7ce6f00a1..2bebdef86 100644 --- a/src/Microsoft.Sbom.Parsers.Spdx22SbomParser/Entities/Enums/SPDXRelationshipType.cs +++ b/src/Microsoft.Sbom.Parsers.Spdx22SbomParser/Entities/Enums/SPDXRelationshipType.cs @@ -9,7 +9,7 @@ namespace Microsoft.Sbom.Parsers.Spdx22SbomParser.Entities.Enums; /// Defines the type of between the source and the /// target element. /// -/// Full definition here: https://spdx.github.io/spdx-spec/v2.2.2/relationships-between-SPDX-elements/. +/// Full definition here: https://spdx.github.io/spdx-spec/v2.2.2/relationships-between-SPDX-elements/#111-relationship-field. /// [JsonConverter(typeof(JsonStringEnumConverter))] public enum SPDXRelationshipType diff --git a/src/Microsoft.Sbom.Parsers.Spdx22SbomParser/Utils/InternalMetadataProviderIdentityExtensions.cs b/src/Microsoft.Sbom.Parsers.Spdx22SbomParser/Utils/InternalMetadataProviderIdentityExtensions.cs index e0f1bd12b..d0e999b96 100644 --- a/src/Microsoft.Sbom.Parsers.Spdx22SbomParser/Utils/InternalMetadataProviderIdentityExtensions.cs +++ b/src/Microsoft.Sbom.Parsers.Spdx22SbomParser/Utils/InternalMetadataProviderIdentityExtensions.cs @@ -54,7 +54,7 @@ public static string GetPackageName(this IInternalMetadataProvider internalMetad /// /// Generates the package verification code for a given package using the SPDX 2.2 specification. /// - /// Algorithm defined here https://spdx.github.io/spdx-spec/v2.2.2/package-information/. + /// Algorithm defined here https://spdx.github.io/spdx-spec/v2.2.2/package-information/#79-package-verification-code-field. /// /// ///