/// <summary> /// The create. /// </summary> /// <returns> /// A new StyleCopCore object. /// </returns> public static StyleCopCore Create() { StyleCopTrace.In(); ProjectSettingsFactory projectSettingsFactory = new ProjectSettingsFactory(); SourceCodeFactory sourceCodeFactory = new SourceCodeFactory(); ObjectBasedEnvironment environment = new ObjectBasedEnvironment(sourceCodeFactory.Create, projectSettingsFactory.Create); StyleCopObjectConsole styleCop = new StyleCopObjectConsole(environment, null, null, true); projectSettingsFactory.StyleCopCore = styleCop.Core; return(StyleCopTrace.Out(styleCop.Core)); }
/// <summary> /// The create. /// </summary> /// <returns> /// A new StyleCopCore object. /// </returns> public static StyleCopCore Create() { StyleCopTrace.In(); ProjectSettingsFactory projectSettingsFactory = new ProjectSettingsFactory(); SourceCodeFactory sourceCodeFactory = new SourceCodeFactory(); ObjectBasedEnvironment environment = new ObjectBasedEnvironment(sourceCodeFactory.Create, projectSettingsFactory.Create); StyleCopObjectConsole styleCop = new StyleCopObjectConsole(environment, null, null, true); projectSettingsFactory.StyleCopCore = styleCop.Core; return StyleCopTrace.Out(styleCop.Core); }