Skip to content

Commit 0066058

Browse files
committed
fix(sdk): Fix a few Sonar issues regarding maintainability
1 parent a465e0c commit 0066058

4 files changed

Lines changed: 15 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
using System;
2+
using System.Runtime.InteropServices;
3+
4+
[assembly: CLSCompliant(true)]
5+
[assembly: ComVisible(false)]

‎src/sdk/waveIDE.SDK.Clients/PluginContext.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace OceanApocalypse.Wave.SDK.Clients;
44

5+
/// <summary>
6+
/// The exposed plugin API plugins can use to interact with the underlying host.
7+
/// </summary>
58
public sealed class PluginContext
69
{
710
public WorkspaceApi Workspace { get; }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[assembly: System.Runtime.Versioning.SupportedOSPlatform("browser")]
2+
[assembly: System.CLSCompliant(true)]
23
[assembly: System.Runtime.InteropServices.ComVisible(false)]

‎src/ui/waveIDE.UI/App.axaml.cs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
using OceanApocalypse.Wave.IDE.UI.ViewModels;
77
using OceanApocalypse.Wave.IDE.UI.Views;
8+
using System;
89

910
namespace OceanApocalypse.Wave.IDE.UI;
1011

@@ -41,7 +42,11 @@ public override void OnFrameworkInitializationCompleted()
4142
Page = new MainView { DataContext = new MainViewModel() }
4243
};
4344
}
45+
else
46+
{
47+
throw new InvalidOperationException("waveIDE is not supported in this platform.");
48+
}
4449

4550
base.OnFrameworkInitializationCompleted();
4651
}
47-
}
52+
}

0 commit comments

Comments
 (0)