Hi,
I am trying to develop a Checks API plugin that reads issues from a SonarQube server and reports them to Gerrit.
I can retrieve the issues fine and find the ones that are relevant to a Gerrit change.
But I have an issue linking them to the code locations in Gerrit.
I found a comment
here that tells me that inline comments should be possible by using a CodePointer. I tried that, but could not succeed yet.
Here is my issue:
I have the following CheckResult:

The result is detected by Gerrit and displayed in the Checks tab:

The file in the file list shows a badge for the error:
So far, so good. But here the issues begin:
In the file, I do not see an inline comment that displays the issue again (I expected one from the information stated in the linked message above)
And the link in the Checks tab has a target that results in a 404:
A working link would for example be /c/test/+/1/4/SoftwareValidator.java#1314, including the patchset number.
Yet, the link that Gerrit generates for me does not include the patchset number and therefore does not work.
Can the Checks API display an inline comment in the source file? If yes, how does my CheckResult need to look like for the comment to be displayed?
How does my CheckResult need to look like so that a working link is generated in the Checks Tab?
Gerrit Version is 3.13.1
Thanks,
Kate