Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 29 additions & 3 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: "CodeQL Config"

# Exclude paths to reduce disk space usage during CodeQL analysis
# This prevents analyzing unnecessary files that consume disk space
# Exclude paths to reduce disk space usage and improve analysis performance
paths-ignore:
# Dependencies - don't analyze third-party code
- "**/node_modules"
Expand All @@ -16,6 +15,22 @@ paths-ignore:
- "**/www"
- "**/release"

# Test files - exclude test code to improve performance
- "**/*.test.ts"
- "**/*.test.tsx"
- "**/*.spec.ts"
- "**/*.spec.tsx"
- "**/*.test.js"
- "**/*.test.jsx"
- "**/*.spec.js"
- "**/*.spec.jsx"

# Storybook files
- "**/*.stories.tsx"
- "**/*.stories.ts"
- "**/*.stories.jsx"
- "**/*.stories.js"

# Test fixtures and snapshots
- "**/__mocks__"
- "**/__image_snapshots__"
Expand All @@ -26,6 +41,16 @@ paths-ignore:
- "**/test/**/*.svg"
- "**/integration-tests/**/*.png"

# Test utilities and configs
- "**/test-utils/**"
- "**/testing/**"
- "**/jest.config.*"
- "**/jest.setup.*"
- "**/coverage/**"

# Generated type definition files
- "**/*.d.ts"

# Example and playground files - not production code
- "**/example"
- "**/examples"
Expand All @@ -38,7 +63,7 @@ paths-ignore:
- "**/*.min.js"
- "**/*.min.css"

# Large standalone packages - exclude website and release directories
# Large standalone packages
- "standalone-packages/monaco-editor/website"
- "standalone-packages/monaco-editor/release"
- "standalone-packages/vscode-editor/release"
Expand All @@ -53,3 +78,4 @@ paths-ignore:
# CI/CD files
- "**/Dockerfile*"
- "**/.circleci"

1 change: 1 addition & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
# required for all workflows
security-events: write
Expand Down
Loading