System.IO.Abstractions.Analyzers
System.IO.Abstractions.Analyzers copied to clipboard
Use Operations instead of SyntaxNodes for analysis
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.Deleteinstead of the non-existingDirectory.Removemethod in the "WithOutFileSystem.txt" test forDirectory. - Remove the "StaticInvocation.txt" test for
DirectoryInfo, because no real static members exist forDirectoryInfo. - Use the
.New()method for all code fixes instead of their previous counterpart. - Remove the
ConfigurationBuilderin theDirectorycode fix test, because this does not compile. - Use
Path.GetFullPathinstead ofPath.Exists, because the latter does not exist in .NET 6 (which the project currently still uses).