Ruby: Error parsing embedded multiline blocks
還沒有人認領這個 Issue。
評估
研究方向
首先使用 issue 中嵌入的 Ruby 範例重現 CodeQL 解析錯誤,重點關注巢狀的多行區塊。追蹤 Ruby 剖析器對這種類似 heredoc 的語法的處理;當具有此結構的有效程式碼能夠在不出現所回報錯誤的情況下完成剖析時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
Description of the issue
Seeing this error in the CodeQL run: A parse error occurred. Check the syntax of the file. If the file is invalid, correct the error or exclude the file from analysis.
The errored code block in question looks something like this and runs correctly.
<<~BLOCKA
if some_condition?
<<~BLOCKB
BLOCKB
end
BLOCKA
- 主要語言
- CodeQL
- 星號
- 10.1k
- 分支
- 2.1k
- 平均合併
- 2 天 10 小時
- 30 天內合併 PR
- 134
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/codeql 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 84/100
-
難度 2/5 1-3 小時 新手友好度 82/100
-
難度 2/5 1-3 小時 新手友好度 78/100
-
false-positive
難度 2/5 1-3 小時 新手友好度 70/100
-
false-positive
難度 3/5 1-2 天 新手友好度 68/100
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 86/100
objectionary/jeo-maven-plugin#1774 ·
-
compiler/runtime
難度 2/5 1-3 小時 新手友好度 76/100
-
bug
難度 2/5 1-3 小時 新手友好度 84/100
leanprover/lean4#15255 ·
-
bot-triaged module: correctness (silent) module: fx release triage triage review
難度 2/5 1-3 小時 新手友好度 86/100
-
Grammar Gap: activated › effect clause › {self} deals damage equal to its power to target creature 未關閉area:mechanics ready-for-agent
難度 2/5 1-3 小時 新手友好度 74/100
fil-donadoni/tolaria#4317 ·