github / github/codeql

Suggestion: Queries for test code should show results despite test classifier

オープン
#5,551 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
acknowledged enhancement not security
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
141

説明

LGTM [classifies files](https://lgtm.com/help/lgtm/file-classification) and then omits files with a classifier from the results. This also includes test code.

However, often queries are explicitly written for test code, because broken test code can be nearly as problematic as broken production code. For the Java library there even exists an [`Assertions` module](https://codeql.github.com/codeql-standard-libraries/java/semmle/code/java/frameworks/Assertions.qll/module.Assertions.html) covering some unit test classes and methods.
It would therefore be good if queries could, for example as part of their [metadata](https://codeql.github.com/docs/writing-codeql-queries/metadata-for-codeql-queries/), specify that their results should also be reported for code classified as test.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。