Skip to content

FR: diagnostic: Allow to disable diagnostic with comments #414

@ufechner7

Description

@ufechner7

pylint has the following options to disable warnings: https://pylint.readthedocs.io/en/latest/user_guide/messages/message_control.html

I like in particular the possibility to disable a warning in a specific line or block, using a special comment like

# pylint: disable-next=unbalanced-tuple-unpacking

I would like to have a special comment that works like this:

# jetls: disable-next=undef-global-var

This is a warning I get due to the buggy Base.@kwdef macro, so I would like to be able to disable it, but not globally, just for a specific line of code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    diagnosticRelated to the diagnostic feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions