Examples of RulesDefinition


Examples of org.sonar.api.server.rule.RulesDefinition

  }

  @Test
  public void register_repositories_having_same_name() {
    RulesDefinition.Context context = new RulesDefinition.Context();
    new RulesDefinition() {
      @Override
      public void define(Context context) {
        context.createRepository("squid", "java").setName("SonarQube").done();
      }
    }.define(context);

    // Repository with same name
    new RulesDefinition() {
      @Override
      public void define(Context context) {
        context.createRepository("javascript", "js").setName("SonarQube").done();
      }
    }.define(context);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.