diff options
| author | Joel Challis <git@zvecr.com> | 2021-11-29 15:08:39 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-29 15:08:39 +0000 |
| commit | 285afa3a8a2c3ae6ad4efffecdc96108f1b2fadc (patch) | |
| tree | abcbf72721a7480539f9045aa9ca49b52b819f6f /lib | |
| parent | db04899a4a7cc39665c63e9639a60ea4e1d96bab (diff) | |
| download | qmk_firmware-285afa3a8a2c3ae6ad4efffecdc96108f1b2fadc.tar.gz qmk_firmware-285afa3a8a2c3ae6ad4efffecdc96108f1b2fadc.zip | |
Fix 'format-c --core-only' matching keyboard level folders (#15337)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/python/qmk/cli/format/c.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/format/c.py b/lib/python/qmk/cli/format/c.py index 0160e6036..568684ed5 100644 --- a/lib/python/qmk/cli/format/c.py +++ b/lib/python/qmk/cli/format/c.py | |||
| @@ -74,7 +74,7 @@ def filter_files(files, core_only=False): | |||
| 74 | # The following statement checks each file to see if the file path is | 74 | # The following statement checks each file to see if the file path is |
| 75 | # - in the core directories | 75 | # - in the core directories |
| 76 | # - not in the ignored directories | 76 | # - not in the ignored directories |
| 77 | if not any(i in str(file) for i in core_dirs) or any(i in str(file) for i in ignored): | 77 | if not any(str(file).startswith(i) for i in core_dirs) or any(str(file).startswith(i) for i in ignored): |
| 78 | files[index] = None | 78 | files[index] = None |
| 79 | cli.log.debug("Skipping non-core file %s, as '--core-only' is used.", file) | 79 | cli.log.debug("Skipping non-core file %s, as '--core-only' is used.", file) |
| 80 | 80 | ||
