Skip to content

It is needlessly complicated to suppress errors #4037

Open
@fingerartur

Description

@fingerartur

Here is a list of suppression tags and the corresponding errors that each tag covers. If I have an error/warning in my code and I want to suppress it, first I have to go to the wiki, find the corresponding suppression tag for my error and only then I can suppress it.

Ideally the compiler could output not only the error but also the suppression tag (in case I want to suppress).

Another great feature would be to follow the footsteps of Typescript and add a mechanism to ignore any type checks on a line of code (see @ts-ignore) or for a whole file (@ts-nocheck).

Metadata

Metadata

Assignees

No one assigned

    Labels

    featFeature Requesttriage-doneHas been reviewed by someone on triage rotation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions