You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
toto.py:2: unused-variable(vulture): Unused variable 'a'
toto.py:2:4: [unused-variable(pylint), main]: Unused variable 'a'
toto.py:2:5: F841(pyflakes): local variable 'a' is assigned to but never used
...
=> We get another issue
=> It will be good if it will be completely ignored
Describe the solution you'd like
The solution I imagine:
In the tools classes, add a function to parse the lines of code to get the ignored codes. This will be implemented in the Pylint, Mypy and Ruff, the other tolls can't ignore a specific code, and that is necessary for our usage. For Ruff we should be sure that it will not create some issue with other tools.
Create a profile that ignores the duplicated check, but it's in the opposition of blending, and the advantage of the proposed solution we are more safe do not ignore a check to replace it by as less safe one.
The text was updated successfully, but these errors were encountered:
Issue
When we ignore a blended message, another one aspires
Create test environment
toto.py
:.prospector.yaml
file:Test blending => OK
prospector --no-blending --output-format=pylint toto.py
:prospector --output-format=pylint toto.py
:=> the blending works correctly
Test Ignore
Ignore the error with
# pylint: disable=unused-variable
=>
=> We get another issue
=> It will be good if it will be completely ignored
Describe the solution you'd like
The solution I imagine:
Describe alternatives you've considered
Create a profile that ignores the duplicated check, but it's in the opposition of blending, and the advantage of the proposed solution we are more safe do not ignore a check to replace it by as less safe one.
The text was updated successfully, but these errors were encountered: