Skip to content

Code Quality: Remove unused analyzer for localization resources - #18844

Merged
yair100 merged 2 commits into
files-community:mainfrom
0x5bfa:removeanalyzers
Aug 20, 2026
Merged

Code Quality: Remove unused analyzer for localization resources#18844
yair100 merged 2 commits into
files-community:mainfrom
0x5bfa:removeanalyzers

Conversation

@0x5bfa

@0x5bfa 0x5bfa commented Aug 19, 2026

Copy link
Copy Markdown
Member

Resolved / Related Issues

None

Steps used to test these changes

  1. Build the app
  2. Launch the app

Copilot AI lite review requested due to automatic review settings August 19, 2026 19:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes an unused localization-related analyzer/code fix from the Files.Core.SourceGenerator project to reduce maintenance surface and dependencies within the source-generator/analyzer component of the codebase.

Changes:

  • Deleted the StringsPropertyAnalyzer (FSG1002) and its corresponding StringsPropertyCodeFixProvider.
  • Removed the FSG1002 diagnostic descriptor and related constants from Constants.cs.
  • Dropped now-unneeded global usings and the Microsoft.CodeAnalysis.Workspaces.Common package reference, and updated analyzer release tracking to remove FSG1002.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Files.Core.SourceGenerator/GlobalUsings.cs Removes global usings that were only required by the deleted analyzer/code fix implementation.
src/Files.Core.SourceGenerator/Files.Core.SourceGenerator.csproj Removes the Workspaces package dependency no longer needed after deleting the code fix/analyzer.
src/Files.Core.SourceGenerator/Constants.cs Deletes FSG1002 descriptor and related constants used exclusively by the removed analyzer/code fix.
src/Files.Core.SourceGenerator/CodeFixProviders/StringsPropertyCodeFixProvider.cs Deletes the unused code fix provider.
src/Files.Core.SourceGenerator/Analyzers/StringsPropertyAnalyzer.cs Deletes the unused analyzer rule implementation.
src/Files.Core.SourceGenerator/AnalyzerReleases.Unshipped.md Removes the FSG1002 entry from unshipped analyzer rule tracking.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@0x5bfa

0x5bfa commented Aug 19, 2026

Copy link
Copy Markdown
Member Author

it wasnt a good idea to put code fixers / analyzers in a codegen project and the project was emitting a warning but now we can delete them.

@yair100

yair100 commented Aug 19, 2026

Copy link
Copy Markdown
Member

Please resolve conflicts and fill out the steps used to test these changes.

@0x5bfa

0x5bfa commented Aug 19, 2026

Copy link
Copy Markdown
Member Author

@yair100 Done.

@yair100
yair100 self-requested a review August 19, 2026 21:30
@yair100 yair100 added the ready for review Pull requests that are ready for review label Aug 19, 2026
Comment thread src/Files.Core.SourceGenerator/Files.Core.SourceGenerator.csproj
Removed Microsoft.CodeAnalysis.Workspaces.Common package version.
@yair100 yair100 added ready to merge Pull requests that are approved and ready to merge and removed ready for review Pull requests that are ready for review labels Aug 20, 2026
@yair100
yair100 merged commit fca6ddf into files-community:main Aug 20, 2026
8 checks passed
@0x5bfa
0x5bfa deleted the removeanalyzers branch August 20, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Pull requests that are approved and ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants