pwntester/codeql.nvim

Feature: SARIF Viewer does not support current workspace files

Closed this issue · 0 comments

Issue Description

Type: feature request

Describe what happened (or what feature you want)

When using LoadSarif ... it seems that it only looks in the loaded database for the file in the SARIF. I was hoping to have support for files in the current working directory.

Describe what you expected to happen

If the file is present in the current workspace, the jump should check:

  1. Local DB loaded (priority)
  2. Support the local workspace file
  3. Error out if both aren't supported

How to reproduce it (as minimally and precisely as possible)

  1. Create / Download SARIF file
  2. Load Nvim in the location of the source code
  3. Run from Nvim LoadSarif path/to/file.sarif
    • Don't load the corresponding CodeQL database
  4. Navigate and try to jump to SARIF result location
  5. Get error in Nvim Cannot find source code for ...

Tell us your environment

  • NVIM v0.8.2

Anything else we need to know?