Deviation code identifier and expanded macro elements
まだ誰も着手していません。
評価
調査の方向性
複数行の C++ マクロの例と、問題のあるパラメーターの横にあるコード識別子を使って問題を再現します。CodeQL Coding Standards が展開されたマクロ要素の逸脱をどのように処理するかを追跡し、その識別子がマクロ呼び出しの最終行に配置された場合と同様に、そこでもガイドラインを抑制することを確認します。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Whenever a guideline is positioned on an expanded element of a macro invocation spanning multiple lines, a deviation using a code identifier fails to suppress the guideline when position next to the offending parameter.
Macro(X,
Y, // CODE-IDENTIFIER
Z
)
To Reproduce
See example above
Expected behavior
Suppression of guideline
Screenshots
n/a
Environment
- CodeQL Coding Standards version: e.g. 0.7.0
- CodeQL version: 2.10.5
- Operating System: MacOS, Linux
Additional context
A current workaround is to place the code identifier on the last line of the macro invocation instead of the offending program element (e.g., macro invocation parameter)
Macro(X,
Y,
Z,
) // CODE-IDENTIFIER
- 主要言語
- CodeQL
- スター
- 227
- フォーク
- 82
- 平均マージ
- 6日 7時間
- マージ済み PR(30日)
- 9
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/codeql-coding-standards のほかの issue
-
false positive/false negative Stardard-MISRA-C++
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
github/codeql-coding-standards#1172 ·
-
Difficulty-Low false positive/false negative false-negative Impact-Low Standard-MISRA-C
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
Difficulty-Medium false positive/false negative false-positive Impact-Medium Standard-CERT-C
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
github/codeql-coding-standards#1200 ·
-
`RULE-0-0-1`: "unreachable statement" false positives due to over-pruning of the control-flow graph オープンfalse positive/false negative
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
github/codeql-coding-standards#1190 ·
-
false positive/false negative
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
github/codeql-coding-standards#1175 ·
github/codeql-coding-standards の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
palladius/rails8-app-on-gcp#145 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
elastic/gradle-plugins#156 ·
-
area:workflow bug ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
fil-donadoni/tolaria#4409 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dotenvx/dotenv-vscode#139 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Fission-AI/OpenSpec#1960 ·