Skip to content

Commit 28fd8b6

Browse files
committed
Fix warnings.
1 parent 22c3752 commit 28fd8b6

5 files changed

Lines changed: 8 additions & 7 deletions

File tree

PropertyChangedAnalyzers.Test/DocumentationTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#pragma warning disable CA1056 // Uri properties should not be strings
22
#pragma warning disable CA1307 // Specify StringComparison for clarity
3+
#pragma warning disable CA1305 // Specify IFormatProvider
34
namespace PropertyChangedAnalyzers.Test
45
{
56
using System;

PropertyChangedAnalyzers/Descriptors.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ internal static class Descriptors
3838
category: AnalyzerCategory.PropertyChanged,
3939
defaultSeverity: DiagnosticSeverity.Warning,
4040
isEnabledByDefault: true,
41-
description: "Use [CallerMemberName]");
41+
description: "Use [CallerMemberName].");
4242

4343
internal static readonly DiagnosticDescriptor INPC005CheckIfDifferentBeforeNotifying = Create(
4444
id: "INPC005",
@@ -83,7 +83,7 @@ internal static class Descriptors
8383
category: AnalyzerCategory.PropertyChanged,
8484
defaultSeverity: DiagnosticSeverity.Error,
8585
isEnabledByDefault: true,
86-
description: "Struct must not implement INotifyPropertyChanged");
86+
description: "Struct must not implement INotifyPropertyChanged.");
8787

8888
internal static readonly DiagnosticDescriptor INPC009NotifiesForMissingProperty = Create(
8989
id: "INPC009",

ValidCode/Mouse.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ReSharper disable All
1+
// ReSharper disable All
22
namespace ValidCode
33
{
44
using System;
@@ -33,9 +33,9 @@ public static Point Position
3333
}
3434

3535
[DllImport("user32.dll", SetLastError = true)]
36-
public static extern bool GetCursorPos(out Point lpPoint);
36+
private static extern bool GetCursorPos(out Point lpPoint);
3737

3838
[DllImport("user32.dll", SetLastError = true)]
39-
public static extern bool SetCursorPos(int x, int y);
39+
private static extern bool SetCursorPos(int x, int y);
4040
}
4141
}

documentation/INPC004.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
## Description
1414

15-
Use [CallerMemberName]
15+
Use [CallerMemberName].
1616

1717
## Motivation
1818

documentation/INPC008.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
## Description
1313

14-
Struct must not implement INotifyPropertyChanged
14+
Struct must not implement INotifyPropertyChanged.
1515

1616
## Motivation
1717

0 commit comments

Comments
 (0)