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));
        }
Esempio n. 2
0
        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));
        }