Пример #1
0
        private static SonarConfigurator CreateConfigurator(CmdOptions o)
        {
            var client = new RestClient(o.SonarqubeHost);

            client.Authenticator = GetAuthenticator(o);

            SonarApi            sonarApi     = new SonarApi(client);
            SonarWriter         sonarWriter  = new SonarWriter(sonarApi);
            ConfigurationReader configReader = new ConfigurationReader();

            SonarConfigurator configurator = new SonarConfigurator(configReader, sonarWriter);

            return(configurator);
        }
Пример #2
0
 public SonarWriter(SonarApi sonarApi)
 {
     this.sonarApi = sonarApi;
 }