From 36e7e7b5a1c3757946f2b80184de6247e1c1b4cf Mon Sep 17 00:00:00 2001 From: Shahrin Khan Date: Mon, 21 Nov 2016 10:27:00 -0500 Subject: [PATCH] If no scenes or prefabs were analyzed, put a note in the string that is output. --- Assets/Plugins/Mooble/StaticAnalysis/CLI.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Assets/Plugins/Mooble/StaticAnalysis/CLI.cs b/Assets/Plugins/Mooble/StaticAnalysis/CLI.cs index bc6b16a..0d17790 100644 --- a/Assets/Plugins/Mooble/StaticAnalysis/CLI.cs +++ b/Assets/Plugins/Mooble/StaticAnalysis/CLI.cs @@ -38,6 +38,10 @@ public static void RunPrefabAnalysis() { foundError = foundError || foundErrorThisTime; } + if (prefabPaths.Count == 0) { + stringBuilder.Append("No prefabs were analyzed."); + } + Log.Debug(stringBuilder.ToString()); if (foundError) { @@ -69,6 +73,10 @@ public static void RunSceneAnalysis() { } } + if (scenes.Count == 0) { + stringBuilder.Append("No scenes were analyzed."); + } + Log.Debug(stringBuilder.ToString()); if (foundError) {