vscode-codeql-starter/codeql-custom-queries-ruby/example.ql

13 строки
206 B
Plaintext
Исходник Обычный вид История

2021-11-06 13:20:53 +03:00
/**
* @name Empty block
* @kind problem
* @problem.severity warning
* @id ruby/example/empty-block
*/
import ruby
from Block b
2021-11-09 13:07:40 +03:00
where b.getNumberOfStatements() = 0
select b, "This is an empty block."