[gnome-builder] todo: aggressively ignore more data from todo
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] todo: aggressively ignore more data from todo
- Date: Thu, 31 May 2018 21:41:44 +0000 (UTC)
commit 5d769549619b8baaa2866746f10499cedc65334c
Author: Christian Hergert <chergert redhat com>
Date: Thu May 31 14:38:28 2018 -0700
todo: aggressively ignore more data from todo
The todo module has an optimization to avoid lots of small strings being
allocated. In doing so, we potentially pull in data that we cannot know
we need to ignore until after it has been delivered from the subprocess.
This tries to ignore node_modules, a commonly used directory for npm
dependencies from even beeing scanned by grep.
Related to #509
src/plugins/todo/gbp-todo-model.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/todo/gbp-todo-model.c b/src/plugins/todo/gbp-todo-model.c
index 079b4b642..898b09103 100644
--- a/src/plugins/todo/gbp-todo-model.c
+++ b/src/plugins/todo/gbp-todo-model.c
@@ -64,6 +64,7 @@ static const gchar *exclude_dirs[] = {
".flatpak-builder",
".git",
".svn",
+ "node_modules",
};
/* This is an optimization to avoid reading files in from disk that
@@ -71,6 +72,8 @@ static const gchar *exclude_dirs[] = {
* for that information.
*/
static const gchar *exclude_files[] = {
+ "*~",
+ "*.swp",
"*.m4",
"*.po",
"*.min.js.*",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]