mirror of
https://github.com/hohn/codeql-lab.git
synced 2025-12-16 09:53:04 +01:00
Add codeql-custom-queries-ruby
This commit is contained in:
12
codeql-custom-queries-ruby/example.ql
Normal file
12
codeql-custom-queries-ruby/example.ql
Normal 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."
|
||||
7
codeql-custom-queries-ruby/qlpack.yml
Normal file
7
codeql-custom-queries-ruby/qlpack.yml
Normal 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: "*"
|
||||
1
codeql-custom-queries-ruby/queries.xml
Normal file
1
codeql-custom-queries-ruby/queries.xml
Normal file
@@ -0,0 +1 @@
|
||||
<queries language="ruby"/>
|
||||
Reference in New Issue
Block a user