Skip to content

FR: Add an "all naming rule violations fixer" #1642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
santo998 opened this issue Apr 1, 2025 · 2 comments
Open

FR: Add an "all naming rule violations fixer" #1642

santo998 opened this issue Apr 1, 2025 · 2 comments

Comments

@santo998
Copy link

santo998 commented Apr 1, 2025

Hi team,

When enforcing naming conventions using Roslyn analyzers (e.g., through Directory.Build.props or editorconfig), it's common to encounter many IDE1006 warnings (naming rule violations) — especially now that we're increasingly using AI-generated code, which might not always follow our project's naming rules.

For example, suppose I configured my IDE to enforce camelCase for private methods. If I write:

GetClient() {}
GetProduct() {}
InsertClient() {}
InsertProduct() {}

The IDE correctly raises IDE1006 for the four methods, since the names violate the rule. However, I can only fix them one by one via quick actions, which is very time-consuming when dealing with a large codebase.

Feature Request: It would be extremely useful to have the ability to apply all IDE1006 fixes in the current document, project, or solution — similar to how other refactorings or code cleanups work.

This would:

  • Save time when enforcing naming conventions across a codebase

  • Improve workflow automation

  • Eliminate the need to spend tokens in AI prompts just to enforce syntax/naming preferences

  • Make it easier to adopt naming rules consistently in projects

Is there any current workaround or plan to support this kind of bulk naming fix?
Thanks for considering this!

@josefpihrt
Copy link
Collaborator

Hi, I'm sure I understand. Could you be more specific please?

@santo998
Copy link
Author

santo998 commented Apr 6, 2025

@josefpihrt done! TY so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants