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 keyword arguments for severity and tags in Diagnostic #290

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

smasato
Copy link
Contributor

@smasato smasato commented Feb 24, 2025

Changes

  • Add severity and tags as keyword arguments to Diagnostic#initialize with default values
  • Add attr_reader for tags attribute
  • Add comprehensive test cases in new test/diagnostic_test.rb
  • Remove TODO comments as the feature is now implemented

Testing

Added test cases to verify:

  • Default values (severity: error, tags: nil)
  • Custom severity settings
  • Custom tags settings
  • Combined severity and tags settings

- Add severity and tags as keyword arguments to Diagnostic#initialize
- Add attr_reader for tags attribute
- Add comprehensive test cases in new test/diagnostic_test.rb
- Remove TODO comments as the feature is now implemented

Co-Authored-By: Masato Sugiyama <public@smasato.net>
@mame mame merged commit 2871a3a into ruby:master Mar 5, 2025
7 checks passed
@mame
Copy link
Member

mame commented Mar 5, 2025

Sorry for the late review! I would like to add a configuration to set the default severity.

@smasato smasato deleted the feature/improve-diagnostic-severity branch March 5, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants