[gnome-builder] plugins/codespell: add checks and tracing



commit 80a413f591e28f72c2332753475569bd85523cd4
Author: Christian Hergert <chergert redhat com>
Date:   Mon Apr 25 16:32:08 2022 -0700

    plugins/codespell: add checks and tracing

 src/plugins/codespell/ide-codespell-diagnostic-provider.c | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/src/plugins/codespell/ide-codespell-diagnostic-provider.c 
b/src/plugins/codespell/ide-codespell-diagnostic-provider.c
index 82b9b3041..11042ff4a 100644
--- a/src/plugins/codespell/ide-codespell-diagnostic-provider.c
+++ b/src/plugins/codespell/ide-codespell-diagnostic-provider.c
@@ -36,7 +36,16 @@ ide_codespell_diagnostic_provider_configure_launcher (IdeDiagnosticTool     *too
                                                       GFile                 *file,
                                                       GBytes                *contents)
 {
+  IDE_ENTRY;
+
+  g_assert (IDE_IS_CODESPELL_DIAGNOSTIC_PROVIDER (tool));
+  g_assert (IDE_IS_SUBPROCESS_LAUNCHER (launcher));
+  g_assert (!file || G_IS_FILE (file));
+  g_assert (file != NULL || contents != NULL);
+
   ide_subprocess_launcher_push_argv (launcher, "-");
+
+  IDE_EXIT;
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]