Skip to content

Commit 6d04ef4

Browse files
committed
Change more Ruby to QL
1 parent 7bac6a0 commit 6d04ef4

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

ql/src/codeql/files/FileSystem.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class File extends Container, @file {
178178
token = this.getAToken() and
179179
l = token.getLocation() and
180180
line in [l.getStartLine() .. l.getEndLine()] and
181-
if token instanceof @token_comment then comment = true else comment = false
181+
if token instanceof @token_block_comment then comment = true else comment = false
182182
)
183183
}
184184

tools/autobuild.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ type NUL && "%CODEQL_DIST%\codeql.exe" database index-files ^
55
--include-extension=.erb ^
66
--size-limit=5m ^
77
--language=ruby ^
8-
"%CODEQL_EXTRACTOR_RUBY_WIP_DATABASE%"
8+
"%CODEQL_EXTRACTOR_QL_WIP_DATABASE%"
99

1010
exit /b %ERRORLEVEL%

tools/autobuild.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
set -eu
44

55
exec "${CODEQL_DIST}/codeql" database index-files \
6-
--include-extension=.rb \
7-
--include-extension=.erb \
6+
--include-extension=.ql \
7+
--include-extension=.qll \
88
--size-limit=5m \
9-
--language=ruby \
9+
--language=ql \
1010
--working-dir=.\
11-
"$CODEQL_EXTRACTOR_RUBY_WIP_DATABASE"
11+
"$CODEQL_EXTRACTOR_QL_WIP_DATABASE"

tools/index-files.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@echo off
22

3-
type NUL && "%CODEQL_EXTRACTOR_RUBY_ROOT%\tools\win64\extractor.exe" ^
3+
type NUL && "%CODEQL_EXTRACTOR_QL_ROOT%\tools\win64\extractor.exe" ^
44
--file-list "%1" ^
5-
--source-archive-dir "%CODEQL_EXTRACTOR_RUBY_SOURCE_ARCHIVE_DIR%" ^
6-
--output-dir "%CODEQL_EXTRACTOR_RUBY_TRAP_DIR%"
5+
--source-archive-dir "%CODEQL_EXTRACTOR_QL_SOURCE_ARCHIVE_DIR%" ^
6+
--output-dir "%CODEQL_EXTRACTOR_QL_TRAP_DIR%"
77

88
exit /b %ERRORLEVEL%

tools/index-files.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -eu
44

5-
exec "${CODEQL_EXTRACTOR_RUBY_ROOT}/tools/${CODEQL_PLATFORM}/extractor" \
5+
exec "${CODEQL_EXTRACTOR_QL_ROOT}/tools/${CODEQL_PLATFORM}/extractor" \
66
--file-list "$1" \
7-
--source-archive-dir "$CODEQL_EXTRACTOR_RUBY_SOURCE_ARCHIVE_DIR" \
8-
--output-dir "$CODEQL_EXTRACTOR_RUBY_TRAP_DIR"
7+
--source-archive-dir "$CODEQL_EXTRACTOR_QL_SOURCE_ARCHIVE_DIR" \
8+
--output-dir "$CODEQL_EXTRACTOR_QL_TRAP_DIR"

tools/qltest.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ type NUL && "%CODEQL_DIST%\codeql.exe" database index-files ^
66
--include-extension=.erb ^
77
--size-limit=5m ^
88
--language=ruby ^
9-
"%CODEQL_EXTRACTOR_RUBY_WIP_DATABASE%"
9+
"%CODEQL_EXTRACTOR_QL_WIP_DATABASE%"
1010

1111
exit /b %ERRORLEVEL%

tools/qltest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ exec "${CODEQL_DIST}/codeql" database index-files \
99
--size-limit=5m \
1010
--language=ruby \
1111
--working-dir=.\
12-
"$CODEQL_EXTRACTOR_RUBY_WIP_DATABASE"
12+
"$CODEQL_EXTRACTOR_QL_WIP_DATABASE"

0 commit comments

Comments
 (0)