todo-backend: filter out all dotfiles

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-03-10 01:34:56 +01:00
parent 240ab2d520
commit 3a7a803b0b
@@ -99,7 +99,7 @@ export class TodoScmReader implements TodoReader {
const tree = await this.reader.readTree(url, {
etag,
filter(path) {
return !path.startsWith('.yarn');
return !path.startsWith('.') && !path.includes('/.');
},
});