Skip to content

Commit 2e68601

Browse files
updated the code for the build error
1 parent 270cadb commit 2e68601

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

src/LCT.Common/Logging/Log4net.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public static class Log4Net
4343
public static string CatoolCurrentDirectory { get; set; }
4444
public static bool Verbose { get; set; }
4545

46+
#endregion Properties
47+
4648
#region Constructors
4749
// No constructors present.
4850
#endregion
@@ -128,6 +130,8 @@ public static void AppendVerboseValue(CommonAppSettings appSettings)
128130
Verbose = false;
129131
}
130132
}
133+
134+
#endregion Methods
131135
}
132136
}
133137

src/LCT.Common/SpdxBomParser.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,27 @@
1919

2020
namespace LCT.Common
2121
{
22+
/// <summary>
23+
/// Parses SPDX BOM files and converts them to CycloneDX format.
24+
/// </summary>
2225
public class SpdxBomParser : ISpdxBomParser
2326
{
27+
#region Fields
28+
29+
/// <summary>
30+
/// The logger instance for logging messages and errors.
31+
/// </summary>
2432
static readonly ILog Logger = LoggerFactory.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
33+
34+
#endregion Fields
35+
36+
#region Methods
37+
38+
/// <summary>
39+
/// Parses an SPDX BOM file and converts it to CycloneDX BOM format.
40+
/// </summary>
41+
/// <param name="filePath">The path to the SPDX BOM file to parse.</param>
42+
/// <returns>A CycloneDX BOM object containing parsed components and dependencies.</returns>
2543
public Bom ParseSPDXBom(string filePath)
2644
{
2745
Logger.DebugFormat("ParseSPDXBom():Starting SPDX BOM parsing for file: {0}", filePath);
@@ -378,6 +396,6 @@ private static List<Dependency> ConvertDependencyMapToCycloneDx(Dictionary<strin
378396
})];
379397
}
380398

381-
#endregion
399+
#endregion Methods
382400
}
383401
}

0 commit comments

Comments
 (0)