exclude files for Initialize CodeQL

This commit is contained in:
Ruben Talstra 2025-02-06 21:10:50 +01:00
parent 1688310e04
commit dc6e5c104d
2 changed files with 9 additions and 1 deletions

6
.codeql-config.yml Normal file
View file

@ -0,0 +1,6 @@
paths:
exclude:
- "**/test/**"
- "**/__tests__/**"
- "**/*.spec.*"
- "**/*.test.*"

View file

@ -66,6 +66,8 @@ jobs:
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# Use our custom configuration file to exclude test files.
config-file: .codeql-config.yml
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# To add queries to those specified in your config file, prefix the list here with "+"
@ -92,4 +94,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"
category: "/language:${{ matrix.language }}"