/// <summary> /// Remove analyzers that are not wanted in the current run /// </summary> /// <param name="options">The benchmark options to be used</param> /// <returns>False if there are analyzers wanted that do not exist</returns> private bool CheckAnalyzers(BenchmarkOptions options) { if (options.Analyzers != null && options.Analyzers.Count > 0) { for (int i = Analyzers.Count - 1; i >= 0; i--) { if (!options.Analyzers.Contains(Analyzers[i].Name)) { Analyzers.RemoveAt(i); } else { options.Analyzers.Remove(Analyzers[i].Name); } } if (options.Analyzers.Count > 0) { PrintWrongAnalyzersHelp(options); return(false); } } return(true); }