public void Initialize(IEnumerable <Project> projects, IDictionary <Language, SonarQubeQualityProfile> profilesMap) { if (projects == null) { throw new ArgumentNullException(nameof(projects)); } if (profilesMap == null) { throw new ArgumentNullException(nameof(profilesMap)); } this.SolutionFullPath = this.projectSystem.GetCurrentActiveSolution().FullName; this.qualityProfileMap = new Dictionary <Language, SonarQubeQualityProfile>(profilesMap); foreach (Project project in projects) { if (BindingRefactoringDumpingGround.IsProjectLevelBindingRequired(project)) { var binder = new ProjectBindingOperation(serviceProvider, project, this); binder.Initialize(); this.childBinder.Add(binder); } else { this.logger.WriteLine(Strings.Bind_Project_NotRequired, project.FullName); } } }
public void Initialize(IEnumerable <Project> projects, IDictionary <Language, SonarQubeQualityProfile> profilesMap) { if (projects == null) { throw new ArgumentNullException(nameof(projects)); } if (profilesMap == null) { throw new ArgumentNullException(nameof(profilesMap)); } this.SolutionFullPath = this.projectSystem.GetCurrentActiveSolution().FullName; this.qualityProfileMap = new Dictionary <Language, SonarQubeQualityProfile>(profilesMap); foreach (Project project in projects) { var binder = new ProjectBindingOperation(serviceProvider, project, this); binder.Initialize(); this.childBinder.Add(binder); } }
public void Initialize(IEnumerable<Project> projects, IDictionary<Language, QualityProfile> profilesMap) { if (projects == null) { throw new ArgumentNullException(nameof(projects)); } if (profilesMap == null) { throw new ArgumentNullException(nameof(profilesMap)); } this.SolutionFullPath = this.projectSystem.GetCurrentActiveSolution().FullName; this.qualityProfileMap = new Dictionary<Language, QualityProfile>(profilesMap); foreach (Project project in projects) { var binder = new ProjectBindingOperation(serviceProvider, project, this); binder.Initialize(); this.childBinder.Add(binder); } }