-
Im using PyRight for static code checking. In the text formats described in the documentation
Pyright uses a slightly different log format, but it's not to difficult to transform with a regex to match. The line format is clear , but not what the accepted values or interpretation of based on the below sample PyRight log .\stubs\micropython-latest-docstubs\machine.py
.\stubs\micropython-latest-docstubs\machine.py:221:37 - info: "IRQ_FALLING" is unbound (reportUnboundVariable)
.\stubs\micropython-latest-docstubs\machine.py:575:59 - info: "IDLE" is unbound (reportUnboundVariable)
.\stubs\micropython-latest-docstubs\machine.py:617:18 - info: "MSB" is unbound (reportUnboundVariable)
.\stubs\micropython-latest-docstubs\machine.py:705:18 - warning: "MSB" is not defined (reportUndefinedVariable)
.\stubs\micropython-latest-docstubs\machine.py:1039:50 - info: "IDLE" is unbound (reportUnboundVariable)
.\stubs\micropython-latest-docstubs\machine.py:1068:28 - info: "PERIODIC" is unbound (reportUnboundVariable)
.\stubs\micropython-latest-docstubs\machine.pyi
.\stubs\micropython-latest-docstubs\machine.pyi:32:62 - error: Non-default argument follows default argument transformed to match the GCC format : (
I see a mapping of the log the Severity
If I look in the metrics I see no 'Low' metrics captured, and I expected the info class to be seen as Low , similar as Error is seen as High . |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Just to confirm, by PyRight you mean https://github.com/microsoft/pyright? As you discovered its output requires minor adjustment (i.e. We would consider, updating Testspace to support the PyRight unique output format. Meanwhile, do you thing it is appropriate to have PyRight fixing its output to (questionably) be more standard (widely accepted) format? I believe, the required changes are isolated to single function: |
Beta Was this translation helpful? Give feedback.
Just to confirm, by PyRight you mean https://github.com/microsoft/pyright?
As you discovered its output requires minor adjustment (i.e.
:
vs-
) to match the Testspace expected format. In addition, to properly processinfo
entries, you would have to change them toinformation
(full word).We would consider, updating Testspace to support the PyRight unique output format. Meanwhile, do you thing it is appropriate to have PyRight fixing its output to (questionably) be more standard (widely accepted) format? I believe, the required changes are isolated to single function:
-
to:
at https://github.com/microsoft/pyright/blob/1732614749ff77fab577ba6af02d92cb253882c5/packages/pyright-internal/s…