Skip to content

Add proper handling to Ruby's Warning.categories #21

@schmidt

Description

@schmidt

Ruby supports categories for warnings. By default they are

> Warning.categories
=> [:deprecated, :experimental, :performance, :strict_unused_block]

It would be nice to support these categories first hand, e.g. by mapping :deprectated to StructuredWarnings::DeprecationWarning. Those categories can also be enabled/disabled explicitly. Maybe this can be translated to a similar behavior by enabling/disabling the matching structured warnings.

https://docs.ruby-lang.org/en/master/Warning.html#method-c-5B-5D-3D

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions