use of org.sonar.server.setting.ChildSettings in project sonarqube by SonarSource.
the class ProjectConfigurationFactory method newProjectConfiguration.
public Configuration newProjectConfiguration(String projectKey, Branch branch) {
Settings projectSettings = new ChildSettings(globalSettings);
addSettings(projectSettings, projectKey);
if (branch.getType() == BranchType.PULL_REQUEST) {
addSettings(projectSettings, generatePullRequestKey(projectKey, branch.getPullRequestKey()));
} else {
addSettings(projectSettings, generateBranchKey(projectKey, branch.getName()));
}
return new ConfigurationBridge(projectSettings);
}
Aggregations