Closed opeco17 closed 1 year ago
The following lines should be inside else
, and should not be executed when --json
is specified.
https://github.com/opeco17/poetry-audit-plugin/blob/main/poetry_audit_plugin/command.py#L54-L62
if you want I can fix it while doing the ignore vulnerabilities
Also, if you put that if inside the else of self.option("json")
, you will get always a return code of 0 no matter if you founded vulnerabilities if you put the --json flag.
Let me close this issue since it has been fixed in https://github.com/opeco17/poetry-audit-plugin/pull/8
Command
Result
Bug
local variable 'vulnerability_num' referenced before assignment
should not appear