Files
codeql-lab/codeql-custom-queries-ruby/example.ql
2021-11-09 10:19:00 +00:00

13 lines
206 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."