mirror of
https://github.com/github/codeql.git
synced 2026-02-19 16:33:40 +01:00
Merge pull request #3 from github/aibaars/codeql-extractor-yaml
Basic CodeQL extractor configuration and autobuild scripts
This commit is contained in:
9
codeql-extractor.yml
Normal file
9
codeql-extractor.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
name: "ruby"
|
||||
display_name: "Ruby"
|
||||
version: 0.1
|
||||
column_kind: "utf8"
|
||||
file_types:
|
||||
- name: ruby
|
||||
display_name: Ruby files
|
||||
extensions:
|
||||
- .rb
|
||||
9
tools/autobuild.cmd
Normal file
9
tools/autobuild.cmd
Normal file
@@ -0,0 +1,9 @@
|
||||
@echo off
|
||||
|
||||
type NUL && "%CODEQL_DIST%\codeql.exe" database index-files ^
|
||||
--include-extension=.rb ^
|
||||
--size-limit=5m ^
|
||||
--language=ruby ^
|
||||
"%CODEQL_EXTRACTOR_RUBY_WIP_DATABASE%"
|
||||
|
||||
exit /b %ERRORLEVEL%
|
||||
9
tools/autobuild.sh
Executable file
9
tools/autobuild.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
exec "${CODEQL_DIST}/codeql" database index-files \
|
||||
--include-extension=.rb \
|
||||
--size-limit=5m \
|
||||
--language=ruby \
|
||||
"$CODEQL_EXTRACTOR_RUBY_WIP_DATABASE"
|
||||
8
tools/index-files.cmd
Executable file
8
tools/index-files.cmd
Executable file
@@ -0,0 +1,8 @@
|
||||
@echo off
|
||||
|
||||
type NUL && "%CODEQL_EXTRACTOR_RUBY_ROOT%\tools\win64\extractor.exe" ^
|
||||
--file-list "%1" ^
|
||||
--source-archive-dir "%CODEQL_EXTRACTOR_RUBY_SOURCE_ARCHIVE_DIR%" ^
|
||||
--output-dir "%CODEQL_EXTRACTOR_RUBY_TRAP_DIR%"
|
||||
|
||||
exit /b %ERRORLEVEL%
|
||||
8
tools/index-files.sh
Executable file
8
tools/index-files.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
exec "${CODEQL_EXTRACTOR_RUBY_ROOT}/tools/${CODEQL_PLATFORM}/extractor" \
|
||||
--file-list "$1" \
|
||||
--source-archive-dir "$CODEQL_EXTRACTOR_RUBY_SOURCE_ARCHIVE_DIR" \
|
||||
--output-dir "$CODEQL_EXTRACTOR_RUBY_TRAP_DIR"
|
||||
Reference in New Issue
Block a user