[gnome-builder] todo: ignore .po files
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] todo: ignore .po files
- Date: Wed, 27 Jan 2016 07:16:17 +0000 (UTC)
commit 425e9f5c66a25a2565e03ff915d5ab988c46c9d6
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 27 07:31:28 2016 +0100
todo: ignore .po files
These get filled with TODO/FIXME/etc as context from source files.
plugins/todo/todo_plugin/__init__.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/todo/todo_plugin/__init__.py b/plugins/todo/todo_plugin/__init__.py
index 594a398..b95a9dd 100644
--- a/plugins/todo/todo_plugin/__init__.py
+++ b/plugins/todo/todo_plugin/__init__.py
@@ -92,7 +92,8 @@ class TodoWorkbenchAddin(GObject.Object, Ide.WorkbenchAddin):
return GLib.SOURCE_REMOVE
def should_skip(self, filename):
- return filename.endswith('libtool.m4')
+ return (filename.endswith('libtool.m4') # Ignore libtool.m4
+ or filename.endswith(".po")) # Ignore translations
def mine(self, file, prepend=False):
"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]