Skip to content

Commit

Permalink
If no scenes or prefabs were analyzed, put a note in the string that …
Browse files Browse the repository at this point in the history
…is output.
  • Loading branch information
Shahrin Khan committed Nov 21, 2016
1 parent e6f5154 commit 36e7e7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Assets/Plugins/Mooble/StaticAnalysis/CLI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -69,6 +73,10 @@ public static void RunSceneAnalysis() {
}
}

if (scenes.Count == 0) {
stringBuilder.Append("No scenes were analyzed.");
}

Log.Debug(stringBuilder.ToString());

if (foundError) {
Expand Down

0 comments on commit 36e7e7b

Please sign in to comment.