Skip to content

Suppress Diagnostics Created When Adornment Fluent API Return Values Are Ignored #412

@JasonBock

Description

@JasonBock

Describe the solution you'd like
Take a look at the following code example:

Image

See those dots under the "ex" in expectations? That's IDE0058, which is giving us a hint that we shouldn't ignore the return value. But fluent APIs are all about ignoring return values :). So it might be nice for Rocks to detect when the following diagnostics are created with respect to an adornments fluent API invocation:

  • IDE0058
  • IDE0059
  • IDE0060

Basically, if an adornments return value is ignored and one of the diagnostics in the list is created, suppress it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions