mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
13 lines
211 B
Plaintext
13 lines
211 B
Plaintext
/**
|
|
* @name Singleton blocks
|
|
* @description Finds block statements containing a single statement.
|
|
* @tags block
|
|
* statement
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from BlockStmt b
|
|
where b.getNumberOfStmts() = 1
|
|
select b
|