System.IO.Abstractions.Analyzers icon indicating copy to clipboard operation
System.IO.Abstractions.Analyzers copied to clipboard

Use Operations instead of SyntaxNodes for analysis

Open FantasyTeddy opened this issue 1 year ago • 0 comments

The main change in this PR is to use Operations instead of SyntaxNodes to perform the code analysis.

Additionally, the following smaller changes have been introduced:

  • Add a test case for non-related fields that should not trigger the analyzer.
  • Use Directory.Delete instead of the non-existing Directory.Remove method in the "WithOutFileSystem.txt" test for Directory.
  • Remove the "StaticInvocation.txt" test for DirectoryInfo, because no real static members exist for DirectoryInfo.
  • Use the .New() method for all code fixes instead of their previous counterpart.
  • Remove the ConfigurationBuilder in the Directory code fix test, because this does not compile.
  • Use Path.GetFullPath instead of Path.Exists, because the latter does not exist in .NET 6 (which the project currently still uses).

FantasyTeddy avatar May 04 '24 06:05 FantasyTeddy