Skip to content

Commit 72ae633

Browse files
committed
Python: Update change note and extractor config
Removes the previously added extractor option and updates the change note to explain how to use `paths-ignore` to exclude files in hidden directories.
1 parent 96558b5 commit 72ae633

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

python/codeql-extractor.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,3 @@ options:
4444
Use this setting with caution, the Python extractor requires Python 3 to run.
4545
type: string
4646
pattern: "^(py|python|python3)$"
47-
skip_hidden_directories:
48-
title: Controls whether hidden directories are skipped during extraction.
49-
description: >
50-
By default, CodeQL will extract all Python files, including ones located in hidden directories. By setting this option to true, these hidden directories will be skipped instead.
51-
Accepted values are true and false.
52-
type: string
53-
pattern: "^(true|false)$"

python/ql/lib/change-notes/2025-04-30-extract-hidden-files-by-default.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
category: minorAnalysis
33
---
44

5-
- The Python extractor now extracts files in hidden directories by default. A new extractor option, `skip_hidden_directories` has been added as well. Setting it to `true` will make the extractor revert to the old behavior.
5+
- The Python extractor now extracts files in hidden directories by default. If you would like to skip hidden files, add `paths-ignore: ["**/.*/**"]` to your [Code Scanning config](https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning#specifying-directories-to-scan). When using the CodeQL CLI for extraction, specify the configuration (creating the configuration file if necessary) using the `--codescanning-config` option.

0 commit comments

Comments
 (0)