URI incorrectly has many line specifiers in it
Closed this issue · 0 comments
ericwb commented
Describe the bug
The artifact URI has too many line numbers in it.
To Reproduce
Steps to reproduce the behavior:
precli -r https://github.com/bloomberg/memray
Expected behavior
⚠️ Warning on line 118 in
https://github.com/bloomberg/memray/blob/main/benchmarks/benchmarking/cases/json_loads_memray.py#L99
#L100#L101#L102#L103#L104#L105#L106#L107#L108#L109#L110#L111#L112#L113#L114#L115#L116#L117#L118
PY008: Deserialization of Untrusted Data
Potential unsafe usage of 'json.loads' that can allow instantiation of arbitrary objects.
117 json.loads(obj)
❱ 118 json.loads(obj)
119 dt = pyperf.perf_counter() - t0
Version
precli 0.3.1.dev3
python version = 3.12.1 (main, Dec 12 2023, 13:19:17) [Clang 15.0.0 (clang-1500.0.40.1)]
Additional context
n/a