Skip to content

Commit e16b85e

Browse files
committed
Add codeql-extractor config
1 parent 12571db commit e16b85e

File tree

5 files changed

+43
-0
lines changed

5 files changed

+43
-0
lines changed

codeql-extractor.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: "ruby"
2+
display_name: "Ruby"
3+
version: 0.1
4+
column_kind: "utf8"
5+
file_types:
6+
- name: ruby
7+
display_name: Ruby files
8+
extensions:
9+
- .rb

tools/autobuild.cmd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@echo off
2+
3+
type NUL && "%CODEQL_DIST%\codeql.exe" database index-files ^
4+
--include-extension=.rb ^
5+
--size-limit=5m ^
6+
--language=ruby ^
7+
"%CODEQL_EXTRACTOR_RUBY_WIP_DATABASE%"
8+
9+
exit /b %ERRORLEVEL%

tools/autobuild.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
3+
set -eu
4+
5+
exec "${CODEQL_DIST}/codeql" database index-files \
6+
--include-extension=.rb \
7+
--size-limit=5m \
8+
--language=ruby \
9+
"$CODEQL_EXTRACTOR_RUBY_WIP_DATABASE"

tools/index-files.cmd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@echo off
2+
3+
type NUL && "%CODEQL_EXTRACTOR_RUBY_ROOT%\tools\win64\extractor.exe" ^
4+
--file-list "%1" ^
5+
--source-archive-dir "%CODEQL_EXTRACTOR_RUBY_SOURCE_ARCHIVE_DIR%" ^
6+
--output-dir "%CODEQL_EXTRACTOR_RUBY_TRAP_DIR%"
7+
8+
exit /b %ERRORLEVEL%

tools/index-files.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
set -eu
4+
5+
exec "${CODEQL_EXTRACTOR_RUBY_ROOT}/tools/${CODEQL_PLATFORM}/extractor" \
6+
--file-list "$1" \
7+
--source-archive-dir "$CODEQL_EXTRACTOR_RUBY_SOURCE_ARCHIVE_DIR" \
8+
--output-dir "$CODEQL_EXTRACTOR_RUBY_TRAP_DIR"

0 commit comments

Comments
 (0)