Skip to content

Commit 2c231d6

Browse files
Sébastien GeiserSébastien Geiser
Sébastien Geiser
authored and
Sébastien Geiser
committed
refactoring to suppress warnings and messages
1 parent 570b9a8 commit 2c231d6

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

CSharpRegexTools4Npp/CSharpRegexTools4Npp.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
<ItemGroup>
8585
<!-- forms -->
8686
<!-- infrastructure -->
87+
<Compile Include="GlobalSuppressions.cs" />
8788
<Compile Include="PluginInfrastructure\CLikeStringArray.cs" />
8889
<Compile Include="PluginInfrastructure\DllExport\DllExportAttribute.cs" />
8990
<Compile Include="PluginInfrastructure\Docking_h.cs" />
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// This file is used by Code Analysis to maintain SuppressMessage
2+
// attributes that are applied to this project.
3+
// Project-level suppressions either have no target or are given
4+
// a specific target and scoped to a namespace, type, member, etc.
5+
6+
using System.Diagnostics.CodeAnalysis;
7+
8+
9+
[assembly: SuppressMessage("Style", "IDE0060:Remove unused parameter", Justification = "<Pending>", Scope = "namespaceanddescendants", Target = "~N:CSharpRegexTools4Npp")]
10+
[assembly: SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "<Pending>", Scope = "namespaceanddescendants", Target = "~N:CSharpRegexTools4Npp")]

CSharpRegexTools4Npp/PluginInfrastructure/ClikeStringArray.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ namespace CSharpRegexTools4Npp.PluginInfrastructure
88
{
99
public class ClikeStringArray : IDisposable
1010
{
11-
IntPtr _nativeArray;
12-
List<IntPtr> _nativeItems;
11+
private readonly IntPtr _nativeArray;
12+
private readonly List<IntPtr> _nativeItems;
1313
bool _disposed = false;
1414

1515
public ClikeStringArray(int num, int stringCapacity)

CSharpRegexTools4Npp/PluginInfrastructure/NotepadPPGateway.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ IntPtr Send(NppMsg command, int wParam, NppMenuCmd lParam)
2727
return Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)command, wParam, lParam);
2828
}
2929

30-
IntPtr Send(NppMsg command, int wParam, int lParam)
30+
private IntPtr Send(NppMsg command, int wParam, int lParam)
3131
{
3232
return Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)command, wParam, lParam);
3333
}
3434

35-
IntPtr Send(NppMsg command, IntPtr wParam, IntPtr lParam)
35+
private IntPtr Send(NppMsg command, IntPtr wParam, IntPtr lParam)
3636
{
3737
return Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)command, wParam, lParam);
3838
}

CSharpRegexTools4Npp/PluginInfrastructure/UnmanagedExports.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static IntPtr getFuncsArray(ref int nbF)
2929
}
3030

3131
[DllExport(CallingConvention = CallingConvention.Cdecl)]
32-
static uint messageProc(uint Message, IntPtr wParam, IntPtr lParam)
32+
static uint messageProc(uint message, IntPtr wParam, IntPtr lParam)
3333
{
3434
return 1;
3535
}

0 commit comments

Comments
 (0)