github / github/codeql

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

Aperta
#5,551 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
acknowledged enhancement not security
Lingua principale
CodeQL
Stelle
10.1k
Fork
2.1k
Merge medio
2g 15h
PR unite (30g)
141

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.