Skip to content

Commit

Permalink
sonar qube fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adityanarayanp committed Dec 7, 2023
1 parent 0eb259e commit 1dc3261
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 27 deletions.
25 changes: 0 additions & 25 deletions src/LCT.SW360PackageCreator/ConanPackageDownloader.cs

This file was deleted.

3 changes: 1 addition & 2 deletions src/LCT.SW360PackageCreator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ private static async Task InitiatePackageCreatorProcess(CommonAppSettings appSet
{
{ "NPM", new PackageDownloader() },
{ "NUGET", new PackageDownloader() },
{ "DEBIAN", new DebianPackageDownloader(debianPatcher) },
{ "CONAN", new ConanPackageDownloader() }
{ "DEBIAN", new DebianPackageDownloader(debianPatcher) }
};

ICreatorHelper creatorHelper = new CreatorHelper(_packageDownloderList);
Expand Down
7 changes: 7 additions & 0 deletions src/LCT.SW360PackageCreator/URLHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
using Microsoft.Web.Administration;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using YamlDotNet.Core;
using YamlDotNet.Core.Tokens;
using YamlDotNet.Serialization;
using YamlDotNet.Serialization.NamingConventions;
Expand Down Expand Up @@ -197,6 +198,12 @@ public async Task<string> GetSourceUrlForConanPackage(string componentName, stri
$"Exclude if it is an internal component or manually update the SRC url");
Logger.Debug($"GetSourceUrlForConanPackage()", ex);
}
catch(YamlException ex)
{
Logger.Warn($"Identification of SRC url failed for {componentName}, " +
$"Exclude if it is an internal component or manually update the SRC url");
Logger.Debug($"GetSourceUrlForConanPackage()", ex);
}
catch (ArgumentNullException ex)
{
Logger.Debug($"GetSourceUrlForConanPackage()", ex);
Expand Down

0 comments on commit 1dc3261

Please sign in to comment.