diff --git a/OpenRA.Lint/YamlChecker.cs b/OpenRA.Lint/YamlChecker.cs index 2acded35bd..679f7fbe8c 100644 --- a/OpenRA.Lint/YamlChecker.cs +++ b/OpenRA.Lint/YamlChecker.cs @@ -63,6 +63,14 @@ namespace OpenRA.Lint foreach (var testMap in maps) { + if (testMap.Rules.Count < 1) + { + if (verbose) + Console.WriteLine("No custom rules detected. Omitting Map: {0}".F(testMap.Title)); + + continue; + } + if (verbose) Console.WriteLine("Map: {0}".F(testMap.Title)); Rules.LoadRules(Game.modData.Manifest, testMap);