Skip to content
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

Add CSharp implementation of proposed NamingService #25

Merged
merged 6 commits into from
Dec 4, 2024

Conversation

Laurens-W
Copy link
Contributor

What's changed?

Add CSharp implementation of proposed NamingService

Anyone you would like to review specifically?

@timtebeek @OlegDokuka @knutwannheden

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

@Laurens-W Laurens-W added the enhancement New feature or request label Nov 27, 2024
@Laurens-W Laurens-W self-assigned this Nov 27, 2024
@Laurens-W Laurens-W force-pushed the csharp-naming-service branch from 6d21307 to 1c2cbce Compare November 28, 2024 15:23
Comment on lines +25 to +26
private static final Pattern STANDARD_METHOD_NAME = Pattern.compile("^[A-Z][a-zA-Z0-9]*$");
private static final Pattern SNAKE_CASE = Pattern.compile("^[a-zA-Z0-9]+_\\w+$");
Copy link
Contributor

Choose a reason for hiding this comment

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

We made some changes in openrewrite/rewrite#4725 ; might be best to similarly test here that we use C# expected naming from a few valid but odd inputs in a unit test.

@Laurens-W Laurens-W marked this pull request as ready for review December 4, 2024 09:45
@Laurens-W Laurens-W merged commit e5e4bd7 into main Dec 4, 2024
2 checks passed
@Laurens-W Laurens-W deleted the csharp-naming-service branch December 4, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants