Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75883b9

Browse files
committed
QLTest: ignore *.testproj folders
1 parent 7ab147a commit 75883b9

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

tools/qltest.cmd

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
@echo off
22

3-
CALL "%CODEQL_EXTRACTOR_RUBY_ROOT%\tools\autobuild.cmd"
3+
type NUL && "%CODEQL_DIST%\codeql.exe" database index-files ^
4+
--prune=**/*.testproj ^
5+
--include-extension=.rb ^
6+
--include-extension=.erb ^
7+
--size-limit=5m ^
8+
--language=ruby ^
9+
"%CODEQL_EXTRACTOR_RUBY_WIP_DATABASE%"
410

511
exit /b %ERRORLEVEL%

tools/qltest.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1-
#! /bin/sh
1+
#!/bin/sh
22

3-
exec "${CODEQL_EXTRACTOR_RUBY_ROOT}/tools/autobuild.sh"
3+
set -eu
4+
5+
exec "${CODEQL_DIST}/codeql" database index-files \
6+
--prune="**/*.testproj" \
7+
--include-extension=.rb \
8+
--include-extension=.erb \
9+
--size-limit=5m \
10+
--language=ruby \
11+
--working-dir=.\
12+
"$CODEQL_EXTRACTOR_RUBY_WIP_DATABASE"

0 commit comments

Comments
 (0)