Query: increase size of code-snippet context exported in SARIF?
Open
question
- Dominant language
- CodeQL
- Stars
- 10.1k
- Forks
- 2.1k
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 141
Description
**Description of the issue**
How to modify --[no-]sarif-add-snippets to show more context? Currently, it only displays 2 lines by default.
Contributor guide
Research direction
Start by locating the --[no-]sarif-add-snippets option and the SARIF export path where the current two-line context is determined. Clarify the desired context size, then verify generated SARIF output includes the expanded snippet context.
Written by the indexing model from the issue text.
Assessment
- Domain
- security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100