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

panlint: Model messages as objects with a severity #266

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

jrha
Copy link
Member

@jrha jrha commented Dec 9, 2024

  • Give messages a unique ID to allow them to be referred to without breaking if the message text changes.
  • Give messages a severity to allow a threshold to be set in future.

This is one part of the work that was done at RAL back in 2018 to allow tests to be
suppressed with magic comments, cherry-picked out into a manageable chunk.

@jrha jrha force-pushed the message_severity branch 2 times, most recently from d4a4d61 to cafc7f7 Compare December 10, 2024 10:05
@jrha jrha mentioned this pull request Dec 10, 2024
@jrha jrha force-pushed the message_severity branch 3 times, most recently from eb21048 to a40e36c Compare December 10, 2024 16:21
@jrha jrha added this to the 10.8 milestone Dec 12, 2024
jrha added 2 commits December 12, 2024 12:22
- Update tests to handle new message format
- Drop severity of uppercase global variable check
- Add test to check that message IDs have a consistent format and are unique
- Fix _assert_lint_line docstring for messages being objects
@jrha jrha requested a review from wpoely86 December 12, 2024 12:22
@jrha jrha merged commit acd5596 into quattor:main Dec 16, 2024
2 checks passed
@jrha jrha deleted the message_severity branch December 16, 2024 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants