public Task InitLinter(IEnumerable <Rule> rules, CancellationToken cancellationToken) { var initLinterRequest = new InitLinterRequest { Rules = rules.ToArray(), Globals = analysisConfiguration.GetGlobals(), Environments = analysisConfiguration.GetEnvironments() }; return(httpWrapper.PostAsync(BuildServerUri("init-linter"), initLinterRequest, cancellationToken)); }
public Task InitLinter(IEnumerable <Rule> rules, CancellationToken cancellationToken) { var initLinterRequest = new InitLinterRequest { Rules = rules.ToArray(), Globals = analysisConfiguration.GetGlobals(), Environments = analysisConfiguration.GetEnvironments() }; return(MakeCall("init-linter", initLinterRequest, cancellationToken)); }