github / github/codeql

Query: increase size of code-snippet context exported in SARIF?

未關閉
#20,176 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
question
主要語言
CodeQL
星號
10.1k
分支
2.1k
平均合併
2 天 15 小時
30 天內合併 PR
141

描述

**Description of the issue**
How to modify --[no-]sarif-add-snippets to show more context? Currently, it only displays 2 lines by default.

貢獻指南

開啟貢獻指南

研究方向

首先定位 --[no-]sarif-add-snippets 選項,以及決定目前兩行上下文的 SARIF 匯出路徑。釐清所需的上下文大小,然後驗證產生的 SARIF 輸出是否包含擴充後的程式碼片段上下文。

由索引模型根據 Issue 內容生成。

評估

領域
security
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。