mirror of
https://github.com/hohn/codeql-lab.git
synced 2025-12-18 02:43:03 +01:00
12 lines
204 B
Plaintext
12 lines
204 B
Plaintext
/**
|
|
* @name Empty block
|
|
* @kind problem
|
|
* @problem.severity warning
|
|
* @id ruby/example/empty-block
|
|
*/
|
|
|
|
import ruby
|
|
|
|
from Block b
|
|
where b.getNumberOfStatements()= 0
|
|
select b, "This is an empty block." |