Merge pull request #13846 from owen-mc/go/better-baselines

Go: Add language-specific baseline configuration
This commit is contained in:
Owen Mansel-Chan
2023-08-01 07:14:43 +01:00
committed by GitHub
5 changed files with 22 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ CODEQL_PLATFORM = osx64
endif
endif
CODEQL_TOOLS = $(addprefix codeql-tools/,autobuild.cmd autobuild.sh pre-finalize.cmd pre-finalize.sh index.cmd index.sh identify-environment.cmd identify-environment.sh tracing-config.lua)
CODEQL_TOOLS = $(addprefix codeql-tools/,autobuild.cmd autobuild.sh baseline-config-empty.json baseline-config-vendor.json configure-baseline.cmd configure-baseline.sh identify-environment.cmd identify-environment.sh index.cmd index.sh pre-finalize.cmd pre-finalize.sh tracing-config.lua)
EXTRACTOR_PACK_OUT = build/codeql-extractor-go

View File

@@ -0,0 +1,3 @@
{
"paths-ignore": []
}

View File

@@ -0,0 +1,5 @@
{
"paths-ignore": [
"vendor/**"
]
}

View File

@@ -0,0 +1,6 @@
@echo off
if exist vendor\modules.txt (
type %CODEQL_EXTRACTOR_GO_ROOT%\tools\baseline-config-vendor.json
) else (
type %CODEQL_EXTRACTOR_GO_ROOT%\tools\baseline-config-empty.json
)

View File

@@ -0,0 +1,7 @@
#!/bin/sh
if [ -f vendor/modules.txt ]; then
cat $CODEQL_EXTRACTOR_GO_ROOT/tools/baseline-config-vendor.json
else
cat $CODEQL_EXTRACTOR_GO_ROOT/tools/baseline-config-empty.json
fi