File tree Expand file tree Collapse file tree
PropertyChangedAnalyzers.Test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
34namespace PropertyChangedAnalyzers . Test
45{
56 using System ;
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff line change 1- // ReSharper disable All
1+ // ReSharper disable All
22namespace 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}
Original file line number Diff line number Diff line change 1212
1313## Description
1414
15- Use [ CallerMemberName]
15+ Use [ CallerMemberName] .
1616
1717## Motivation
1818
Original file line number Diff line number Diff line change 1111
1212## Description
1313
14- Struct must not implement INotifyPropertyChanged
14+ Struct must not implement INotifyPropertyChanged.
1515
1616## Motivation
1717
You can’t perform that action at this time.
0 commit comments