/** * @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."