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 can line validator #6

Merged
merged 1 commit into from
May 7, 2024
Merged

add can line validator #6

merged 1 commit into from
May 7, 2024

Conversation

Jack17432
Copy link
Member

No description provided.

@Jack17432 Jack17432 self-assigned this May 3, 2024
@Jack17432 Jack17432 requested a review from Zane-Larking May 6, 2024 07:43

defined_can_names = get_all_defined_can()
print(f"all defined can line names = {defined_can_names}")

for definition_message_name in definition_message_names:
if definition_message_name not in can_message_names:
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't you also check that all can messages have a definitions.yml entry?

Copy link
Member Author

Choose a reason for hiding this comment

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

I want to make it so that we can deprecate a message but still have its definition so that we could remove a part of the car and not have to write the message type when we re-add it to the car

Copy link
Contributor

@Zane-Larking Zane-Larking left a comment

Choose a reason for hiding this comment

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

Besides the comment I made on line 36 everything looks good.

@Jack17432 Jack17432 merged commit 4f51283 into main May 7, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants