Skip to content

Commit b551804

Browse files
committed
Go: Add language-specific baseline configuration
1 parent 4656130 commit b551804

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

go/codeql-tools/baseline-config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"paths-ignore": [
3+
"vendor/**"
4+
]
5+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@echo off
2+
if exist vendor\modules.txt (
3+
type %CODEQL_EXTRACTOR_GO_ROOT%\codeql-tools\baseline-config.json
4+
)

go/codeql-tools/configure-baseline.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
if [ -f vendor/modules.txt ]; then
4+
cat $CODEQL_EXTRACTOR_GO_ROOT/codeql-tools/baseline-config.json
5+
fi

0 commit comments

Comments
 (0)