Exemplo n.º 1
0
        public JavaScriptAnalyzer(IJavaScriptEslintBridgeClient eslintBridgeClient,
                                  IRulesProviderFactory rulesProviderFactory,
                                  ITelemetryManager telemetryManager,
                                  IAnalysisStatusNotifier analysisStatusNotifier,
                                  IEslintBridgeAnalyzerFactory eslintBridgeAnalyzerFactory)
        {
            this.telemetryManager       = telemetryManager;
            this.analysisStatusNotifier = analysisStatusNotifier;

            var rulesProvider = rulesProviderFactory.Create("javascript");

            eslintBridgeAnalyzer = eslintBridgeAnalyzerFactory.Create(rulesProvider, eslintBridgeClient);
        }
Exemplo n.º 2
0
        public TypeScriptAnalyzer(ITypeScriptEslintBridgeClient eslintBridgeClient,
                                  IRulesProviderFactory rulesProviderFactory,
                                  ITsConfigProvider tsConfigProvider,
                                  IAnalysisStatusNotifier analysisStatusNotifier,
                                  IEslintBridgeAnalyzerFactory eslintBridgeAnalyzerFactory,
                                  ITelemetryManager telemetryManager,
                                  ILogger logger)
        {
            this.tsConfigProvider       = tsConfigProvider;
            this.analysisStatusNotifier = analysisStatusNotifier;
            this.telemetryManager       = telemetryManager;
            this.logger = logger;

            var rulesProvider = rulesProviderFactory.Create("typescript");

            eslintBridgeAnalyzer = eslintBridgeAnalyzerFactory.Create(rulesProvider, eslintBridgeClient);
        }