microsoft / sarif-tutorials

User-friendly documentation for the SARIF file format.
Creative Commons Attribution 4.0 International
284 stars 56 forks source link

Can the location in the result object be clickable in web view? #30

Open dmsehuang opened 2 years ago

dmsehuang commented 2 years ago

I know when we double click the path in VS Code, the editor will bring us to the exact location of the error. Do we have similar feature in web view?

In my repo, I have a file named urls.md under the docs/docs2 folder and I define the location in the following way:

         "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "docs/docs2/urls.md",
                },
                "region": {
                  "startLine": 11,
                  "startColumn": 7
                }
              }
            }
          ]

When I run this in an Azure Pipeline, the path is just not clickable. However, if I replaced the uri property with some an absolute url, such as https://bing.com, it is clickable.