Merge pull request #86 from qwerty250/main

Add codeql-custom-queries-ruby
This commit is contained in:
Shati Patel
2021-11-09 10:20:00 +00:00
committed by GitHub
4 changed files with 23 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"/>

View File

@@ -18,6 +18,9 @@
{
"path": "codeql-custom-queries-python"
},
{
"path": "codeql-custom-queries-ruby"
},
{
"path": "codeql-go"
},