mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Go: Add language-specific baseline configuration
This commit is contained in:
5
go/codeql-tools/baseline-config.json
Normal file
5
go/codeql-tools/baseline-config.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"paths-ignore": [
|
||||
"vendor/**"
|
||||
]
|
||||
}
|
||||
4
go/codeql-tools/configure-baseline.cmd
Normal file
4
go/codeql-tools/configure-baseline.cmd
Normal file
@@ -0,0 +1,4 @@
|
||||
@echo off
|
||||
if exist vendor\modules.txt (
|
||||
type %CODEQL_EXTRACTOR_GO_ROOT%\codeql-tools\baseline-config.json
|
||||
)
|
||||
5
go/codeql-tools/configure-baseline.sh
Executable file
5
go/codeql-tools/configure-baseline.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -f vendor/modules.txt ]; then
|
||||
cat $CODEQL_EXTRACTOR_GO_ROOT/codeql-tools/baseline-config.json
|
||||
fi
|
||||
Reference in New Issue
Block a user