We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f44fa39 + 27d74bc commit 7d81b29Copy full SHA for 7d81b29
src/parser/extractTodosWithStructuredTagsFromDir.ts
@@ -20,11 +20,13 @@ export function extractTodosWithStructuredTagsFromDir(dir: string): TodoItem[] {
20
if (IGNORED_DIRS.includes(entry.name)) continue;
21
walk(fullPath);
22
} else if (entry.isFile()) {
23
- try {
24
- const fileTodos = extractTodosWithStructuredTags(fullPath);
25
- todos.push(...fileTodos);
26
- } catch {
27
- // opcional: log de ficheiros ignorados
+ if (isTextFile(fullPath)) {
+ try {
+ const fileTodos = extractTodosWithStructuredTags(fullPath);
+ todos.push(...fileTodos);
+ } catch {
28
+ // opcional: log de ficheiros ignorados
29
+ }
30
}
31
32
0 commit comments