Skip to content

[FEATURE REQUEST] Be able to ignore a specific error code on a specific line of code #715

@sbrunner

Description

@sbrunner

Is your feature request related to a problem? Please describe. A clear and concise
description of what the problem is. Ex. I'm always frustrated when [...]

Currently, it's not possible to ignore a specific issue code on a line.

Describe the solution you'd like A clear and concise description of what you want to
happen.

Add comment # prospector: ignore=<source>.<code>

This is in pylint like syntax, we can also use ruff syntax => # prospector: noqa: <source>.<code>

Describe alternatives you've considered A clear and concise description of any
alternative solutions or features you've considered.

Improve the # noqa with the possibility to add more codes in the comments as Ruff do:
https://docs.astral.sh/ruff/linter/#error-suppression

Additional context Add any other context or screenshots about the feature request
here.

Advantage of # prospector:

  • Be able to add error on useless-supression
  • No bad interaction with other tools

Advantage of # noqa

  • Use more standard comment

As I understand in booth way, the code become specific to prospector

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions