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