Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public SonarConfigurator(ConfigurationReader reader, SonarWriter writer)
 {
     this.reader = reader;
     this.writer = writer;
 }