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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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>
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.

1 participant