Skip to content

Conversation

@FantasyTeddy
Copy link
Contributor

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).

@inyutin-maxim inyutin-maxim modified the milestone: v12.2.21 Sep 24, 2025
@inyutin-maxim inyutin-maxim merged commit 384725e into TestableIO:develop Sep 24, 2025
@FantasyTeddy FantasyTeddy deleted the change-code-analysis branch September 24, 2025 14:34
@inyutin-maxim
Copy link
Collaborator

@FantasyTeddy Thank for great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants