We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d820ea0 commit 5953f42Copy full SHA for 5953f42
3 files changed
codeql-custom-queries-ruby/example.ql
@@ -0,0 +1,12 @@
1
+/**
2
+ * @name Empty block
3
+ * @kind problem
4
+ * @problem.severity warning
5
+ * @id ruby/example/empty-block
6
+ */
7
+
8
+import ruby
9
10
+from Block b
11
+where b.getNumberOfStatements()= 0
12
+select b, "This is an empty block."
codeql-custom-queries-ruby/qlpack.yml
@@ -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: "*"
codeql-custom-queries-ruby/queries.xml
@@ -0,0 +1 @@
+<queries language="ruby"/>
0 commit comments