5066: shellcheck IndexError: list index out of range

Misery

What version of Review Board are you running?

7.0.4

What version of Review Bot are you running?

4.0

What tool(s) is Review Bot running?

shellcheck

What steps will reproduce the problem?

  1. Run shellcheck with moved files

I ran shellcheck locally and got this result. I don't know if it contains the problem.

$ shellcheck --format=json1 ios/ci/patchLocalSDK.sh
{"comments":[]}

$ shellcheck --format=json1 ios/ci/xccov-to-sonarqube-generic.sh
{"comments":[{"file":"ios/ci/xccov-to-sonarqube-generic.sh","line":28,"endLine":28,"column":26,"endColumn":47,"level":"info","code":2086,"message":"Double quote to prevent globbing and word splitting.","fix":{"replacements":[{"column":26,"endColumn":26,"endLine":28,"insertionPoint":"afterEnd","line":28,"precedence":10,"replacement":"\""},{"column":47,"endColumn":47,"endLine":28,"insertionPoint":"beforeStart","line":28,"precedence":10,"replacement":"\""}]}}]}

What is the expected output? What do you see instead?

2026-03-26 08:41:21,684 - ForkPoolWorker-32: reviewbot.tasks.RunTool(b0a053ac-58b0-4975-be0a-d1d74c96083c) - [ERROR] reviewbot.tasks: Error executing tool "ShellCheck": list index out of range (server=https://rb.domain.de/, review_request_id=136183, diff_revision=1)
Traceback (most recent call last):
File "/venv/lib/python3.12/site-packages/reviewbot/tasks.py", line 169, in RunTool
tool.execute(review,
File "/venv/lib/python3.12/site-packages/reviewbot/tools/base/tool.py", line 274, in execute
self.handle_files(review.files, kwargs)
File "/venv/lib/python3.12/site-packages/reviewbot/tools/base/tool.py", line 329, in handle_files
self.handle_file(f, path=path,
kwargs)
File "/venv/lib/python3.12/site-packages/reviewbot/tools/shellcheck.py", line 215, in handle_file
replacement_lines[replacement_norm_linenum]
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
IndexError: list index out of range

Please provide any additional information below.