Skip to content

Conversation

@lizlooney
Copy link
Collaborator

@lizlooney lizlooney commented Nov 25, 2025

Improved field validators in mrc_class_method_def, mrc_component, mrc_event, and mrc_mechanism blocks.

Fixes #332
Fixes #333
Fixes #324
Fixes #233
Fixes #276

…e and isMethodNameUsed to make function makeLegalName in validator.ts.

Updated mrc_class_method_def, mrc_component, mrc_event, and mrc_mechanism blocks to use makeLegalName.
@lizlooney lizlooney requested a review from alan412 November 25, 2025 07:13
Copy link
Collaborator

@alan412 alan412 left a comment

Choose a reason for hiding this comment

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

I really like the moving this to validator.ts and out of everywhere else. I haven't checked this on my system yet to make sure it fixes all the issues. I'll try to do that tonight. I had only one very minor comment.

Copy link
Collaborator

@alan412 alan412 left a comment

Choose a reason for hiding this comment

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

Checked it when I got home. works great!

@alan412 alan412 merged commit c297f46 into wpilibsuite:main Nov 25, 2025
1 check passed
@lizlooney lizlooney deleted the pr_validators branch November 26, 2025 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment