nosemgrep
comments not honored by extension in python #159
Open
Description
Anonymized python:
class MyClass (
ABadClass, # nosemgrep: myrule
AnotherClass,
ADifferentClass,
): ...
Anonymized rule:
- id: myrule
languages:
- python
severity: ERROR
message: Do not use ABadClass
pattern-regex: .*ABadClass.*
Via CLI, the nosemgrep
line correctly ignores the error. Via the plugin, the error is not ignored.