Add codeql-custom-queries-ruby

This commit is contained in:
qwerty250
2021-11-06 18:20:53 +08:00
parent c01f09a4b8
commit 72d2e17c2d
3 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
/**
* @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."

View File

@@ -0,0 +1,7 @@
# Change 'getting-started' to the name of a user or organization that you have write access to.
name: getting-started/codeql-extra-queries-ruby
version: 0.0.0
dependencies:
# This uses the latest version of the codeql/ruby-all library.
# You may want to change to a more precise semver string.
codeql/ruby-all: "*"

View File

@@ -0,0 +1 @@
<queries language="ruby"/>