Skip to content

Commit

Permalink
Adds additional ignores for C-fmilies langs (#1129)
Browse files Browse the repository at this point in the history
Ignored:
- cache directory `.cache`, used by clangd
- dependency files `*o.d`, used by object files
- LLVM and GNU coverage files: `*.profraw`, `*.gcda` and `*.gcno`
  • Loading branch information
sr-tream authored and sestinj committed Jun 23, 2024
1 parent 9cde2c4 commit c16157f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/indexing/ignore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const DEFAULT_IGNORE_FILETYPES = [
"*.dll",
"*.obj",
"*.o",
"*.o.d",
"*.a",
"*.lib",
"*.so",
Expand Down Expand Up @@ -54,6 +55,9 @@ const DEFAULT_IGNORE_FILETYPES = [
"*.sqlite",
"*.wasm",
"*.plist",
"*.profraw",
"*.gcda",
"*.gcno",
];
export const defaultIgnoreFile = ignore().add(DEFAULT_IGNORE_FILETYPES);
export const DEFAULT_IGNORE_DIRS = [
Expand All @@ -76,6 +80,6 @@ export const DEFAULT_IGNORE_DIRS = [
".continue",
"__pycache__",
"site-packages",
".gradle",
".cache",
];
export const defaultIgnoreDir = ignore().add(DEFAULT_IGNORE_DIRS);

0 comments on commit c16157f

Please sign in to comment.