Skip to content

Commit

Permalink
refactor: delete common project
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawkyZ committed Nov 26, 2024
1 parent ed05a5d commit ed6da0e
Show file tree
Hide file tree
Showing 46 changed files with 137 additions and 384 deletions.
40 changes: 0 additions & 40 deletions Snyk.Common/FileUtil.cs

This file was deleted.

36 changes: 0 additions & 36 deletions Snyk.Common/Properties/AssemblyInfo.cs

This file was deleted.

27 changes: 0 additions & 27 deletions Snyk.Common/Service/SnykUser.cs

This file was deleted.

124 changes: 0 additions & 124 deletions Snyk.Common/Snyk.Common.csproj

This file was deleted.

23 changes: 0 additions & 23 deletions Snyk.Common/SnykAppSettings.cs

This file was deleted.

6 changes: 0 additions & 6 deletions Snyk.Common/appsettings.development.json

This file was deleted.

6 changes: 0 additions & 6 deletions Snyk.Common/appsettings.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using Snyk.Common;
using Snyk.Common.Settings;
using Snyk.VisualStudio.Extension.Language;
using Snyk.VisualStudio.Extension.Settings;

namespace Snyk.VisualStudio.Extension.Analytics
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Snyk.Common.Authentication
namespace Snyk.VisualStudio.Extension.Authentication
{
/// <summary>
/// Util for AuthenticationToken strings.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.ComponentModel;

namespace Snyk.Common.Authentication
namespace Snyk.VisualStudio.Extension.Authentication
{
public enum AuthenticationType
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using Newtonsoft.Json;
using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using System;
namespace Snyk.Common.Authentication

namespace Snyk.VisualStudio.Extension.Authentication
{
[JsonObject(NamingStrategyType = typeof(SnakeCaseNamingStrategy))]
public class OAuthToken
Expand Down
2 changes: 2 additions & 0 deletions Snyk.VisualStudio.Extension.2022/CLI/SnykCli.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
using Serilog;
using Snyk.Common;
using Snyk.Common.Settings;
using Snyk.VisualStudio.Extension.Settings;

namespace Snyk.VisualStudio.Extension.CLI
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public override async Task UpdateStateAsync()
protected override void Execute(object sender, EventArgs eventArgs)
{
base.Execute(sender, eventArgs);
ThreadHelper.JoinableTaskFactory.RunAsync(SnykTasksService.Instance.ScanAsync);
ThreadHelper.JoinableTaskFactory.RunAsync(SnykTasksService.Instance.ScanAsync).FireAndForget();
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
namespace Snyk.Common
{
using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;

namespace Snyk.VisualStudio.Extension.Download
{
/// <summary>
/// Methods related to Sha256 encoding.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using Snyk.VisualStudio.Extension.CLI;
using Snyk.VisualStudio.Extension.Language;
using Snyk.VisualStudio.Extension.Service;
using Snyk.VisualStudio.Extension.Settings;
using Snyk.VisualStudio.Extension.UI.Notifications;

namespace Snyk.VisualStudio.Extension.Download
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace Snyk.Common
{
using System.Collections.Generic;
using System.Linq;
using System.Collections.Generic;
using System.Linq;

namespace Snyk.VisualStudio.Extension.Extension
{
/// <summary>
/// Common extension methods implementations.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace Snyk.Common
{
using System;
using System.Text.RegularExpressions;
using System;
using System.Text.RegularExpressions;

namespace Snyk.VisualStudio.Extension.Extension
{
/// <summary>
/// Extension methods for string class.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public class SnykLsInitializationOptions
public string SnykCodeApi { get; set; }
public int HoverVerbosity { get; set; }
public string OutputFormat { get; set; }

public FolderConfig FolderConfigs { get; set; }
public bool EnableDeltaFindings { get; set; }
public List<FolderConfig> FolderConfigs { get; set; }
}

public class FolderConfig
Expand Down
Loading

0 comments on commit ed6da0e

Please sign in to comment.