File tree Expand file tree Collapse file tree
System.IO.Abstractions.Analyzers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,6 +48,6 @@ protected override void AnalyzeCompilation(CompilationStartAnalysisContext compi
4848
4949 private bool IsStaticInvocationStartWith ( InvocationExpressionSyntax invocation ) => invocation . Expression . NormalizeWhitespace ( )
5050 . ToFullString ( )
51- . StartsWith ( GetFileSystemType ( ) . Name + "." ) ;
51+ . StartsWith ( GetFileSystemType ( ) . Name + "." , StringComparison . InvariantCultureIgnoreCase ) ;
5252 }
5353}
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public static UsingDirectiveSyntax GetSystemIoUsing(CompilationUnitSyntax unit)
4949 public static UsingDirectiveSyntax GetUsing ( CompilationUnitSyntax unit , string usingName )
5050 {
5151 return unit . Usings . FirstOrDefault ( x =>
52- x . Name . NormalizeWhitespace ( ) . ToFullString ( ) . Equals ( usingName ) ) ;
52+ x . Name . NormalizeWhitespace ( ) . ToFullString ( ) . Equals ( usingName , StringComparison . InvariantCultureIgnoreCase ) ) ;
5353 }
5454
5555 public static FieldDeclarationSyntax CreateFileSystemFieldDeclaration ( )
Original file line number Diff line number Diff line change 3636 </PropertyGroup >
3737 <ItemGroup >
3838 <PackageReference Include =" JetBrains.Annotations" Version =" 2019.1.1" PrivateAssets =" all" />
39- <PackageReference Include =" Microsoft.CodeAnalysis.Analyzers" Version =" 2.9.1 " PrivateAssets =" all" />
39+ <PackageReference Include =" Microsoft.CodeAnalysis.Analyzers" Version =" 2.9.2 " PrivateAssets =" all" />
4040 <PackageReference Include =" Microsoft.CodeAnalysis.CSharp" Version =" 3.0.0" PrivateAssets =" all" />
4141 <PackageReference Include =" Microsoft.CodeAnalysis.CSharp.Workspaces" Version =" 3.0.0" PrivateAssets =" all" />
4242 <PackageReference Update =" NETStandard.Library" PrivateAssets =" all" />
43- <PackageReference Include =" Microsoft.CodeQuality.Analyzers" Version =" 2.9.1" PrivateAssets =" all" />
44- <PackageReference Include =" Roslyn.Diagnostics.Analyzers" Version =" 2.9.1" PrivateAssets =" all" />
43+ <PackageReference Include =" Microsoft.CodeAnalysis.FxCopAnalyzers" Version =" 2.9.2" PrivateAssets =" all" />
44+ <PackageReference Include =" Microsoft.CodeQuality.Analyzers" Version =" 2.9.2" PrivateAssets =" all" />
45+ <PackageReference Include =" Roslyn.Diagnostics.Analyzers" Version =" 2.9.2" PrivateAssets =" all" />
4546 </ItemGroup >
4647 <ItemGroup >
4748 <None Update =" tools\*.ps1" CopyToOutputDirectory =" Always" Pack =" true" PackagePath =" " />
You can’t perform that action at this time.
0 commit comments