81638702d68033ca95ddd406aa655fb2bfdab036
Files Diff
- Added: 2
- Removed: 2
- Renamed: 0
- Modified: 44
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Change Parameter Type | 2 | ||
| Change Parameter Type projectSettings : ProjectRepositories to projectSettingsSupplier : ProjectRepositoriesSupplier in method public StatusDetection(projectSettingsSupplier ProjectRepositoriesSupplier, scmChangedFiles ScmChangedFiles) in class org.sonar.scanner.scan.filesystem.StatusDetection | From | To | |
| Change Parameter Type projectRepositories : ProjectRepositories to projectRepositoriesSupplier : ProjectRepositoriesSupplier in method public ScmPublisher(configuration ScmConfiguration, projectRepositoriesSupplier ProjectRepositoriesSupplier, componentStore InputComponentStore, fs FileSystem, reportPublisher ReportPublisher, branchConfiguration BranchConfiguration) in class org.sonar.scanner.scm.ScmPublisher | From | To | |
| Rename Class | 1 | ||
| Rename Class org.sonar.scanner.repository.ProjectRepositoriesProviderTest renamed to org.sonar.scanner.repository.ProjectRepositoriesSupplierTest | From | To | |
| Change Variable Type | 3 | ||
| Change Variable Type ref : SingleProjectRepository to projectRepositoriesSupplier : ProjectRepositoriesSupplier in method public detect_status() : void in class org.sonar.scanner.scan.filesystem.StatusDetectionTest | From | To | |
| Change Variable Type ref : SingleProjectRepository to projectRepositoriesSupplier : ProjectRepositoriesSupplier in method public detect_status_branches_confirm() : void in class org.sonar.scanner.scan.filesystem.StatusDetectionTest | From | To | |
| Change Variable Type ref : SingleProjectRepository to projectRepositoriesSupplier : ProjectRepositoriesSupplier in method public detect_status_branches_exclude() : void in class org.sonar.scanner.scan.filesystem.StatusDetectionTest | From | To | |
| Split Attribute | 1 | ||
| Split Attribute provider : ProjectRepositoriesProvider to [underTest : ProjectRepositoriesSupplier, loader : ProjectRepositoriesLoader, props : ProcessedScannerProperties, branchConfiguration : BranchConfiguration] in class org.sonar.scanner.repository.ProjectRepositoriesSupplierTest | From | To | |
| Extract Method | 1 | ||
| Extract Method private checkChangedWithProjectRepositories(moduleKeyWithBranch String, inputFile DefaultInputFile, hash String) : InputFile.Status extracted from package status(moduleKeyWithBranch String, inputFile DefaultInputFile, hash String) : InputFile.Status in class org.sonar.scanner.scan.filesystem.StatusDetection | From | To | |
| Inline Variable | 1 | ||
| Inline Variable profileList : List<QualityProfile> in method public provide(loader QualityProfileLoader, projectRepositories ProjectRepositories, props ProcessedScannerProperties) : QualityProfiles from class org.sonar.scanner.repository.QualityProfilesProvider | From | To | |
| Rename Method | 6 | ||
| Rename Method public targetScmBranch() : String renamed to public targetBranchName() : String in class org.sonar.scanner.scan.branch.BranchConfiguration | From | To | |
| Rename Method public targetScmBranch() : String renamed to public targetBranchName() : String in class org.sonar.scanner.mediumtest.ScannerMediumTester.FakeBranchConfiguration | From | To | |
| Rename Method public load_throws_MessageException_if_organization_is_not_found() : void renamed to public load_throws_MessageException_if_organization_is_not_found_after_trying_default() : void in class org.sonar.scanner.repository.DefaultQualityProfileLoaderTest | From | To | |
| Rename Method public targetScmBranch() : String renamed to public targetBranchName() : String in class org.sonar.scanner.scan.branch.DefaultBranchConfiguration | From | To | |
| Rename Method private checkChanged(status InputFile.Status, inputFile DefaultInputFile) : InputFile.Status renamed to private checkChangedWithScm(inputFile DefaultInputFile) : InputFile.Status in class org.sonar.scanner.scan.filesystem.StatusDetection | From | To | |
| Rename Method private setReferenceBranchUuid(uuid String) : void renamed to private setBranch(currentBranchType BranchType, mergeBranchUuid String) : void in class org.sonar.ce.task.projectanalysis.component.SiblingComponentsWithOpenIssuesTest | From | To | |
| Rename Variable | 2 | ||
| Rename Variable targetScmBranch : String to targetBranchName : String in method public publish(writer ScannerReportWriter) : void in class org.sonar.scanner.report.ChangedLinesPublisher | From | To | |
| Rename Variable targetScmBranch : String to targetBranchName : String in method private loadChangedFilesIfNeeded(scmConfiguration ScmConfiguration, branchConfiguration BranchConfiguration, rootBaseDir Path) : Collection<Path> in class org.sonar.scanner.scm.ScmChangedFilesProvider | From | To | |
| Change Return Type | 3 | ||
| Change Return Type Optional<String> to String in method public getMergeBranchUuid() : String in class org.sonar.ce.task.projectanalysis.component.DefaultBranchImpl | From | To | |
| Change Return Type Optional<String> to String in method public getMergeBranchUuid() : String in class org.sonar.ce.task.projectanalysis.analysis.Branch | From | To | |
| Change Return Type Optional<String> to String in method public getMergeBranchUuid() : String in class org.sonar.ce.task.projectanalysis.step.ReportPersistComponentsStepTest.TestBranch | From | To | |
| Replace Variable With Attribute | 3 | ||
| Replace Variable With Attribute ref : SingleProjectRepository to projectRepositoriesSupplier : ProjectRepositoriesSupplier in method public detect_status_branches_exclude() : void in class org.sonar.scanner.scan.filesystem.StatusDetectionTest | From | To | |
| Replace Variable With Attribute ref : SingleProjectRepository to projectRepositoriesSupplier : ProjectRepositoriesSupplier in method public detect_status_branches_confirm() : void in class org.sonar.scanner.scan.filesystem.StatusDetectionTest | From | To | |
| Replace Variable With Attribute ref : SingleProjectRepository to projectRepositoriesSupplier : ProjectRepositoriesSupplier in method public detect_status() : void in class org.sonar.scanner.scan.filesystem.StatusDetectionTest | From | To | |
| Rename Attribute | 2 | ||
| Rename Attribute projectRepositories : ProjectRepositories to projectSettingsSupplier : ProjectRepositoriesSupplier in class org.sonar.scanner.scan.filesystem.StatusDetection | From | To | |
| Rename Attribute projectRepositories : ProjectRepositories to projectRepositoriesSupplier : ProjectRepositoriesSupplier in class org.sonar.scanner.scm.ScmPublisher | From | To | |
| Change Attribute Type | 2 | ||
| Change Attribute Type projectRepositories : ProjectRepositories to projectRepositoriesSupplier : ProjectRepositoriesSupplier in class org.sonar.scanner.scm.ScmPublisher | From | To | |
| Change Attribute Type projectRepositories : ProjectRepositories to projectSettingsSupplier : ProjectRepositoriesSupplier in class org.sonar.scanner.scan.filesystem.StatusDetection | From | To | |
| Extract And Move Method | 1 | ||
| Extract And Move Method public isValid() : boolean extracted from package status(moduleKeyWithBranch String, inputFile DefaultInputFile, hash String) : InputFile.Status in class org.sonar.scanner.scan.filesystem.StatusDetection & moved to class org.sonar.scanner.scm.ScmChangedFiles | From | To | |
| Rename Parameter | 3 | ||
| Rename Parameter uuid : String to mergeBranchUuid : String in method private setBranch(currentBranchType BranchType, mergeBranchUuid String) : void in class org.sonar.ce.task.projectanalysis.component.SiblingComponentsWithOpenIssuesTest | From | To | |
| Rename Parameter projectSettings : ProjectRepositories to projectSettingsSupplier : ProjectRepositoriesSupplier in method public StatusDetection(projectSettingsSupplier ProjectRepositoriesSupplier, scmChangedFiles ScmChangedFiles) in class org.sonar.scanner.scan.filesystem.StatusDetection | From | To | |
| Rename Parameter projectRepositories : ProjectRepositories to projectRepositoriesSupplier : ProjectRepositoriesSupplier in method public ScmPublisher(configuration ScmConfiguration, projectRepositoriesSupplier ProjectRepositoriesSupplier, componentStore InputComponentStore, fs FileSystem, reportPublisher ReportPublisher, branchConfiguration BranchConfiguration) in class org.sonar.scanner.scm.ScmPublisher | From | To |