Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 0 deletions
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" />
Lines changed: 10 additions & 0 deletions
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‎

Lines changed: 2 additions & 2 deletions
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+
privatereadonlyIntPtr _nativeArray;
12+
privatereadonlyList<IntPtr> _nativeItems;
1313
bool _disposed = false;
1414

1515
public ClikeStringArray(int num, int stringCapacity)

‎CSharpRegexTools4Npp/PluginInfrastructure/NotepadPPGateway.cs‎

Lines changed: 2 additions & 2 deletions
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+
privateIntPtr 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+
privateIntPtr Send(NppMsg command, IntPtr wParam, IntPtr lParam)
3636
{
3737
return Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)command, wParam, lParam);
3838
}

‎CSharpRegexTools4Npp/PluginInfrastructure/UnmanagedExports.cs‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /