]> source.dussan.org Git - sonarqube.git/commitdiff
Sort import in sonar-web
authorphilippe-perrin-sonarsource <philippe.perrin@sonarsource.com>
Thu, 18 Jul 2019 15:17:58 +0000 (17:17 +0200)
committerSonarTech <sonartech@sonarsource.com>
Fri, 19 Jul 2019 18:21:16 +0000 (20:21 +0200)
1446 files changed:
server/sonar-web/src/main/js/api/alm-integration.ts
server/sonar-web/src/main/js/api/components.ts
server/sonar-web/src/main/js/api/favorites.ts
server/sonar-web/src/main/js/api/issues.ts
server/sonar-web/src/main/js/api/measures.ts
server/sonar-web/src/main/js/api/permissions.ts
server/sonar-web/src/main/js/api/plugins.ts
server/sonar-web/src/main/js/api/projectActivity.ts
server/sonar-web/src/main/js/api/quality-profiles.ts
server/sonar-web/src/main/js/api/rules.ts
server/sonar-web/src/main/js/api/settings.ts
server/sonar-web/src/main/js/api/user-tokens.ts
server/sonar-web/src/main/js/app/components/AdminContainer.tsx
server/sonar-web/src/main/js/app/components/App.tsx
server/sonar-web/src/main/js/app/components/ComponentContainer.tsx
server/sonar-web/src/main/js/app/components/GlobalContainer.tsx
server/sonar-web/src/main/js/app/components/GlobalFooter.tsx
server/sonar-web/src/main/js/app/components/GlobalFooterContainer.tsx
server/sonar-web/src/main/js/app/components/GlobalFooterSonarCloud.tsx
server/sonar-web/src/main/js/app/components/GlobalMessagesContainer.tsx
server/sonar-web/src/main/js/app/components/Landing.tsx
server/sonar-web/src/main/js/app/components/PageTracker.tsx
server/sonar-web/src/main/js/app/components/ProjectAdminContainer.tsx
server/sonar-web/src/main/js/app/components/SimpleContainer.tsx
server/sonar-web/src/main/js/app/components/StartupModal.tsx
server/sonar-web/src/main/js/app/components/__tests__/AccountDeleted-test.tsx
server/sonar-web/src/main/js/app/components/__tests__/AdminContainer-test.tsx
server/sonar-web/src/main/js/app/components/__tests__/ComponentContainer-test.tsx
server/sonar-web/src/main/js/app/components/__tests__/GlobalContainer-test.tsx
server/sonar-web/src/main/js/app/components/__tests__/GlobalFooter-test.tsx
server/sonar-web/src/main/js/app/components/__tests__/GlobalFooterSonarCloud-test.tsx
server/sonar-web/src/main/js/app/components/__tests__/PageTracker-test.tsx
server/sonar-web/src/main/js/app/components/__tests__/ProjectAdminContainer-test.tsx
server/sonar-web/src/main/js/app/components/__tests__/StartupModal-test.tsx
server/sonar-web/src/main/js/app/components/a11y/A11yProvider.tsx
server/sonar-web/src/main/js/app/components/a11y/__tests__/A11yProvider-test.tsx
server/sonar-web/src/main/js/app/components/a11y/__tests__/A11ySkipLinks-test.tsx
server/sonar-web/src/main/js/app/components/a11y/__tests__/A11ySkipTarget-test.tsx
server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopup.tsx
server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopupHelper.tsx
server/sonar-web/src/main/js/app/components/embed-docs-modal/ProductNewsMenuItem.tsx
server/sonar-web/src/main/js/app/components/embed-docs-modal/SuggestionsProvider.tsx
server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/EmbedDocsPopup-test.tsx
server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/ProductNewsMenuItem-test.tsx
server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/SuggestionsProvider-test.tsx
server/sonar-web/src/main/js/app/components/extensions/Extension.tsx
server/sonar-web/src/main/js/app/components/extensions/GlobalAdminPageExtension.tsx
server/sonar-web/src/main/js/app/components/extensions/GlobalPageExtension.tsx
server/sonar-web/src/main/js/app/components/extensions/OrganizationPageExtension.tsx
server/sonar-web/src/main/js/app/components/extensions/ProjectAdminPageExtension.tsx
server/sonar-web/src/main/js/app/components/extensions/ProjectPageExtension.tsx
server/sonar-web/src/main/js/app/components/extensions/__tests__/Extension-test.tsx
server/sonar-web/src/main/js/app/components/extensions/exposeLibraries.ts
server/sonar-web/src/main/js/app/components/nav/component/ComponentNav.tsx
server/sonar-web/src/main/js/app/components/nav/component/ComponentNavBgTaskNotif.tsx
server/sonar-web/src/main/js/app/components/nav/component/ComponentNavBranch.tsx
server/sonar-web/src/main/js/app/components/nav/component/ComponentNavBranchesMenu.tsx
server/sonar-web/src/main/js/app/components/nav/component/ComponentNavBranchesMenuItem.tsx
server/sonar-web/src/main/js/app/components/nav/component/ComponentNavHeader.tsx
server/sonar-web/src/main/js/app/components/nav/component/ComponentNavLicenseNotif.tsx
server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.tsx
server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMeta.tsx
server/sonar-web/src/main/js/app/components/nav/component/ComponentNavWarnings.tsx
server/sonar-web/src/main/js/app/components/nav/component/__tests__/ComponentNav-test.tsx
server/sonar-web/src/main/js/app/components/nav/component/__tests__/ComponentNavBgTaskNotif-test.tsx
server/sonar-web/src/main/js/app/components/nav/component/__tests__/ComponentNavBranch-test.tsx
server/sonar-web/src/main/js/app/components/nav/component/__tests__/ComponentNavBranchesMenu-test.tsx
server/sonar-web/src/main/js/app/components/nav/component/__tests__/ComponentNavBranchesMenuItem-test.tsx
server/sonar-web/src/main/js/app/components/nav/component/__tests__/ComponentNavHeader-test.tsx
server/sonar-web/src/main/js/app/components/nav/component/__tests__/ComponentNavLicenseNotif-test.tsx
server/sonar-web/src/main/js/app/components/nav/component/__tests__/ComponentNavMenu-test.tsx
server/sonar-web/src/main/js/app/components/nav/component/__tests__/ComponentNavMeta-test.tsx
server/sonar-web/src/main/js/app/components/nav/component/__tests__/ComponentNavWarnings-test.tsx
server/sonar-web/src/main/js/app/components/nav/global/GlobalNav.tsx
server/sonar-web/src/main/js/app/components/nav/global/GlobalNavBranding.tsx
server/sonar-web/src/main/js/app/components/nav/global/GlobalNavMenu.tsx
server/sonar-web/src/main/js/app/components/nav/global/GlobalNavPlus.tsx
server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.tsx
server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUserContainer.tsx
server/sonar-web/src/main/js/app/components/nav/global/__tests__/GlobalNav-test.tsx
server/sonar-web/src/main/js/app/components/nav/global/__tests__/GlobalNavMenu-test.tsx
server/sonar-web/src/main/js/app/components/nav/global/__tests__/GlobalNavPlus-test.tsx
server/sonar-web/src/main/js/app/components/nav/global/__tests__/GlobalNavUser-test.tsx
server/sonar-web/src/main/js/app/components/nav/settings/PendingPluginsActionNotif.tsx
server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.tsx
server/sonar-web/src/main/js/app/components/nav/settings/SystemRestartNotif.tsx
server/sonar-web/src/main/js/app/components/nav/settings/__tests__/PendingPluginsActionNotif-test.tsx
server/sonar-web/src/main/js/app/components/nav/settings/__tests__/SettingsNav-test.tsx
server/sonar-web/src/main/js/app/components/nav/settings/__tests__/SystemRestartNotif-test.tsx
server/sonar-web/src/main/js/app/components/notifications/NavLatestNotification.tsx
server/sonar-web/src/main/js/app/components/notifications/NotificationsSidebar.tsx
server/sonar-web/src/main/js/app/components/notifications/__tests__/NavLatestNotification-test.tsx
server/sonar-web/src/main/js/app/components/notifications/__tests__/NotificationsSidebar-test.tsx
server/sonar-web/src/main/js/app/components/search/Search.tsx
server/sonar-web/src/main/js/app/components/search/SearchResult.tsx
server/sonar-web/src/main/js/app/components/search/SearchResults.tsx
server/sonar-web/src/main/js/app/components/search/SearchShowMore.tsx
server/sonar-web/src/main/js/app/components/search/__tests__/Search-test.tsx
server/sonar-web/src/main/js/app/components/search/__tests__/SearchResult-test.tsx
server/sonar-web/src/main/js/app/components/search/__tests__/SearchResults-test.tsx
server/sonar-web/src/main/js/app/components/search/__tests__/SearchShowMore-test.tsx
server/sonar-web/src/main/js/app/index.ts
server/sonar-web/src/main/js/app/utils/__tests__/throwGlobalError-test.ts
server/sonar-web/src/main/js/app/utils/addGlobalSuccessMessage.ts
server/sonar-web/src/main/js/app/utils/handleRequiredAuthorization.ts
server/sonar-web/src/main/js/app/utils/startReactApp.tsx
server/sonar-web/src/main/js/app/utils/throwGlobalError.ts
server/sonar-web/src/main/js/apps/about/components/AboutApp.tsx
server/sonar-web/src/main/js/apps/about/components/AboutStandards.tsx
server/sonar-web/src/main/js/apps/about/components/EntryIssueTypes.tsx
server/sonar-web/src/main/js/apps/about/components/__tests__/AboutApp-test.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/AsAService.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/AzureDevOps.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/BranchAnalysis.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/Contact.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/Home.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/Pricing.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/SQHome.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/SonarLintIntegration.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/__tests__/BranchAnalysis-test.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/__tests__/Home-test.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/components/FeaturedProjects.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/components/Languages.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/components/NavBars.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/components/SQPageContainer.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/components/StartUsing.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/components/Statistics.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/components/__tests__/FeaturedProjects-test.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/components/__tests__/Footer-test.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/components/__tests__/LoginButtons-test.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/components/__tests__/Statistics-test.tsx
server/sonar-web/src/main/js/apps/account/components/Account.tsx
server/sonar-web/src/main/js/apps/account/components/Nav.tsx
server/sonar-web/src/main/js/apps/account/components/Password.tsx
server/sonar-web/src/main/js/apps/account/components/Security.tsx
server/sonar-web/src/main/js/apps/account/components/__tests__/Account-test.tsx
server/sonar-web/src/main/js/apps/account/components/__tests__/Password-test.tsx
server/sonar-web/src/main/js/apps/account/components/__tests__/Tokens-test.tsx
server/sonar-web/src/main/js/apps/account/notifications/GlobalNotifications.tsx
server/sonar-web/src/main/js/apps/account/notifications/Notifications.tsx
server/sonar-web/src/main/js/apps/account/notifications/NotificationsContainer.tsx
server/sonar-web/src/main/js/apps/account/notifications/NotificationsList.tsx
server/sonar-web/src/main/js/apps/account/notifications/ProjectNotifications.tsx
server/sonar-web/src/main/js/apps/account/notifications/Projects.tsx
server/sonar-web/src/main/js/apps/account/notifications/SonarCloudNotifications.tsx
server/sonar-web/src/main/js/apps/account/notifications/__tests__/GlobalNotifications-test.tsx
server/sonar-web/src/main/js/apps/account/notifications/__tests__/Notifications-test.tsx
server/sonar-web/src/main/js/apps/account/notifications/__tests__/NotificationsList-test.tsx
server/sonar-web/src/main/js/apps/account/notifications/__tests__/ProjectNotifications-test.tsx
server/sonar-web/src/main/js/apps/account/notifications/__tests__/Projects-test.tsx
server/sonar-web/src/main/js/apps/account/notifications/__tests__/SonarCloudNotifications-test.tsx
server/sonar-web/src/main/js/apps/account/organizations/OrganizationsList.tsx
server/sonar-web/src/main/js/apps/account/organizations/UserOrganizations.tsx
server/sonar-web/src/main/js/apps/account/organizations/actions.ts
server/sonar-web/src/main/js/apps/account/profile/Profile.tsx
server/sonar-web/src/main/js/apps/account/profile/UserDeleteAccount.tsx
server/sonar-web/src/main/js/apps/account/profile/UserDeleteAccountModal.tsx
server/sonar-web/src/main/js/apps/account/profile/__tests__/Profile-test.tsx
server/sonar-web/src/main/js/apps/account/profile/__tests__/UserDeleteAccount-test.tsx
server/sonar-web/src/main/js/apps/account/profile/__tests__/UserDeleteAccountContent-test.tsx
server/sonar-web/src/main/js/apps/account/profile/__tests__/UserDeleteAccountModal-test.tsx
server/sonar-web/src/main/js/apps/account/projects/ProjectCard.tsx
server/sonar-web/src/main/js/apps/account/projects/Projects.tsx
server/sonar-web/src/main/js/apps/account/projects/ProjectsContainer.tsx
server/sonar-web/src/main/js/apps/account/projects/__tests__/ProjectCard-test.tsx
server/sonar-web/src/main/js/apps/account/projects/__tests__/Projects-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/__tests__/BackgroundTasks-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/BackgroundTasksApp.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/CurrentsFilter.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/ScannerContext.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/Search.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/Stacktrace.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/StatPendingCount.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/StatStillFailing.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/StatusFilter.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/Task.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/TaskActions.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/TaskComponent.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/TaskDate.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/TaskDay.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/Tasks.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/TypesFilter.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/Workers.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/WorkersForm.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/BackgroundTasksApp-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/ScannerContext-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/Stacktrace-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/StatPendingCount-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/StatPendingTime-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/StatStillFailing-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/Stats-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/Task-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/TaskActions-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/TaskComponent-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/TaskDate-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/TaskDay-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/TaskExecutionTime-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/TaskId-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/TaskStatus-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/TaskType-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/Workers-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/WorkersForm-test.tsx
server/sonar-web/src/main/js/apps/background-tasks/utils.ts
server/sonar-web/src/main/js/apps/code/__tests__/buckets-test.tsx
server/sonar-web/src/main/js/apps/code/components/App.tsx
server/sonar-web/src/main/js/apps/code/components/Component.tsx
server/sonar-web/src/main/js/apps/code/components/ComponentMeasure.tsx
server/sonar-web/src/main/js/apps/code/components/Components.tsx
server/sonar-web/src/main/js/apps/code/components/ComponentsHeader.tsx
server/sonar-web/src/main/js/apps/code/components/Search.tsx
server/sonar-web/src/main/js/apps/code/components/SourceViewerWrapper.tsx
server/sonar-web/src/main/js/apps/code/components/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/code/components/__tests__/Component-test.tsx
server/sonar-web/src/main/js/apps/code/components/__tests__/ComponentMeasure-test.tsx
server/sonar-web/src/main/js/apps/code/components/__tests__/ComponentName-test.tsx
server/sonar-web/src/main/js/apps/code/components/__tests__/Components-test.tsx
server/sonar-web/src/main/js/apps/code/components/__tests__/ComponentsHeader-test.tsx
server/sonar-web/src/main/js/apps/code/utils.ts
server/sonar-web/src/main/js/apps/coding-rules/components/ActivationButton.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/ActivationFormModal.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/ActivationSeverityFacet.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/App.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/AvailableSinceFacet.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/BulkChange.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/BulkChangeModal.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/CustomRuleFormModal.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/DefaultSeverityFacet.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/Facet.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/FacetsList.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/LanguageFacet.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/PageActions.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/ProfileFacet.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/RemoveExtendedDescriptionModal.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/RepositoryFacet.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetails.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsCustomRules.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsDescription.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsIssues.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsMeta.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsProfiles.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsTagsPopup.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/RuleListItem.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/SimilarRulesFilter.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/StatusFacet.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/TagFacet.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/TemplateFacet.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/ActivationFormModal-test.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/BulkChange-test.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/BulkChangeModal-test.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/CustomRuleFormModal-test.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/FacetsList-test.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/RuleDetails-test.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/RuleDetailsDescription-test.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/RuleDetailsIssues-test.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/RuleDetailsMeta-test.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/RuleDetailsParameters-test.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/RuleDetailsTagsPopup-test.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/RuleListItem-test.tsx
server/sonar-web/src/main/js/apps/coding-rules/query.ts
server/sonar-web/src/main/js/apps/coding-rules/routes.ts
server/sonar-web/src/main/js/apps/component-measures/components/App.tsx
server/sonar-web/src/main/js/apps/component-measures/components/Breadcrumb.tsx
server/sonar-web/src/main/js/apps/component-measures/components/Breadcrumbs.tsx
server/sonar-web/src/main/js/apps/component-measures/components/LeakPeriodLegend.tsx
server/sonar-web/src/main/js/apps/component-measures/components/MeasureContent.tsx
server/sonar-web/src/main/js/apps/component-measures/components/MeasureHeader.tsx
server/sonar-web/src/main/js/apps/component-measures/components/MeasureOverview.tsx
server/sonar-web/src/main/js/apps/component-measures/components/MeasureOverviewContainer.tsx
server/sonar-web/src/main/js/apps/component-measures/components/MeasureViewSelect.tsx
server/sonar-web/src/main/js/apps/component-measures/components/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/component-measures/components/__tests__/Breadcrumb-test.tsx
server/sonar-web/src/main/js/apps/component-measures/components/__tests__/Breadcrumbs-test.tsx
server/sonar-web/src/main/js/apps/component-measures/components/__tests__/LeakPeriodLegend-test.tsx
server/sonar-web/src/main/js/apps/component-measures/components/__tests__/MeasureContent-test.tsx
server/sonar-web/src/main/js/apps/component-measures/components/__tests__/MeasureHeader-test.tsx
server/sonar-web/src/main/js/apps/component-measures/components/__tests__/MeasureViewSelect-test.tsx
server/sonar-web/src/main/js/apps/component-measures/drilldown/BubbleChart.tsx
server/sonar-web/src/main/js/apps/component-measures/drilldown/ComponentCell.tsx
server/sonar-web/src/main/js/apps/component-measures/drilldown/ComponentsList.tsx
server/sonar-web/src/main/js/apps/component-measures/drilldown/ComponentsListRow.tsx
server/sonar-web/src/main/js/apps/component-measures/drilldown/FilesView.tsx
server/sonar-web/src/main/js/apps/component-measures/drilldown/TreeMapView.tsx
server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/ComponentList-test.tsx
server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/FilesView-test.tsx
server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/MeasureCell-test.tsx
server/sonar-web/src/main/js/apps/component-measures/routes.ts
server/sonar-web/src/main/js/apps/component-measures/sidebar/DomainFacet.tsx
server/sonar-web/src/main/js/apps/component-measures/sidebar/FacetMeasureValue.tsx
server/sonar-web/src/main/js/apps/component-measures/sidebar/Sidebar.tsx
server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/DomainFacet-test.tsx
server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/FacetMeasureValue-test.tsx
server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/Sidebar-test.tsx
server/sonar-web/src/main/js/apps/component-measures/utils.ts
server/sonar-web/src/main/js/apps/create/components/FreeCardPlan.tsx
server/sonar-web/src/main/js/apps/create/components/OrganizationAvatarInput.tsx
server/sonar-web/src/main/js/apps/create/components/OrganizationKeyInput.tsx
server/sonar-web/src/main/js/apps/create/components/OrganizationSelect.tsx
server/sonar-web/src/main/js/apps/create/components/OrganizationUrlInput.tsx
server/sonar-web/src/main/js/apps/create/components/PaidCardPlan.tsx
server/sonar-web/src/main/js/apps/create/components/ProjectKeyInput.tsx
server/sonar-web/src/main/js/apps/create/components/UpgradeOrganizationBox.tsx
server/sonar-web/src/main/js/apps/create/components/UpgradeOrganizationModal.tsx
server/sonar-web/src/main/js/apps/create/components/__tests__/BillingFormShim-test.tsx
server/sonar-web/src/main/js/apps/create/components/__tests__/FreeCardPlan-test.tsx
server/sonar-web/src/main/js/apps/create/components/__tests__/OrganizationAvatarInput-test.tsx
server/sonar-web/src/main/js/apps/create/components/__tests__/OrganizationKeyInput-test.tsx
server/sonar-web/src/main/js/apps/create/components/__tests__/OrganizationSelect-test.tsx
server/sonar-web/src/main/js/apps/create/components/__tests__/OrganizationUrlInput-test.tsx
server/sonar-web/src/main/js/apps/create/components/__tests__/PaidCardPlan-test.tsx
server/sonar-web/src/main/js/apps/create/components/__tests__/ProjectKeyInput-test.tsx
server/sonar-web/src/main/js/apps/create/components/__tests__/UpgradeOrganizationAdvantages-test.tsx
server/sonar-web/src/main/js/apps/create/components/__tests__/UpgradeOrganizationBox-test.tsx
server/sonar-web/src/main/js/apps/create/components/__tests__/UpgradeOrganizationModal-test.tsx
server/sonar-web/src/main/js/apps/create/organization/AlmApplicationInstalling.tsx
server/sonar-web/src/main/js/apps/create/organization/AutoOrganizationBind.tsx
server/sonar-web/src/main/js/apps/create/organization/AutoOrganizationCreate.tsx
server/sonar-web/src/main/js/apps/create/organization/CreateOrganization.tsx
server/sonar-web/src/main/js/apps/create/organization/OrganizationDetailsForm.tsx
server/sonar-web/src/main/js/apps/create/organization/PlanStep.tsx
server/sonar-web/src/main/js/apps/create/organization/RemoteOrganizationChoose.tsx
server/sonar-web/src/main/js/apps/create/organization/__tests__/AlmApplicationInstalling-test.tsx
server/sonar-web/src/main/js/apps/create/organization/__tests__/AutoOrganizationBind-test.tsx
server/sonar-web/src/main/js/apps/create/organization/__tests__/AutoOrganizationCreate-test.tsx
server/sonar-web/src/main/js/apps/create/organization/__tests__/CreateOrganization-test.tsx
server/sonar-web/src/main/js/apps/create/organization/__tests__/ManualOrganizationCreate-test.tsx
server/sonar-web/src/main/js/apps/create/organization/__tests__/OrganizationDetailsForm-test.tsx
server/sonar-web/src/main/js/apps/create/organization/__tests__/OrganizationDetailsStep-test.tsx
server/sonar-web/src/main/js/apps/create/organization/__tests__/PlanSelect-test.tsx
server/sonar-web/src/main/js/apps/create/organization/__tests__/PlanStep-test.tsx
server/sonar-web/src/main/js/apps/create/organization/__tests__/RemoteOrganizationChoose-test.tsx
server/sonar-web/src/main/js/apps/create/organization/actions.ts
server/sonar-web/src/main/js/apps/create/organization/utils.ts
server/sonar-web/src/main/js/apps/create/project/AlmRepositoryItem.tsx
server/sonar-web/src/main/js/apps/create/project/AutoProjectCreate.tsx
server/sonar-web/src/main/js/apps/create/project/CreateProjectPage.tsx
server/sonar-web/src/main/js/apps/create/project/CreateProjectPageSonarCloud.tsx
server/sonar-web/src/main/js/apps/create/project/CreateProjectPageSonarQube.tsx
server/sonar-web/src/main/js/apps/create/project/ManualProjectCreate.tsx
server/sonar-web/src/main/js/apps/create/project/OrganizationInput.tsx
server/sonar-web/src/main/js/apps/create/project/RemoteRepositories.tsx
server/sonar-web/src/main/js/apps/create/project/SetupProjectBox.tsx
server/sonar-web/src/main/js/apps/create/project/__tests__/AlmRepositoryItem-test.tsx
server/sonar-web/src/main/js/apps/create/project/__tests__/AutoProjectCreate-test.tsx
server/sonar-web/src/main/js/apps/create/project/__tests__/CreateProjectPage-test.tsx
server/sonar-web/src/main/js/apps/create/project/__tests__/CreateProjectPageSonarCloud-test.tsx
server/sonar-web/src/main/js/apps/create/project/__tests__/ManualProjectCreate-test.tsx
server/sonar-web/src/main/js/apps/create/project/__tests__/OrganizationInput-test.tsx
server/sonar-web/src/main/js/apps/create/project/__tests__/RemoteRepositories-test.tsx
server/sonar-web/src/main/js/apps/create/project/__tests__/SetupProjectBox-test.tsx
server/sonar-web/src/main/js/apps/custom-measures/components/App.tsx
server/sonar-web/src/main/js/apps/custom-measures/components/CreateButton.tsx
server/sonar-web/src/main/js/apps/custom-measures/components/DeleteForm.tsx
server/sonar-web/src/main/js/apps/custom-measures/components/Form.tsx
server/sonar-web/src/main/js/apps/custom-measures/components/Header.tsx
server/sonar-web/src/main/js/apps/custom-measures/components/Item.tsx
server/sonar-web/src/main/js/apps/custom-measures/components/List.tsx
server/sonar-web/src/main/js/apps/custom-measures/components/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/custom-measures/components/__tests__/CreateButton-test.tsx
server/sonar-web/src/main/js/apps/custom-measures/components/__tests__/DeleteForm-test.tsx
server/sonar-web/src/main/js/apps/custom-measures/components/__tests__/Form-test.tsx
server/sonar-web/src/main/js/apps/custom-measures/components/__tests__/Header-test.tsx
server/sonar-web/src/main/js/apps/custom-measures/components/__tests__/Item-test.tsx
server/sonar-web/src/main/js/apps/custom-measures/components/__tests__/List-test.tsx
server/sonar-web/src/main/js/apps/custom-metrics/components/App.tsx
server/sonar-web/src/main/js/apps/custom-metrics/components/CreateButton.tsx
server/sonar-web/src/main/js/apps/custom-metrics/components/DeleteForm.tsx
server/sonar-web/src/main/js/apps/custom-metrics/components/Form.tsx
server/sonar-web/src/main/js/apps/custom-metrics/components/Header.tsx
server/sonar-web/src/main/js/apps/custom-metrics/components/Item.tsx
server/sonar-web/src/main/js/apps/custom-metrics/components/List.tsx
server/sonar-web/src/main/js/apps/custom-metrics/components/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/custom-metrics/components/__tests__/CreateButton-test.tsx
server/sonar-web/src/main/js/apps/custom-metrics/components/__tests__/DeleteForm-test.tsx
server/sonar-web/src/main/js/apps/custom-metrics/components/__tests__/Form-test.tsx
server/sonar-web/src/main/js/apps/custom-metrics/components/__tests__/Header-test.tsx
server/sonar-web/src/main/js/apps/custom-metrics/components/__tests__/Item-test.tsx
server/sonar-web/src/main/js/apps/custom-metrics/components/__tests__/List-test.tsx
server/sonar-web/src/main/js/apps/documentation/components/App.tsx
server/sonar-web/src/main/js/apps/documentation/components/Menu.tsx
server/sonar-web/src/main/js/apps/documentation/components/MenuBlock.tsx
server/sonar-web/src/main/js/apps/documentation/components/MenuItem.tsx
server/sonar-web/src/main/js/apps/documentation/components/SearchResultEntry.tsx
server/sonar-web/src/main/js/apps/documentation/components/SearchResults.tsx
server/sonar-web/src/main/js/apps/documentation/components/Sidebar.tsx
server/sonar-web/src/main/js/apps/documentation/components/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/documentation/components/__tests__/Menu-test.tsx
server/sonar-web/src/main/js/apps/documentation/components/__tests__/MenuBlock-test.tsx
server/sonar-web/src/main/js/apps/documentation/components/__tests__/MenuItem-test.tsx
server/sonar-web/src/main/js/apps/documentation/components/__tests__/SearchResultEntry-test.tsx
server/sonar-web/src/main/js/apps/documentation/components/__tests__/SearchResults-test.tsx
server/sonar-web/src/main/js/apps/documentation/components/__tests__/Sidebar-test.tsx
server/sonar-web/src/main/js/apps/documentation/navTreeUtils.ts
server/sonar-web/src/main/js/apps/documentation/pages.ts
server/sonar-web/src/main/js/apps/feedback/downgrade/DowngradeFeedback.tsx
server/sonar-web/src/main/js/apps/feedback/downgrade/__tests__/DowngradeFeedback-test.tsx
server/sonar-web/src/main/js/apps/groups/components/App.tsx
server/sonar-web/src/main/js/apps/groups/components/DeleteForm.tsx
server/sonar-web/src/main/js/apps/groups/components/EditMembers.tsx
server/sonar-web/src/main/js/apps/groups/components/EditMembersModal.tsx
server/sonar-web/src/main/js/apps/groups/components/Form.tsx
server/sonar-web/src/main/js/apps/groups/components/Header.tsx
server/sonar-web/src/main/js/apps/groups/components/List.tsx
server/sonar-web/src/main/js/apps/groups/components/ListItem.tsx
server/sonar-web/src/main/js/apps/groups/components/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/groups/components/__tests__/DeleteForm-test.tsx
server/sonar-web/src/main/js/apps/groups/components/__tests__/EditMembers-test.tsx
server/sonar-web/src/main/js/apps/groups/components/__tests__/EditMembersModal-test.tsx
server/sonar-web/src/main/js/apps/groups/components/__tests__/Form-test.tsx
server/sonar-web/src/main/js/apps/groups/components/__tests__/Header-test.tsx
server/sonar-web/src/main/js/apps/groups/components/__tests__/List-test.tsx
server/sonar-web/src/main/js/apps/groups/components/__tests__/ListItem-test.tsx
server/sonar-web/src/main/js/apps/issues/IssuesPageSelector.tsx
server/sonar-web/src/main/js/apps/issues/__tests__/IssuesPageSelector-test.tsx
server/sonar-web/src/main/js/apps/issues/__tests__/actions-test.ts
server/sonar-web/src/main/js/apps/issues/__tests__/utils-test.ts
server/sonar-web/src/main/js/apps/issues/components/App.tsx
server/sonar-web/src/main/js/apps/issues/components/AppContainer.tsx
server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.tsx
server/sonar-web/src/main/js/apps/issues/components/ComponentBreadcrumbs.tsx
server/sonar-web/src/main/js/apps/issues/components/IssuesList.tsx
server/sonar-web/src/main/js/apps/issues/components/IssuesSourceViewer.tsx
server/sonar-web/src/main/js/apps/issues/components/ListItem.tsx
server/sonar-web/src/main/js/apps/issues/components/MyIssuesFilter.tsx
server/sonar-web/src/main/js/apps/issues/components/PageActions.tsx
server/sonar-web/src/main/js/apps/issues/components/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/issues/components/__tests__/BulkChangeModal-test.tsx
server/sonar-web/src/main/js/apps/issues/components/__tests__/ComponentBreadcrumbs-test.tsx
server/sonar-web/src/main/js/apps/issues/components/__tests__/IssuesContainer-test.tsx
server/sonar-web/src/main/js/apps/issues/components/__tests__/IssuesList-test.tsx
server/sonar-web/src/main/js/apps/issues/components/__tests__/IssuesSourceViewer-test.tsx
server/sonar-web/src/main/js/apps/issues/components/__tests__/LocationNavigationKeyboardShortcuts-test.tsx
server/sonar-web/src/main/js/apps/issues/components/__tests__/PageActions-test.tsx
server/sonar-web/src/main/js/apps/issues/components/__tests__/TotalEffort-test.tsx
server/sonar-web/src/main/js/apps/issues/conciseIssuesList/ConciseIssueBox.tsx
server/sonar-web/src/main/js/apps/issues/conciseIssuesList/ConciseIssueLocationBadge.tsx
server/sonar-web/src/main/js/apps/issues/conciseIssuesList/ConciseIssueLocationsNavigator.tsx
server/sonar-web/src/main/js/apps/issues/conciseIssuesList/CrossFileLocationsNavigator.tsx
server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/ConciseIssue-test.tsx
server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/ConciseIssueBox-test.tsx
server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/ConciseIssueComponent-test.tsx
server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/ConciseIssueLocationBadge-test.tsx
server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/ConciseIssueLocations-test.tsx
server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/ConciseIssueLocationsNavigator-test.tsx
server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/ConciseIssueLocationsNavigatorLocation-test.tsx
server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/ConciseIssuesList-test.tsx
server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/CrossFileLocationsNavigator-test.tsx
server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/ComponentSourceSnippetViewer.tsx
server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/CrossComponentSourceViewerWrapper.tsx
server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/SnippetViewer.tsx
server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/ComponentSourceSnippetViewer-test.tsx
server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/CrossComponentSourceViewerWrapper-test.tsx
server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/SnippetViewer-test.tsx
server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/utils-test.ts
server/sonar-web/src/main/js/apps/issues/redirects.ts
server/sonar-web/src/main/js/apps/issues/sidebar/AssigneeFacet.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/AuthorFacet.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/DirectoryFacet.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/FileFacet.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/LanguageFacet.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/ProjectFacet.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/ResolutionFacet.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/RuleFacet.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/StandardFacet.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/StatusFacet.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/TagFacet.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/TypeFacet.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/AssigneeFacet-test.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/Sidebar-test.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/StandardFacet-test.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/StatusFacet-test.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/TypeFacet-test.tsx
server/sonar-web/src/main/js/apps/issues/utils.ts
server/sonar-web/src/main/js/apps/maintenance/components/App.tsx
server/sonar-web/src/main/js/apps/maintenance/components/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/marketplace/App.tsx
server/sonar-web/src/main/js/apps/marketplace/AppContainer.tsx
server/sonar-web/src/main/js/apps/marketplace/EditionBoxes.tsx
server/sonar-web/src/main/js/apps/marketplace/PluginsList.tsx
server/sonar-web/src/main/js/apps/marketplace/Search.tsx
server/sonar-web/src/main/js/apps/marketplace/__tests__/EditionBoxes-test.tsx
server/sonar-web/src/main/js/apps/marketplace/__tests__/Footer-test.tsx
server/sonar-web/src/main/js/apps/marketplace/__tests__/Header-test.tsx
server/sonar-web/src/main/js/apps/marketplace/components/EditionBox.tsx
server/sonar-web/src/main/js/apps/marketplace/components/LicensePromptModal.tsx
server/sonar-web/src/main/js/apps/marketplace/components/PluginActions.tsx
server/sonar-web/src/main/js/apps/marketplace/components/PluginAvailable.tsx
server/sonar-web/src/main/js/apps/marketplace/components/PluginChangeLog.tsx
server/sonar-web/src/main/js/apps/marketplace/components/PluginChangeLogButton.tsx
server/sonar-web/src/main/js/apps/marketplace/components/PluginChangeLogItem.tsx
server/sonar-web/src/main/js/apps/marketplace/components/PluginInstalled.tsx
server/sonar-web/src/main/js/apps/marketplace/components/PluginLicense.tsx
server/sonar-web/src/main/js/apps/marketplace/components/PluginStatus.tsx
server/sonar-web/src/main/js/apps/marketplace/components/PluginUpdateButton.tsx
server/sonar-web/src/main/js/apps/marketplace/components/PluginUpdateItem.tsx
server/sonar-web/src/main/js/apps/marketplace/components/PluginUpdates.tsx
server/sonar-web/src/main/js/apps/marketplace/components/__tests__/EditionBox-test.tsx
server/sonar-web/src/main/js/apps/marketplace/components/__tests__/PluginActions-test.tsx
server/sonar-web/src/main/js/apps/marketplace/components/__tests__/PluginChangeLog-test.tsx
server/sonar-web/src/main/js/apps/marketplace/components/__tests__/PluginDescription-test.tsx
server/sonar-web/src/main/js/apps/marketplace/components/__tests__/PluginLicense-test.tsx
server/sonar-web/src/main/js/apps/marketplace/components/__tests__/PluginUrls-test.tsx
server/sonar-web/src/main/js/apps/marketplace/utils.ts
server/sonar-web/src/main/js/apps/organizationMembers/AddMemberForm.tsx
server/sonar-web/src/main/js/apps/organizationMembers/ManageMemberGroupsForm.tsx
server/sonar-web/src/main/js/apps/organizationMembers/MembersList.tsx
server/sonar-web/src/main/js/apps/organizationMembers/MembersListHeader.tsx
server/sonar-web/src/main/js/apps/organizationMembers/MembersListItem.tsx
server/sonar-web/src/main/js/apps/organizationMembers/MembersPageHeader.tsx
server/sonar-web/src/main/js/apps/organizationMembers/OrganizationMembers.tsx
server/sonar-web/src/main/js/apps/organizationMembers/OrganizationMembersContainer.tsx
server/sonar-web/src/main/js/apps/organizationMembers/RemoveMemberForm.tsx
server/sonar-web/src/main/js/apps/organizationMembers/SyncMemberForm.tsx
server/sonar-web/src/main/js/apps/organizationMembers/__tests__/AddMemberForm-test.tsx
server/sonar-web/src/main/js/apps/organizationMembers/__tests__/ManageMemberGroupsForm-test.tsx
server/sonar-web/src/main/js/apps/organizationMembers/__tests__/MembersList-test.tsx
server/sonar-web/src/main/js/apps/organizationMembers/__tests__/MembersListHeader-test.tsx
server/sonar-web/src/main/js/apps/organizationMembers/__tests__/MembersListItem-test.tsx
server/sonar-web/src/main/js/apps/organizationMembers/__tests__/MembersPageHeader-test.tsx
server/sonar-web/src/main/js/apps/organizationMembers/__tests__/OrganizationMembers-test.tsx
server/sonar-web/src/main/js/apps/organizationMembers/__tests__/RemoveMemberForm-test.tsx
server/sonar-web/src/main/js/apps/organizationMembers/__tests__/SyncMemberForm-test.tsx
server/sonar-web/src/main/js/apps/organizations/__tests__/actions-test.ts
server/sonar-web/src/main/js/apps/organizations/actions.ts
server/sonar-web/src/main/js/apps/organizations/components/OrganizationAccessContainer.tsx
server/sonar-web/src/main/js/apps/organizations/components/OrganizationBind.tsx
server/sonar-web/src/main/js/apps/organizations/components/OrganizationDelete.tsx
server/sonar-web/src/main/js/apps/organizations/components/OrganizationEdit.tsx
server/sonar-web/src/main/js/apps/organizations/components/OrganizationEmpty.tsx
server/sonar-web/src/main/js/apps/organizations/components/OrganizationGroupCheckbox.tsx
server/sonar-web/src/main/js/apps/organizations/components/OrganizationPage.tsx
server/sonar-web/src/main/js/apps/organizations/components/OrganizationProjects.tsx
server/sonar-web/src/main/js/apps/organizations/components/__tests__/OrganizationAccessContainer-test.tsx
server/sonar-web/src/main/js/apps/organizations/components/__tests__/OrganizationBind-test.tsx
server/sonar-web/src/main/js/apps/organizations/components/__tests__/OrganizationDelete-test.tsx
server/sonar-web/src/main/js/apps/organizations/components/__tests__/OrganizationEdit-test.tsx
server/sonar-web/src/main/js/apps/organizations/components/__tests__/OrganizationEmpty-test.tsx
server/sonar-web/src/main/js/apps/organizations/components/__tests__/OrganizationGroupCheckbox-test.tsx
server/sonar-web/src/main/js/apps/organizations/components/__tests__/OrganizationPage-test.tsx
server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigation.tsx
server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigationAdministration.tsx
server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigationExtensions.tsx
server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigationHeader.tsx
server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigationMenuContainer.tsx
server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigationMeta.tsx
server/sonar-web/src/main/js/apps/organizations/navigation/__tests__/OrganizationNavigation-test.tsx
server/sonar-web/src/main/js/apps/organizations/navigation/__tests__/OrganizationNavigationAdministration-test.tsx
server/sonar-web/src/main/js/apps/organizations/navigation/__tests__/OrganizationNavigationHeader-test.tsx
server/sonar-web/src/main/js/apps/organizations/navigation/__tests__/OrganizationNavigationMenuContainer-test.tsx
server/sonar-web/src/main/js/apps/organizations/navigation/__tests__/OrganizationNavigationMeta-test.tsx
server/sonar-web/src/main/js/apps/organizations/routes.ts
server/sonar-web/src/main/js/apps/overview/badges/BadgeButton.tsx
server/sonar-web/src/main/js/apps/overview/badges/BadgeParams.tsx
server/sonar-web/src/main/js/apps/overview/badges/BadgesModal.tsx
server/sonar-web/src/main/js/apps/overview/badges/__tests__/BadgeButton-test.tsx
server/sonar-web/src/main/js/apps/overview/badges/__tests__/BadgeParams-test.tsx
server/sonar-web/src/main/js/apps/overview/badges/__tests__/BadgesModal-test.tsx
server/sonar-web/src/main/js/apps/overview/badges/__tests__/utils-test.ts
server/sonar-web/src/main/js/apps/overview/components/App.tsx
server/sonar-web/src/main/js/apps/overview/components/ApplicationLeakPeriodLegend.tsx
server/sonar-web/src/main/js/apps/overview/components/EmptyOverview.tsx
server/sonar-web/src/main/js/apps/overview/components/LeakPeriodLegend.tsx
server/sonar-web/src/main/js/apps/overview/components/OverviewApp.tsx
server/sonar-web/src/main/js/apps/overview/components/Timeline.tsx
server/sonar-web/src/main/js/apps/overview/components/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/overview/components/__tests__/ApplicationLeakPeriodLegend-test.tsx
server/sonar-web/src/main/js/apps/overview/components/__tests__/EmptyOverview-test.tsx
server/sonar-web/src/main/js/apps/overview/components/__tests__/LeakPeriodLegend-test.tsx
server/sonar-web/src/main/js/apps/overview/components/__tests__/OverviewApp-test.tsx
server/sonar-web/src/main/js/apps/overview/components/__tests__/Timeline-test.tsx
server/sonar-web/src/main/js/apps/overview/events/AnalysesList.tsx
server/sonar-web/src/main/js/apps/overview/events/Analysis.tsx
server/sonar-web/src/main/js/apps/overview/events/Event.tsx
server/sonar-web/src/main/js/apps/overview/events/__tests__/AnalysesList-test.tsx
server/sonar-web/src/main/js/apps/overview/events/__tests__/Analysis-test.tsx
server/sonar-web/src/main/js/apps/overview/events/__tests__/Event-test.tsx
server/sonar-web/src/main/js/apps/overview/main/Bugs.tsx
server/sonar-web/src/main/js/apps/overview/main/CodeSmells.tsx
server/sonar-web/src/main/js/apps/overview/main/Coverage.tsx
server/sonar-web/src/main/js/apps/overview/main/Duplications.tsx
server/sonar-web/src/main/js/apps/overview/main/VulnerabilitiesAndHotspots.tsx
server/sonar-web/src/main/js/apps/overview/main/__tests__/Bugs-test.tsx
server/sonar-web/src/main/js/apps/overview/main/__tests__/CodeSmells-test.tsx
server/sonar-web/src/main/js/apps/overview/main/__tests__/Coverage-test.tsx
server/sonar-web/src/main/js/apps/overview/main/__tests__/Duplications-test.tsx
server/sonar-web/src/main/js/apps/overview/main/__tests__/VulnerabilitiesAndHotspots-test.tsx
server/sonar-web/src/main/js/apps/overview/main/enhance.tsx
server/sonar-web/src/main/js/apps/overview/meta/MetaContainer.tsx
server/sonar-web/src/main/js/apps/overview/meta/MetaKey.tsx
server/sonar-web/src/main/js/apps/overview/meta/MetaLink.tsx
server/sonar-web/src/main/js/apps/overview/meta/MetaLinks.tsx
server/sonar-web/src/main/js/apps/overview/meta/MetaOrganizationKey.tsx
server/sonar-web/src/main/js/apps/overview/meta/MetaQualityProfiles.tsx
server/sonar-web/src/main/js/apps/overview/meta/MetaSize.tsx
server/sonar-web/src/main/js/apps/overview/meta/MetaTags.tsx
server/sonar-web/src/main/js/apps/overview/meta/MetaTagsSelector.tsx
server/sonar-web/src/main/js/apps/overview/meta/__tests__/MetaContainer-test.tsx
server/sonar-web/src/main/js/apps/overview/meta/__tests__/MetaLink-test.tsx
server/sonar-web/src/main/js/apps/overview/meta/__tests__/MetaQualityProfiles-test.tsx
server/sonar-web/src/main/js/apps/overview/meta/__tests__/MetaTags-test.tsx
server/sonar-web/src/main/js/apps/overview/meta/__tests__/MetaTagsSelector-test.tsx
server/sonar-web/src/main/js/apps/overview/pullRequests/AfterMergeEstimate.tsx
server/sonar-web/src/main/js/apps/overview/pullRequests/IssueLabel.tsx
server/sonar-web/src/main/js/apps/overview/pullRequests/IssueRating.tsx
server/sonar-web/src/main/js/apps/overview/pullRequests/LargeQualityGateBadge.tsx
server/sonar-web/src/main/js/apps/overview/pullRequests/MeasurementLabel.tsx
server/sonar-web/src/main/js/apps/overview/pullRequests/ReviewApp.tsx
server/sonar-web/src/main/js/apps/overview/pullRequests/__tests__/AfterMergeEstimate-test.tsx
server/sonar-web/src/main/js/apps/overview/pullRequests/__tests__/IssueLabel-test.tsx
server/sonar-web/src/main/js/apps/overview/pullRequests/__tests__/IssueRating-test.tsx
server/sonar-web/src/main/js/apps/overview/pullRequests/__tests__/LargeQualityGateBadge-test.tsx
server/sonar-web/src/main/js/apps/overview/pullRequests/__tests__/MeasurementLabel-test.tsx
server/sonar-web/src/main/js/apps/overview/pullRequests/__tests__/ReviewApp-test.tsx
server/sonar-web/src/main/js/apps/overview/qualityGate/ApplicationQualityGate.tsx
server/sonar-web/src/main/js/apps/overview/qualityGate/ApplicationQualityGateProject.tsx
server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGate.tsx
server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateCondition.tsx
server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateConditions.tsx
server/sonar-web/src/main/js/apps/overview/qualityGate/__tests__/ApplicationQualityGate-test.tsx
server/sonar-web/src/main/js/apps/overview/qualityGate/__tests__/ApplicationQualityGateProject-test.tsx
server/sonar-web/src/main/js/apps/overview/qualityGate/__tests__/QualityGate-test.tsx
server/sonar-web/src/main/js/apps/overview/qualityGate/__tests__/QualityGateCondition-test.tsx
server/sonar-web/src/main/js/apps/overview/qualityGate/__tests__/QualityGateConditions-test.tsx
server/sonar-web/src/main/js/apps/overview/utils.ts
server/sonar-web/src/main/js/apps/permission-templates/components/ActionsCell.tsx
server/sonar-web/src/main/js/apps/permission-templates/components/App.tsx
server/sonar-web/src/main/js/apps/permission-templates/components/Defaults.tsx
server/sonar-web/src/main/js/apps/permission-templates/components/DeleteForm.tsx
server/sonar-web/src/main/js/apps/permission-templates/components/Form.tsx
server/sonar-web/src/main/js/apps/permission-templates/components/Header.tsx
server/sonar-web/src/main/js/apps/permission-templates/components/ListHeader.tsx
server/sonar-web/src/main/js/apps/permission-templates/components/ListItem.tsx
server/sonar-web/src/main/js/apps/permission-templates/components/PermissionCell.tsx
server/sonar-web/src/main/js/apps/permission-templates/components/Template.tsx
server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/ActionsCell-test.tsx
server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/Defaults-test.tsx
server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/Form-test.tsx
server/sonar-web/src/main/js/apps/permissions/__tests__/utils-test.ts
server/sonar-web/src/main/js/apps/permissions/global/components/AllHoldersList.tsx
server/sonar-web/src/main/js/apps/permissions/global/components/App.tsx
server/sonar-web/src/main/js/apps/permissions/global/components/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/permissions/project/components/AllHoldersList.tsx
server/sonar-web/src/main/js/apps/permissions/project/components/App.tsx
server/sonar-web/src/main/js/apps/permissions/project/components/AppContainer.ts
server/sonar-web/src/main/js/apps/permissions/project/components/ApplyTemplate.tsx
server/sonar-web/src/main/js/apps/permissions/project/components/PageHeader.tsx
server/sonar-web/src/main/js/apps/permissions/project/components/PublicProjectDisclaimer.tsx
server/sonar-web/src/main/js/apps/permissions/project/components/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/permissions/project/components/__tests__/ApplyTemplate-test.tsx
server/sonar-web/src/main/js/apps/permissions/shared/components/GroupHolder.tsx
server/sonar-web/src/main/js/apps/permissions/shared/components/HoldersList.tsx
server/sonar-web/src/main/js/apps/permissions/shared/components/PermissionCell.tsx
server/sonar-web/src/main/js/apps/permissions/shared/components/PermissionHeader.tsx
server/sonar-web/src/main/js/apps/permissions/shared/components/SearchForm.tsx
server/sonar-web/src/main/js/apps/permissions/shared/components/UserHolder.tsx
server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/GroupHolder-test.tsx
server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/HoldersList-test.tsx
server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/PermissionCell-test.tsx
server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/UserHolder-test.tsx
server/sonar-web/src/main/js/apps/portfolio/__tests__/utils-test.ts
server/sonar-web/src/main/js/apps/portfolio/components/App.tsx
server/sonar-web/src/main/js/apps/portfolio/components/Effort.tsx
server/sonar-web/src/main/js/apps/portfolio/components/MetricBox.tsx
server/sonar-web/src/main/js/apps/portfolio/components/RatingFreshness.tsx
server/sonar-web/src/main/js/apps/portfolio/components/Report.tsx
server/sonar-web/src/main/js/apps/portfolio/components/Subscription.tsx
server/sonar-web/src/main/js/apps/portfolio/components/WorstProjects.tsx
server/sonar-web/src/main/js/apps/portfolio/components/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/portfolio/components/__tests__/Effort-test.tsx
server/sonar-web/src/main/js/apps/portfolio/components/__tests__/HistoryButtonLink-test.tsx
server/sonar-web/src/main/js/apps/portfolio/components/__tests__/MainRating-test.tsx
server/sonar-web/src/main/js/apps/portfolio/components/__tests__/MeasuresButtonLink-test.tsx
server/sonar-web/src/main/js/apps/portfolio/components/__tests__/MetricBox-test.tsx
server/sonar-web/src/main/js/apps/portfolio/components/__tests__/RatingFreshness-test.tsx
server/sonar-web/src/main/js/apps/portfolio/components/__tests__/Report-test.tsx
server/sonar-web/src/main/js/apps/portfolio/components/__tests__/Subscription-test.tsx
server/sonar-web/src/main/js/apps/portfolio/components/__tests__/WorstProjects-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/DefinitionChangeEventInner.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/Event.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/EventInner.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/Events.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/GraphHistory.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/GraphsHistory.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/GraphsLegendCustom.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/GraphsLegendItem.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/GraphsLegendStatic.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltips.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAnalysesList.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAnalysis.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityApp.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAppContainer.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityDateInput.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityGraphs.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityGraphsHeader.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityPageHeader.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/RichQualityGateEventInner.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/DefinitionChangeEventInner-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/GraphHistory-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/GraphsHistory-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/GraphsLegendCustom-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/GraphsLegendItem-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/GraphsLegendStatic-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/GraphsTooltips-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/GraphsTooltipsContent-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/GraphsTooltipsContentCoverage-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/GraphsTooltipsContentDuplication-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/GraphsTooltipsContentEvents-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/GraphsTooltipsContentIssues-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/ProjectActivityAnalysesList-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/ProjectActivityAnalysis-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/ProjectActivityApp-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/ProjectActivityAppContainer-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/ProjectActivityDateInput-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/ProjectActivityEventSelectOption-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/ProjectActivityGraphs-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/ProjectActivityPageHeader-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/RichQualityGateEventInner-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddEventForm.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddGraphMetric.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddGraphMetricPopup.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeEventForm.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveAnalysisForm.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveEventForm.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/forms/__tests__/AddEventForm-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/forms/__tests__/ChangeEventForm-test.tsx
server/sonar-web/src/main/js/apps/projectActivity/utils.ts
server/sonar-web/src/main/js/apps/projectBranches/components/App.tsx
server/sonar-web/src/main/js/apps/projectBranches/components/AppContainer.ts
server/sonar-web/src/main/js/apps/projectBranches/components/BranchRow.tsx
server/sonar-web/src/main/js/apps/projectBranches/components/DeleteBranchModal.tsx
server/sonar-web/src/main/js/apps/projectBranches/components/LeakPeriodForm.tsx
server/sonar-web/src/main/js/apps/projectBranches/components/LongBranchesPattern.tsx
server/sonar-web/src/main/js/apps/projectBranches/components/LongBranchesPatternForm.tsx
server/sonar-web/src/main/js/apps/projectBranches/components/RenameBranchModal.tsx
server/sonar-web/src/main/js/apps/projectBranches/components/SettingForm.tsx
server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/BranchRow-test.tsx
server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/DeleteBranchModal-test.tsx
server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/LongBranchesPattern-test.tsx
server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/LongBranchesPatternForm-test.tsx
server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/RenameBranchModal-test.tsx
server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/SettingForm-test.tsx
server/sonar-web/src/main/js/apps/projectDeletion/App.tsx
server/sonar-web/src/main/js/apps/projectDeletion/Form.tsx
server/sonar-web/src/main/js/apps/projectDeletion/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/projectDeletion/__tests__/Form-test.tsx
server/sonar-web/src/main/js/apps/projectDeletion/__tests__/Header-test.tsx
server/sonar-web/src/main/js/apps/projectKey/Key.tsx
server/sonar-web/src/main/js/apps/projectKey/UpdateForm.tsx
server/sonar-web/src/main/js/apps/projectKey/__tests__/Key-test.tsx
server/sonar-web/src/main/js/apps/projectKey/__tests__/UpdateForm-test.tsx
server/sonar-web/src/main/js/apps/projectLinks/App.tsx
server/sonar-web/src/main/js/apps/projectLinks/CreationModal.tsx
server/sonar-web/src/main/js/apps/projectLinks/Header.tsx
server/sonar-web/src/main/js/apps/projectLinks/LinkRow.tsx
server/sonar-web/src/main/js/apps/projectLinks/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/projectLinks/__tests__/CreationModal-test.tsx
server/sonar-web/src/main/js/apps/projectLinks/__tests__/Header-test.tsx
server/sonar-web/src/main/js/apps/projectLinks/__tests__/LinkRow-test.tsx
server/sonar-web/src/main/js/apps/projectLinks/__tests__/Table-test.tsx
server/sonar-web/src/main/js/apps/projectQualityGate/App.tsx
server/sonar-web/src/main/js/apps/projectQualityGate/Form.tsx
server/sonar-web/src/main/js/apps/projectQualityGate/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/projectQualityGate/__tests__/Form-test.tsx
server/sonar-web/src/main/js/apps/projectQualityGate/__tests__/Header-test.tsx
server/sonar-web/src/main/js/apps/projectQualityProfiles/App.tsx
server/sonar-web/src/main/js/apps/projectQualityProfiles/ProfileRow.tsx
server/sonar-web/src/main/js/apps/projectQualityProfiles/Table.tsx
server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/Header-test.tsx
server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/ProfileRow-test.tsx
server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/Table-test.tsx
server/sonar-web/src/main/js/apps/projects/__tests__/utils-test.ts
server/sonar-web/src/main/js/apps/projects/components/AllProjects.tsx
server/sonar-web/src/main/js/apps/projects/components/AllProjectsContainer.tsx
server/sonar-web/src/main/js/apps/projects/components/ClearAll.tsx
server/sonar-web/src/main/js/apps/projects/components/DefaultPageSelector.tsx
server/sonar-web/src/main/js/apps/projects/components/DefaultPageSelectorContainer.tsx
server/sonar-web/src/main/js/apps/projects/components/EmptyFavoriteSearch.tsx
server/sonar-web/src/main/js/apps/projects/components/EmptyInstance.tsx
server/sonar-web/src/main/js/apps/projects/components/FavoriteFilter.tsx
server/sonar-web/src/main/js/apps/projects/components/FavoriteFilterContainer.tsx
server/sonar-web/src/main/js/apps/projects/components/NoFavoriteProjects.tsx
server/sonar-web/src/main/js/apps/projects/components/PageHeader.tsx
server/sonar-web/src/main/js/apps/projects/components/PageSidebar.tsx
server/sonar-web/src/main/js/apps/projects/components/PerspectiveSelect.tsx
server/sonar-web/src/main/js/apps/projects/components/PerspectiveSelectOption.tsx
server/sonar-web/src/main/js/apps/projects/components/ProjectCard.tsx
server/sonar-web/src/main/js/apps/projects/components/ProjectCardLanguages.tsx
server/sonar-web/src/main/js/apps/projects/components/ProjectCardLanguagesContainer.tsx
server/sonar-web/src/main/js/apps/projects/components/ProjectCardLeak.tsx
server/sonar-web/src/main/js/apps/projects/components/ProjectCardOrganizationContainer.tsx
server/sonar-web/src/main/js/apps/projects/components/ProjectCardOverall.tsx
server/sonar-web/src/main/js/apps/projects/components/ProjectCardOverallMeasures.tsx
server/sonar-web/src/main/js/apps/projects/components/ProjectCardQualityGate.tsx
server/sonar-web/src/main/js/apps/projects/components/ProjectsList.tsx
server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx
server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelectOption.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/AllProjects-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/ClearAll-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/DefaultPageSelector-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/EmptyInstance-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/FavoriteFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/NoFavoriteProjects-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/PageHeader-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/PageSidebar-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/PerspectiveSelect-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/PerspectiveSelectOption-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectCard-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectCardLanguages-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectCardLeak-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectCardLeakMeasures-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectCardOverall-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectCardOverallMeasures-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectCardQualityGate-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectsList-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectsSortingSelect-test.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectsSortingSelectOption-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/CoverageFilter.tsx
server/sonar-web/src/main/js/apps/projects/filters/DuplicationsFilter.tsx
server/sonar-web/src/main/js/apps/projects/filters/Filter.tsx
server/sonar-web/src/main/js/apps/projects/filters/IssuesFilter.tsx
server/sonar-web/src/main/js/apps/projects/filters/LanguagesFilter.tsx
server/sonar-web/src/main/js/apps/projects/filters/LanguagesFilterContainer.tsx
server/sonar-web/src/main/js/apps/projects/filters/MaintainabilityFilter.tsx
server/sonar-web/src/main/js/apps/projects/filters/NewLinesFilter.tsx
server/sonar-web/src/main/js/apps/projects/filters/NewMaintainabilityFilter.tsx
server/sonar-web/src/main/js/apps/projects/filters/NewReliabilityFilter.tsx
server/sonar-web/src/main/js/apps/projects/filters/NewSecurityFilter.tsx
server/sonar-web/src/main/js/apps/projects/filters/QualityGateFilter.tsx
server/sonar-web/src/main/js/apps/projects/filters/ReliabilityFilter.tsx
server/sonar-web/src/main/js/apps/projects/filters/SearchFilterContainer.tsx
server/sonar-web/src/main/js/apps/projects/filters/SearchableFilterFooter.tsx
server/sonar-web/src/main/js/apps/projects/filters/SecurityFilter.tsx
server/sonar-web/src/main/js/apps/projects/filters/SizeFilter.tsx
server/sonar-web/src/main/js/apps/projects/filters/TagsFilter.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/CoverageFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/DuplicationsFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/Filter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/FilterHeader-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/IssuesFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/LanguagesFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/MaintainabilityFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/NewCoverageFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/NewDuplicationsFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/NewLinesFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/NewMaintainabilityFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/NewReliabilityFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/NewSecurityFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/QualityGateFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/ReliabilityFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/SearchFilterContainer-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/SearchableFilterFooter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/SearchableFilterOption-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/SecurityFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/SizeFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/filters/__tests__/TagsFilter-test.tsx
server/sonar-web/src/main/js/apps/projects/routes.ts
server/sonar-web/src/main/js/apps/projects/utils.ts
server/sonar-web/src/main/js/apps/projects/visualizations/Coverage.tsx
server/sonar-web/src/main/js/apps/projects/visualizations/Duplications.tsx
server/sonar-web/src/main/js/apps/projects/visualizations/Maintainability.tsx
server/sonar-web/src/main/js/apps/projects/visualizations/Reliability.tsx
server/sonar-web/src/main/js/apps/projects/visualizations/Risk.tsx
server/sonar-web/src/main/js/apps/projects/visualizations/Security.tsx
server/sonar-web/src/main/js/apps/projects/visualizations/SimpleBubbleChart.tsx
server/sonar-web/src/main/js/apps/projects/visualizations/Visualizations.tsx
server/sonar-web/src/main/js/apps/projects/visualizations/__tests__/Coverage-test.tsx
server/sonar-web/src/main/js/apps/projects/visualizations/__tests__/Duplications-test.tsx
server/sonar-web/src/main/js/apps/projects/visualizations/__tests__/Maintainability-test.tsx
server/sonar-web/src/main/js/apps/projects/visualizations/__tests__/Reliability-test.tsx
server/sonar-web/src/main/js/apps/projects/visualizations/__tests__/Risk-test.tsx
server/sonar-web/src/main/js/apps/projects/visualizations/__tests__/Security-test.tsx
server/sonar-web/src/main/js/apps/projects/visualizations/__tests__/SimpleBubbleChart-test.tsx
server/sonar-web/src/main/js/apps/projects/visualizations/__tests__/Visualizations-test.tsx
server/sonar-web/src/main/js/apps/projectsManagement/App.tsx
server/sonar-web/src/main/js/apps/projectsManagement/AppContainer.tsx
server/sonar-web/src/main/js/apps/projectsManagement/BulkApplyTemplateModal.tsx
server/sonar-web/src/main/js/apps/projectsManagement/ChangeDefaultVisibilityForm.tsx
server/sonar-web/src/main/js/apps/projectsManagement/CreateProjectForm.tsx
server/sonar-web/src/main/js/apps/projectsManagement/DeleteModal.tsx
server/sonar-web/src/main/js/apps/projectsManagement/Header.tsx
server/sonar-web/src/main/js/apps/projectsManagement/ProjectRow.tsx
server/sonar-web/src/main/js/apps/projectsManagement/ProjectRowActions.tsx
server/sonar-web/src/main/js/apps/projectsManagement/Projects.tsx
server/sonar-web/src/main/js/apps/projectsManagement/RestoreAccessModal.tsx
server/sonar-web/src/main/js/apps/projectsManagement/Search.tsx
server/sonar-web/src/main/js/apps/projectsManagement/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/projectsManagement/__tests__/BulkApplyTemplateModal-test.tsx
server/sonar-web/src/main/js/apps/projectsManagement/__tests__/ChangeDefaultVisibilityForm-test.tsx
server/sonar-web/src/main/js/apps/projectsManagement/__tests__/CreateProjectForm-test.tsx
server/sonar-web/src/main/js/apps/projectsManagement/__tests__/DeleteModal-test.tsx
server/sonar-web/src/main/js/apps/projectsManagement/__tests__/Header-test.tsx
server/sonar-web/src/main/js/apps/projectsManagement/__tests__/ProjectRow-test.tsx
server/sonar-web/src/main/js/apps/projectsManagement/__tests__/ProjectRowActions-test.tsx
server/sonar-web/src/main/js/apps/projectsManagement/__tests__/Projects-test.tsx
server/sonar-web/src/main/js/apps/projectsManagement/__tests__/Search-test.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/App.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/BuiltInQualityGateBadge.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/ConditionOperator.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/Conditions.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/CopyQualityGateForm.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/CreateQualityGateForm.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/Details.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/DetailsContent.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/DetailsHeader.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/List.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/ListHeader.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/MetricSelect.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/Projects.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/RenameQualityGateForm.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/ConditionModal-test.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/ConditionOperator-test.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/CopyQualityGateForm-test.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/CreateQualityGateForm-test.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/MetricSelect-test.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/Projects-test.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/RenameQualityGateForm-test.tsx
server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/ThresholdInput-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/__tests__/utils-test.ts
server/sonar-web/src/main/js/apps/quality-profiles/changelog/Changelog.tsx
server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogContainer.tsx
server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogSearch.tsx
server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangesList.tsx
server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/Changelog-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/ChangesList-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/SeverityChange-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonContainer.tsx
server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonForm.tsx
server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonResultActivation.tsx
server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonResults.tsx
server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonForm-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonResultActivation-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonResults-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/components/App.tsx
server/sonar-web/src/main/js/apps/quality-profiles/components/AppContainer.tsx
server/sonar-web/src/main/js/apps/quality-profiles/components/BuiltInQualityProfileBadge.tsx
server/sonar-web/src/main/js/apps/quality-profiles/components/CopyProfileForm.tsx
server/sonar-web/src/main/js/apps/quality-profiles/components/DeleteProfileForm.tsx
server/sonar-web/src/main/js/apps/quality-profiles/components/ExtendProfileForm.tsx
server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.tsx
server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.tsx
server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileDate.tsx
server/sonar-web/src/main/js/apps/quality-profiles/components/RenameProfileForm.tsx
server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ExtendProfileForm-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileActions-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ChangeParentForm.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ChangeProjectsForm.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileDetails.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileExporters.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileInheritance.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileInheritanceBox.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissions.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissionsForm.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissionsFormSelect.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissionsGroup.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissionsUser.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileProjects.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileRules.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileRulesDeprecatedWarning.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileRulesRowOfType.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileRulesSonarWayComparison.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/ChangeProjectsForm-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/ProfileDetails-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/ProfilePermissions-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/ProfilePermissionsForm-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/ProfilePermissionsFormSelect-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/ProfilePermissionsGroup-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/ProfilePermissionsUser-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/ProfileProjects-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/ProfileRules-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/ProfileRulesDeprecatedWarning-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/ProfileRulesRowOfType-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/ProfileRulesRowTotal-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/ProfileRulesSonarWayComparison-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/CreateProfileForm.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/Evolution.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionRules.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionStagnant.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/HomeContainer.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/PageHeader.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesList.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListHeader.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListRow.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/RestoreProfileForm.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/CreateProfileForm-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/EvolutionDeprecated-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/PageHeader-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/ProfilesList-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/ProfilesListHeader-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/RestoreProfileForm-test.tsx
server/sonar-web/src/main/js/apps/quality-profiles/utils.ts
server/sonar-web/src/main/js/apps/sessions/components/EmailAlreadyExists.tsx
server/sonar-web/src/main/js/apps/sessions/components/Login.tsx
server/sonar-web/src/main/js/apps/sessions/components/LoginContainer.tsx
server/sonar-web/src/main/js/apps/sessions/components/LoginForm.tsx
server/sonar-web/src/main/js/apps/sessions/components/LoginSonarCloud.tsx
server/sonar-web/src/main/js/apps/sessions/components/OAuthProviders.tsx
server/sonar-web/src/main/js/apps/sessions/components/__tests__/EmailAlreadyExists-test.tsx
server/sonar-web/src/main/js/apps/sessions/components/__tests__/Login-test.tsx
server/sonar-web/src/main/js/apps/sessions/components/__tests__/LoginForm-test.tsx
server/sonar-web/src/main/js/apps/sessions/components/__tests__/LoginSonarCloud-test.tsx
server/sonar-web/src/main/js/apps/sessions/components/__tests__/Logout-test.tsx
server/sonar-web/src/main/js/apps/sessions/components/__tests__/OAuthProviders-test.tsx
server/sonar-web/src/main/js/apps/sessions/components/__tests__/Unauthorized-test.tsx
server/sonar-web/src/main/js/apps/settings/__tests__/utils-test.ts
server/sonar-web/src/main/js/apps/settings/components/AllCategoriesList.tsx
server/sonar-web/src/main/js/apps/settings/components/AppContainer.tsx
server/sonar-web/src/main/js/apps/settings/components/CategoryDefinitionsList.tsx
server/sonar-web/src/main/js/apps/settings/components/Definition.tsx
server/sonar-web/src/main/js/apps/settings/components/DefinitionActions.tsx
server/sonar-web/src/main/js/apps/settings/components/EmailForm.tsx
server/sonar-web/src/main/js/apps/settings/components/SubCategoryDefinitionsList.tsx
server/sonar-web/src/main/js/apps/settings/components/__tests__/Definition-test.tsx
server/sonar-web/src/main/js/apps/settings/components/__tests__/DefinitionActions-test.tsx
server/sonar-web/src/main/js/apps/settings/components/__tests__/EmailForm-test.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/Input.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/InputForBoolean.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/InputForNumber.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/InputForPassword.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/InputForString.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/MultiValueInput.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/PrimitiveInput.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/PropertySetInput.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/SimpleInput.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/Input-test.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/InputForBoolean-test.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/InputForNumber-test.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/InputForPassword-test.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/InputForSingleSelectList-test.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/InputForString-test.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/InputForText-test.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/MultiValueInput-test.tsx
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/SimpleInput-test.tsx
server/sonar-web/src/main/js/apps/settings/encryption/EncryptionApp.tsx
server/sonar-web/src/main/js/apps/settings/encryption/EncryptionForm.tsx
server/sonar-web/src/main/js/apps/settings/encryption/GenerateSecretKeyForm.tsx
server/sonar-web/src/main/js/apps/settings/store/actions.ts
server/sonar-web/src/main/js/apps/settings/store/rootReducer.ts
server/sonar-web/src/main/js/apps/settings/store/values.ts
server/sonar-web/src/main/js/apps/settings/utils.ts
server/sonar-web/src/main/js/apps/system/__tests__/utils-test.ts
server/sonar-web/src/main/js/apps/system/components/App.tsx
server/sonar-web/src/main/js/apps/system/components/ChangeLogLevelForm.tsx
server/sonar-web/src/main/js/apps/system/components/ClusterSysInfos.tsx
server/sonar-web/src/main/js/apps/system/components/PageActions.tsx
server/sonar-web/src/main/js/apps/system/components/PageHeader.tsx
server/sonar-web/src/main/js/apps/system/components/StandaloneSysInfos.tsx
server/sonar-web/src/main/js/apps/system/components/__tests__/ChangeLogLevelForm-test.tsx
server/sonar-web/src/main/js/apps/system/components/__tests__/ClusterSysInfos-test.tsx
server/sonar-web/src/main/js/apps/system/components/__tests__/PageActions-test.tsx
server/sonar-web/src/main/js/apps/system/components/__tests__/PageHeader-test.tsx
server/sonar-web/src/main/js/apps/system/components/__tests__/StandaloneSysInfos-test.tsx
server/sonar-web/src/main/js/apps/system/components/info-items/HealthCard.tsx
server/sonar-web/src/main/js/apps/system/components/info-items/HealthCauseItem.tsx
server/sonar-web/src/main/js/apps/system/components/info-items/HealthItem.tsx
server/sonar-web/src/main/js/apps/system/components/info-items/Section.tsx
server/sonar-web/src/main/js/apps/system/components/info-items/SysInfoItem.tsx
server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/HealthCard-test.tsx
server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/HealthCauseItem-test.tsx
server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/HealthItem-test.tsx
server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/Section-test.tsx
server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/SysInfoItem-test.tsx
server/sonar-web/src/main/js/apps/system/components/system-upgrade/SystemUpgradeForm.tsx
server/sonar-web/src/main/js/apps/system/components/system-upgrade/SystemUpgradeIntermediate.tsx
server/sonar-web/src/main/js/apps/system/components/system-upgrade/SystemUpgradeItem.tsx
server/sonar-web/src/main/js/apps/system/components/system-upgrade/SystemUpgradeNotif.tsx
server/sonar-web/src/main/js/apps/system/components/system-upgrade/__tests__/SystemUpgradeForm-test.tsx
server/sonar-web/src/main/js/apps/system/components/system-upgrade/__tests__/SystemUpgradeIntermediate-test.tsx
server/sonar-web/src/main/js/apps/system/components/system-upgrade/__tests__/SystemUpgradeItem-test.tsx
server/sonar-web/src/main/js/apps/system/components/system-upgrade/__tests__/SystemUpgradeNotif-test.tsx
server/sonar-web/src/main/js/apps/system/utils.ts
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/AnalyzeTutorial.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/AnalyzeTutorialSonarCloud.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/AnalyzeTutorialSuggestion.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/__tests__/AnalyzeTutorial-test.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/__tests__/AnalyzeTutorialSonarCloud-test.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/__tests__/AnalyzeTutorialSuggestion-test.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/configurations/AutoScanAlert.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/configurations/ConfigureWithAutoScan.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/configurations/ConfigureWithTravis.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/configurations/__tests__/AutoScanAlert-test.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/configurations/__tests__/ConfigureOtherCI-test.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/configurations/__tests__/ConfigureWithAutoScan-test.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/configurations/__tests__/ConfigureWithLocalScanner-test.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/configurations/__tests__/ConfigureWithTravis-test.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/steps/CreateSonarPropertiesStep.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/steps/EditTokenModal.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/steps/EditTravisYmlStep.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/steps/EncryptYourTokenStep.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/steps/__tests__/CreateSonarPropertiesStep-test.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/steps/__tests__/EditTokenModal-test.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/steps/__tests__/EditTravisYmlStep-test.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/steps/__tests__/EncryptYourTokenStep-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/AnalyzeTutorialDone.tsx
server/sonar-web/src/main/js/apps/tutorials/components/LanguageForm.tsx
server/sonar-web/src/main/js/apps/tutorials/components/NewProjectForm.tsx
server/sonar-web/src/main/js/apps/tutorials/components/ProjectAnalysisStep.tsx
server/sonar-web/src/main/js/apps/tutorials/components/ProjectAnalysisStepFromBuildTool.tsx
server/sonar-web/src/main/js/apps/tutorials/components/RenderOptions.tsx
server/sonar-web/src/main/js/apps/tutorials/components/Step.tsx
server/sonar-web/src/main/js/apps/tutorials/components/TokenStep.tsx
server/sonar-web/src/main/js/apps/tutorials/components/__tests__/AnalyzeTutorialDone-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/__tests__/BuildSystemForm-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/__tests__/LanguageForm-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/__tests__/NewProjectForm-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/__tests__/ProjectAnalysisStep-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/__tests__/ProjectAnalysisStepFromBuildTool-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/__tests__/Step-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/__tests__/TokenStep-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/AnalysisCommand.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/AnalysisCommandCustom.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/AnalysisCommandOtherCI.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/AnalysisCommandTravis.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/ClangGCC.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/Custom/ClangGCCCustom.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/Custom/JavaGradleCustom.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/Custom/JavaMavenCustom.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/Custom/OtherCustom.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/Custom/__tests__/ClangGCCCustom-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/Custom/__tests__/JavaGradleCustom-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/Custom/__tests__/JavaMavenCustom-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/Custom/__tests__/OtherCustom-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/DotNet.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/Msvc.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/Other.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/OtherCI/ClangGCCOtherCI.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/OtherCI/OtherOtherCI.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/OtherCI/__tests__/ClangGCCOtherCI-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/OtherCI/__tests__/OtherOtherCI-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/TravisSonarCloud/ClangGCCTravisSonarCloud.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/TravisSonarCloud/JavaGradleTravisSonarCloud.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/TravisSonarCloud/JavaMavenTravisSonarCloud.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/TravisSonarCloud/OtherTravisSonarCloud.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/TravisSonarCloud/__tests__/ClangGCCTravisSonarCloud-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/TravisSonarCloud/__tests__/JavaGradleTravisSonarCloud-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/TravisSonarCloud/__tests__/JavaMavenTravisSonarCloud-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/TravisSonarCloud/__tests__/OtherTravisSonarCloud-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/TravisSonarCloud/utils.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/__tests__/AnalysisCommand-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/__tests__/AnalysisCommandCustom-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/__tests__/AnalysisCommandOtherCI-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/__tests__/AnalysisCommandTravis-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/__tests__/BuildWrapper-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/__tests__/ClangGCC-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/__tests__/DotNet-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/__tests__/JavaGradle-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/__tests__/JavaMaven-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/__tests__/MSBuildScanner-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/__tests__/Msvc-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/__tests__/Other-test.tsx
server/sonar-web/src/main/js/apps/tutorials/components/commands/__tests__/SQScanner-test.tsx
server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingModal.tsx
server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingPage.tsx
server/sonar-web/src/main/js/apps/tutorials/onboarding/OrganizationsShortList.tsx
server/sonar-web/src/main/js/apps/tutorials/onboarding/OrganizationsShortListItem.tsx
server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/OnboardingModal-test.tsx
server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/OrganizationsShortList-test.tsx
server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/OrganizationsShortListItem-test.tsx
server/sonar-web/src/main/js/apps/users/Header.tsx
server/sonar-web/src/main/js/apps/users/Search.tsx
server/sonar-web/src/main/js/apps/users/UsersApp.tsx
server/sonar-web/src/main/js/apps/users/UsersAppContainer.tsx
server/sonar-web/src/main/js/apps/users/__tests__/Header-test.tsx
server/sonar-web/src/main/js/apps/users/__tests__/UsersApp-test.tsx
server/sonar-web/src/main/js/apps/users/__tests__/UsersList-test.tsx
server/sonar-web/src/main/js/apps/users/components/DeactivateForm.tsx
server/sonar-web/src/main/js/apps/users/components/GroupsForm.tsx
server/sonar-web/src/main/js/apps/users/components/PasswordForm.tsx
server/sonar-web/src/main/js/apps/users/components/TokensForm.tsx
server/sonar-web/src/main/js/apps/users/components/TokensFormItem.tsx
server/sonar-web/src/main/js/apps/users/components/TokensFormModal.tsx
server/sonar-web/src/main/js/apps/users/components/TokensFormNewToken.tsx
server/sonar-web/src/main/js/apps/users/components/UserActions.tsx
server/sonar-web/src/main/js/apps/users/components/UserForm.tsx
server/sonar-web/src/main/js/apps/users/components/UserGroups.tsx
server/sonar-web/src/main/js/apps/users/components/UserListItem.tsx
server/sonar-web/src/main/js/apps/users/components/UsersSelectSearch.tsx
server/sonar-web/src/main/js/apps/users/components/__tests__/GroupsForm-test.tsx
server/sonar-web/src/main/js/apps/users/components/__tests__/PasswordForm-test.tsx
server/sonar-web/src/main/js/apps/users/components/__tests__/TokensForm-test.tsx
server/sonar-web/src/main/js/apps/users/components/__tests__/TokensFormItem-test.tsx
server/sonar-web/src/main/js/apps/users/components/__tests__/TokensFormModal-test.tsx
server/sonar-web/src/main/js/apps/users/components/__tests__/UserActions-test.tsx
server/sonar-web/src/main/js/apps/users/components/__tests__/UserForm-test.tsx
server/sonar-web/src/main/js/apps/users/components/__tests__/UserGroups-test.tsx
server/sonar-web/src/main/js/apps/users/components/__tests__/UserListItem-test.tsx
server/sonar-web/src/main/js/apps/users/components/__tests__/UserListItemIdentity-test.tsx
server/sonar-web/src/main/js/apps/users/components/__tests__/UsersSelectSearch-test.tsx
server/sonar-web/src/main/js/apps/web-api/components/Action.tsx
server/sonar-web/src/main/js/apps/web-api/components/DeprecatedBadge.tsx
server/sonar-web/src/main/js/apps/web-api/components/Domain.tsx
server/sonar-web/src/main/js/apps/web-api/components/InternalBadge.tsx
server/sonar-web/src/main/js/apps/web-api/components/Menu.tsx
server/sonar-web/src/main/js/apps/web-api/components/Params.tsx
server/sonar-web/src/main/js/apps/web-api/components/Search.tsx
server/sonar-web/src/main/js/apps/web-api/components/WebApiApp.tsx
server/sonar-web/src/main/js/apps/web-api/components/__tests__/Action-test.tsx
server/sonar-web/src/main/js/apps/web-api/components/__tests__/ActionChangelog-test.tsx
server/sonar-web/src/main/js/apps/web-api/components/__tests__/DeprecatedBadge-test.tsx
server/sonar-web/src/main/js/apps/web-api/components/__tests__/Domain-test.tsx
server/sonar-web/src/main/js/apps/web-api/components/__tests__/Menu-test.tsx
server/sonar-web/src/main/js/apps/web-api/components/__tests__/Params-test.tsx
server/sonar-web/src/main/js/apps/web-api/components/__tests__/ResponseExample-test.tsx
server/sonar-web/src/main/js/apps/web-api/components/__tests__/Search-test.tsx
server/sonar-web/src/main/js/apps/web-api/components/__tests__/WebApiApp-test.tsx
server/sonar-web/src/main/js/apps/web-api/utils.ts
server/sonar-web/src/main/js/apps/webhooks/components/App.tsx
server/sonar-web/src/main/js/apps/webhooks/components/CreateWebhookForm.tsx
server/sonar-web/src/main/js/apps/webhooks/components/DeleteWebhookForm.tsx
server/sonar-web/src/main/js/apps/webhooks/components/DeliveriesForm.tsx
server/sonar-web/src/main/js/apps/webhooks/components/DeliveryAccordion.tsx
server/sonar-web/src/main/js/apps/webhooks/components/DeliveryItem.tsx
server/sonar-web/src/main/js/apps/webhooks/components/LatestDeliveryForm.tsx
server/sonar-web/src/main/js/apps/webhooks/components/PageActions.tsx
server/sonar-web/src/main/js/apps/webhooks/components/WebhookActions.tsx
server/sonar-web/src/main/js/apps/webhooks/components/WebhookItem.tsx
server/sonar-web/src/main/js/apps/webhooks/components/WebhookItemLatestDelivery.tsx
server/sonar-web/src/main/js/apps/webhooks/components/WebhooksList.tsx
server/sonar-web/src/main/js/apps/webhooks/components/__tests__/App-test.tsx
server/sonar-web/src/main/js/apps/webhooks/components/__tests__/CreateWebhookForm-test.tsx
server/sonar-web/src/main/js/apps/webhooks/components/__tests__/DeliveriesForm-test.tsx
server/sonar-web/src/main/js/apps/webhooks/components/__tests__/DeliveryAccordion-test.tsx
server/sonar-web/src/main/js/apps/webhooks/components/__tests__/DeliveryItem-test.tsx
server/sonar-web/src/main/js/apps/webhooks/components/__tests__/LatestDeliveryForm-test.tsx
server/sonar-web/src/main/js/apps/webhooks/components/__tests__/PageActions-test.tsx
server/sonar-web/src/main/js/apps/webhooks/components/__tests__/PageHeader-test.tsx
server/sonar-web/src/main/js/apps/webhooks/components/__tests__/WebhookActions-test.tsx
server/sonar-web/src/main/js/apps/webhooks/components/__tests__/WebhookItem-test.tsx
server/sonar-web/src/main/js/apps/webhooks/components/__tests__/WebhookItemLatestDelivery-test.tsx
server/sonar-web/src/main/js/apps/webhooks/components/__tests__/WebhooksList-test.tsx
server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.tsx
server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.tsx
server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx
server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeaderSlim.tsx
server/sonar-web/src/main/js/components/SourceViewer/__tests__/SourceViewerHeader-test.tsx
server/sonar-web/src/main/js/components/SourceViewer/__tests__/SourceViewerHeaderSlim-test.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/DuplicationPopup.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/Line.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/LineCode.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/LineCoverage.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/LineDuplicationBlock.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/LineDuplications.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/LineIssuesIndicator.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/LineOptionsPopup.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/MeasuresOverlay.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/SCMPopup.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/Line-test.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/LineCode-test.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/LineCoverage-test.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/LineDuplicationBlock-test.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/LineDuplications-test.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/LineIssuesIndicator-test.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/LineIssuesList-test.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/LineNumber-test.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/LineOptionsPopup-test.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/LineSCM-test.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/MeasuresOverlay-test.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/MeasuresOverlayMeasure-test.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/SCMPopup-test.tsx
server/sonar-web/src/main/js/components/SourceViewer/helpers/__tests__/indexing-test.ts
server/sonar-web/src/main/js/components/SourceViewer/helpers/__tests__/issueLocations-test.ts
server/sonar-web/src/main/js/components/SourceViewer/helpers/__tests__/loadIssues-test.ts
server/sonar-web/src/main/js/components/charts/ColorBoxLegend.tsx
server/sonar-web/src/main/js/components/charts/ColorRatingsLegend.tsx
server/sonar-web/src/main/js/components/charts/LanguageDistribution.tsx
server/sonar-web/src/main/js/components/charts/LanguageDistributionContainer.tsx
server/sonar-web/src/main/js/components/charts/__tests__/LanguageDistribution-test.tsx
server/sonar-web/src/main/js/components/common/AnalysisWarningsModal.tsx
server/sonar-web/src/main/js/components/common/BranchStatus.tsx
server/sonar-web/src/main/js/components/common/CodeSnippet.tsx
server/sonar-web/src/main/js/components/common/FiltersHeader.tsx
server/sonar-web/src/main/js/components/common/LocationIndex.tsx
server/sonar-web/src/main/js/components/common/LocationMessage.tsx
server/sonar-web/src/main/js/components/common/MarkdownTips.tsx
server/sonar-web/src/main/js/components/common/MultiSelect.tsx
server/sonar-web/src/main/js/components/common/MultiSelectOption.tsx
server/sonar-web/src/main/js/components/common/OrganizationAvatar.tsx
server/sonar-web/src/main/js/components/common/PageCounter.tsx
server/sonar-web/src/main/js/components/common/PrivacyBadgeContainer.tsx
server/sonar-web/src/main/js/components/common/RestartButton.tsx
server/sonar-web/src/main/js/components/common/ScreenPositionHelper.tsx
server/sonar-web/src/main/js/components/common/SelectList.tsx
server/sonar-web/src/main/js/components/common/SelectListItem.tsx
server/sonar-web/src/main/js/components/common/StatusIndicator.tsx
server/sonar-web/src/main/js/components/common/VisibilitySelector.tsx
server/sonar-web/src/main/js/components/common/__tests__/AnalysisWarningsModal-test.tsx
server/sonar-web/src/main/js/components/common/__tests__/BranchStatus-test.tsx
server/sonar-web/src/main/js/components/common/__tests__/CodeSnippet-test.tsx
server/sonar-web/src/main/js/components/common/__tests__/EmptySearch-test.tsx
server/sonar-web/src/main/js/components/common/__tests__/InstanceMessage-test.tsx
server/sonar-web/src/main/js/components/common/__tests__/MarkdownTips-test.tsx
server/sonar-web/src/main/js/components/common/__tests__/MultiSelect-test.tsx
server/sonar-web/src/main/js/components/common/__tests__/MultiSelectOption-test.tsx
server/sonar-web/src/main/js/components/common/__tests__/PrivacyBadgeContainer-test.tsx
server/sonar-web/src/main/js/components/common/__tests__/RestartButton-test.tsx
server/sonar-web/src/main/js/components/common/__tests__/SelectList-test.tsx
server/sonar-web/src/main/js/components/common/__tests__/SelectListItem-test.tsx
server/sonar-web/src/main/js/components/common/__tests__/VisibilitySelector-test.tsx
server/sonar-web/src/main/js/components/controls/DateInput.tsx
server/sonar-web/src/main/js/components/controls/DateRangeInput.tsx
server/sonar-web/src/main/js/components/controls/HomePageSelect.tsx
server/sonar-web/src/main/js/components/controls/__tests__/DateInput-test.tsx
server/sonar-web/src/main/js/components/controls/__tests__/DateRangeInput-test.tsx
server/sonar-web/src/main/js/components/controls/__tests__/Favorite-test.tsx
server/sonar-web/src/main/js/components/controls/__tests__/HomePageSelect-test.tsx
server/sonar-web/src/main/js/components/docs/DocMarkdownBlock.tsx
server/sonar-web/src/main/js/components/docs/DocToc.tsx
server/sonar-web/src/main/js/components/docs/DocTooltipLink.tsx
server/sonar-web/src/main/js/components/docs/__tests__/DocCollapsibleBlock-test.tsx
server/sonar-web/src/main/js/components/docs/__tests__/DocLink-test.tsx
server/sonar-web/src/main/js/components/docs/__tests__/DocMarkdownBlock-test.tsx
server/sonar-web/src/main/js/components/docs/__tests__/DocToc-test.tsx
server/sonar-web/src/main/js/components/docs/__tests__/DocTooltip-test.tsx
server/sonar-web/src/main/js/components/docs/__tests__/DocTooltipLink-test.tsx
server/sonar-web/src/main/js/components/docs/plugins/remark-only-toc.js
server/sonar-web/src/main/js/components/facet/FacetBox.tsx
server/sonar-web/src/main/js/components/facet/FacetHeader.tsx
server/sonar-web/src/main/js/components/facet/FacetItem.tsx
server/sonar-web/src/main/js/components/facet/ListStyleFacet.tsx
server/sonar-web/src/main/js/components/facet/__tests__/FacetBox-test.tsx
server/sonar-web/src/main/js/components/facet/__tests__/FacetHeader-test.tsx
server/sonar-web/src/main/js/components/facet/__tests__/FacetItem-test.tsx
server/sonar-web/src/main/js/components/facet/__tests__/FacetItemsList-test.tsx
server/sonar-web/src/main/js/components/facet/__tests__/ListStyleFacet-test.tsx
server/sonar-web/src/main/js/components/facet/__tests__/ListStyleFacetFooter-test.tsx
server/sonar-web/src/main/js/components/facet/__tests__/MultipleSelectionHint-test.tsx
server/sonar-web/src/main/js/components/hoc/__tests__/whenLoggedIn-test.tsx
server/sonar-web/src/main/js/components/hoc/__tests__/withCurrentUser-test.tsx
server/sonar-web/src/main/js/components/hoc/__tests__/withKeyboardNavigation-test.tsx
server/sonar-web/src/main/js/components/hoc/__tests__/withUserOrganizations-test.tsx
server/sonar-web/src/main/js/components/hoc/whenLoggedIn.tsx
server/sonar-web/src/main/js/components/hoc/withAppState.tsx
server/sonar-web/src/main/js/components/hoc/withCurrentUser.tsx
server/sonar-web/src/main/js/components/hoc/withKeyboardNavigation.tsx
server/sonar-web/src/main/js/components/hoc/withUserOrganizations.tsx
server/sonar-web/src/main/js/components/icons-components/BranchIcon.tsx
server/sonar-web/src/main/js/components/intl/DateFromNowHourPrecision.tsx
server/sonar-web/src/main/js/components/intl/DateTooltipFormatter.tsx
server/sonar-web/src/main/js/components/issue/Issue.tsx
server/sonar-web/src/main/js/components/issue/IssueView.tsx
server/sonar-web/src/main/js/components/issue/__tests__/IssueView-test.tsx
server/sonar-web/src/main/js/components/issue/actions.ts
server/sonar-web/src/main/js/components/issue/components/IssueActionsBar.tsx
server/sonar-web/src/main/js/components/issue/components/IssueAssign.tsx
server/sonar-web/src/main/js/components/issue/components/IssueChangelog.tsx
server/sonar-web/src/main/js/components/issue/components/IssueCommentAction.tsx
server/sonar-web/src/main/js/components/issue/components/IssueCommentLine.tsx
server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx
server/sonar-web/src/main/js/components/issue/components/IssueSeverity.tsx
server/sonar-web/src/main/js/components/issue/components/IssueTags.tsx
server/sonar-web/src/main/js/components/issue/components/IssueTitleBar.tsx
server/sonar-web/src/main/js/components/issue/components/IssueTransition.tsx
server/sonar-web/src/main/js/components/issue/components/IssueType.tsx
server/sonar-web/src/main/js/components/issue/components/SimilarIssuesFilter.tsx
server/sonar-web/src/main/js/components/issue/components/__tests__/IssueActionsBar-test.tsx
server/sonar-web/src/main/js/components/issue/components/__tests__/IssueAssign-test.tsx
server/sonar-web/src/main/js/components/issue/components/__tests__/IssueChangelog-test.tsx
server/sonar-web/src/main/js/components/issue/components/__tests__/IssueCommentAction-test.tsx
server/sonar-web/src/main/js/components/issue/components/__tests__/IssueCommentLine-test.tsx
server/sonar-web/src/main/js/components/issue/components/__tests__/IssueMessage-test.tsx
server/sonar-web/src/main/js/components/issue/components/__tests__/IssueSeverity-test.tsx
server/sonar-web/src/main/js/components/issue/components/__tests__/IssueTags-test.tsx
server/sonar-web/src/main/js/components/issue/components/__tests__/IssueTitleBar-test.tsx
server/sonar-web/src/main/js/components/issue/components/__tests__/IssueTransition-test.tsx
server/sonar-web/src/main/js/components/issue/components/__tests__/IssueType-test.tsx
server/sonar-web/src/main/js/components/issue/popups/ChangelogPopup.tsx
server/sonar-web/src/main/js/components/issue/popups/CommentDeletePopup.tsx
server/sonar-web/src/main/js/components/issue/popups/CommentPopup.tsx
server/sonar-web/src/main/js/components/issue/popups/SetAssigneePopup.tsx
server/sonar-web/src/main/js/components/issue/popups/SetIssueTagsPopup.tsx
server/sonar-web/src/main/js/components/issue/popups/SetSeverityPopup.tsx
server/sonar-web/src/main/js/components/issue/popups/SetTransitionPopup.tsx
server/sonar-web/src/main/js/components/issue/popups/SetTypePopup.tsx
server/sonar-web/src/main/js/components/issue/popups/SimilarIssuesPopup.tsx
server/sonar-web/src/main/js/components/issue/popups/__tests__/ChangelogPopup-test.tsx
server/sonar-web/src/main/js/components/issue/popups/__tests__/CommentDeletePopup-test.tsx
server/sonar-web/src/main/js/components/issue/popups/__tests__/CommentPopup-test.tsx
server/sonar-web/src/main/js/components/issue/popups/__tests__/SetAssigneePopup-test.tsx
server/sonar-web/src/main/js/components/issue/popups/__tests__/SetIssueTagsPopup-test.tsx
server/sonar-web/src/main/js/components/issue/popups/__tests__/SetSeverityPopup-test.tsx
server/sonar-web/src/main/js/components/issue/popups/__tests__/SetTransitionPopup-test.tsx
server/sonar-web/src/main/js/components/issue/popups/__tests__/SetTypePopup-test.tsx
server/sonar-web/src/main/js/components/issue/popups/__tests__/SimilarIssuesPopup-test.tsx
server/sonar-web/src/main/js/components/measure/__tests__/Measure-test.tsx
server/sonar-web/src/main/js/components/preview-graph/PreviewGraph.tsx
server/sonar-web/src/main/js/components/preview-graph/PreviewGraphTooltips.tsx
server/sonar-web/src/main/js/components/preview-graph/__tests__/PreviewGraphTooltips-test.tsx
server/sonar-web/src/main/js/components/preview-graph/__tests__/PreviewGraphTooltipsContent-test.tsx
server/sonar-web/src/main/js/components/shared/DrilldownLink.tsx
server/sonar-web/src/main/js/components/shared/Organization.tsx
server/sonar-web/src/main/js/components/shared/TypeHelper.tsx
server/sonar-web/src/main/js/components/shared/__tests__/DrilldownLink-test.tsx
server/sonar-web/src/main/js/components/shared/__tests__/Organization-test.tsx
server/sonar-web/src/main/js/components/tags/TagsList.tsx
server/sonar-web/src/main/js/components/tags/__tests__/TagsList-test.tsx
server/sonar-web/src/main/js/components/tags/__tests__/TagsSelector-test.tsx
server/sonar-web/src/main/js/components/ui/Avatar.tsx
server/sonar-web/src/main/js/components/ui/OrganizationListItem.tsx
server/sonar-web/src/main/js/components/ui/__tests__/Avatar-test.tsx
server/sonar-web/src/main/js/components/ui/__tests__/OrganizationLink-test.tsx
server/sonar-web/src/main/js/components/ui/__tests__/OrganizationListItem-test.tsx
server/sonar-web/src/main/js/components/workspace/Workspace.tsx
server/sonar-web/src/main/js/components/workspace/WorkspaceComponentViewer.tsx
server/sonar-web/src/main/js/components/workspace/WorkspaceHeader.tsx
server/sonar-web/src/main/js/components/workspace/WorkspaceRuleDetails.tsx
server/sonar-web/src/main/js/components/workspace/WorkspaceRuleTitle.tsx
server/sonar-web/src/main/js/components/workspace/__tests__/WorkspaceComponentTitle-test.tsx
server/sonar-web/src/main/js/components/workspace/__tests__/WorkspaceComponentViewer-test.tsx
server/sonar-web/src/main/js/components/workspace/__tests__/WorkspaceHeader-test.tsx
server/sonar-web/src/main/js/components/workspace/__tests__/WorkspaceNav-test.tsx
server/sonar-web/src/main/js/components/workspace/__tests__/WorkspaceNavComponent-test.tsx
server/sonar-web/src/main/js/components/workspace/__tests__/WorkspaceNavItem-test.tsx
server/sonar-web/src/main/js/components/workspace/__tests__/WorkspaceNavRule-test.tsx
server/sonar-web/src/main/js/components/workspace/__tests__/WorkspacePortal-test.tsx
server/sonar-web/src/main/js/components/workspace/__tests__/WorkspaceRuleDetails-test.tsx
server/sonar-web/src/main/js/components/workspace/__tests__/WorkspaceRuleTitle-test.tsx
server/sonar-web/src/main/js/components/workspace/__tests__/WorkspaceRuleViewer-test.tsx
server/sonar-web/src/main/js/helpers/__tests__/almIntegrations-test.ts
server/sonar-web/src/main/js/helpers/__tests__/branches-test.ts
server/sonar-web/src/main/js/helpers/__tests__/extensions-test.ts
server/sonar-web/src/main/js/helpers/__tests__/markdown-test.ts
server/sonar-web/src/main/js/helpers/__tests__/qualityGates-test.ts
server/sonar-web/src/main/js/helpers/__tests__/urls-test.ts
server/sonar-web/src/main/js/helpers/testMocks.ts
server/sonar-web/src/main/js/helpers/urls.ts
server/sonar-web/src/main/js/store/__tests__/branches-test.ts
server/sonar-web/src/main/js/store/__tests__/organizations-test.ts
server/sonar-web/src/main/js/store/__tests__/rootActions-test.tsx
server/sonar-web/src/main/js/store/__tests__/rootReducers-test.tsx
server/sonar-web/src/main/js/store/appState.ts
server/sonar-web/src/main/js/store/branches.ts
server/sonar-web/src/main/js/store/organizations.ts
server/sonar-web/src/main/js/store/rootActions.ts
server/sonar-web/src/main/js/store/rootReducer.ts
server/sonar-web/src/main/js/store/users.ts
server/sonar-web/src/main/js/store/utils/configureStore.ts

index 67896751d0af9a309f58351bc7234e4b202ccaef..870242207d7c4bfda5df0baca13a961e6375ea25 100644 (file)
@@ -20,8 +20,8 @@
 import {
   getCorsJSON,
   getJSON,
-  postJSON,
   post,
+  postJSON,
   requestTryAndRepeatUntil
 } from 'sonar-ui-common/helpers/request';
 import throwGlobalError from '../app/utils/throwGlobalError';
index 3ede32478333facf6a85775e0360655662a3ef84..66d352d72212a62c99c4f2805db0fa7f0bd33ec4 100644 (file)
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { getJSON, postJSON, post, RequestData } from 'sonar-ui-common/helpers/request';
+import { getJSON, post, postJSON, RequestData } from 'sonar-ui-common/helpers/request';
 import throwGlobalError from '../app/utils/throwGlobalError';
 
 export interface BaseSearchProjectsParameters {
index 082a2c72332b993151c5f296e91e113a814c220c..28dc89587274df41510a34f9a2e7d79e695386d2 100644 (file)
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { post, getJSON } from 'sonar-ui-common/helpers/request';
+import { getJSON, post } from 'sonar-ui-common/helpers/request';
 
 export function getFavorites(): Promise<any> {
   return getJSON('/api/favorites/search');
index c8ce98cf84d261c871b3b78bfc56c73c9866b9b0..658d110d8da6f7e76f90f75307ac38398732eb2b 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { getJSON, post, postJSON, RequestData } from 'sonar-ui-common/helpers/request';
-import { RawIssue } from '../helpers/issues';
 import throwGlobalError from '../app/utils/throwGlobalError';
 import getCoverageStatus from '../components/SourceViewer/helpers/getCoverageStatus';
+import { RawIssue } from '../helpers/issues';
 
 export interface IssueResponse {
   components?: Array<{ key: string; name: string }>;
index 923429bd62e0b53f38b936d37d5c7ee6bb24cf8a..455fa131a8e53673b88bba944b6e95eb3fdaf5f2 100644 (file)
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { getJSON, RequestData, postJSON, post } from 'sonar-ui-common/helpers/request';
+import { getJSON, post, postJSON, RequestData } from 'sonar-ui-common/helpers/request';
 import throwGlobalError from '../app/utils/throwGlobalError';
 
 export function getMeasures(
index 61022eec2cfae7fee38578e7c78f8842c22a54b3..3a8cfe0eb30c7e144bf94ac7d4c2a025f1726901 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { getJSON, post, postJSON, RequestData } from 'sonar-ui-common/helpers/request';
-import { BaseSearchProjectsParameters } from './components';
 import throwGlobalError from '../app/utils/throwGlobalError';
+import { BaseSearchProjectsParameters } from './components';
 
 const PAGE_SIZE = 100;
 
index 23d778a24e5c95f06f65ce9090ba5bdb510b6330..04300ff8bae6a5921e2c292ebb335e68e2d6ef63 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { findLastIndex } from 'lodash';
-import { isDefined } from 'sonar-ui-common/helpers/types';
 import { getJSON, post } from 'sonar-ui-common/helpers/request';
+import { isDefined } from 'sonar-ui-common/helpers/types';
 import throwGlobalError from '../app/utils/throwGlobalError';
 
 export interface Plugin {
index 1bf61801bbc0e5135053298959f0f3d3ab9eb015..05d4cd3626c5fc1c4aefa816d2b2e0db8cdd16eb 100644 (file)
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { getJSON, postJSON, post, RequestData } from 'sonar-ui-common/helpers/request';
+import { getJSON, post, postJSON, RequestData } from 'sonar-ui-common/helpers/request';
 import throwGlobalError from '../app/utils/throwGlobalError';
 
 export function getProjectActivity(
index 150276ecb2176917ea323a4e6c23649a4a2f12e7..ce6ae007fab1e06649d9fcee501cfbc727df90c5 100644 (file)
 import { map } from 'lodash';
 import { csvEscape } from 'sonar-ui-common/helpers/csv';
 import {
-  request,
   checkStatus,
-  parseJSON,
   getJSON,
+  parseJSON,
   post,
   postJSON,
+  request,
   RequestData
 } from 'sonar-ui-common/helpers/request';
 import throwGlobalError from '../app/utils/throwGlobalError';
index f012ccc5b842a70c0fab967add3ea560af759a23..7311da171a2bb74f668208a6bc45d68d004732b0 100644 (file)
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { post, getJSON, postJSON } from 'sonar-ui-common/helpers/request';
+import { getJSON, post, postJSON } from 'sonar-ui-common/helpers/request';
 import throwGlobalError from '../app/utils/throwGlobalError';
 
 export interface GetRulesAppResponse {
index bc21a900501422863a53745afe9b242c48c160c5..f6426a81593475c9aff52875d583804386dcf837 100644 (file)
@@ -18,7 +18,7 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { omitBy } from 'lodash';
-import { getJSON, RequestData, post, postJSON } from 'sonar-ui-common/helpers/request';
+import { getJSON, post, postJSON, RequestData } from 'sonar-ui-common/helpers/request';
 import throwGlobalError from '../app/utils/throwGlobalError';
 import { isCategoryDefinition } from '../apps/settings/utils';
 
index b03dc7df457e90961d19f9671cedc19cce876fe0..00417d1b174ee8cb10731dee20679b2b0321e9f8 100644 (file)
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { getJSON, postJSON, post } from 'sonar-ui-common/helpers/request';
+import { getJSON, post, postJSON } from 'sonar-ui-common/helpers/request';
 import throwGlobalError from '../app/utils/throwGlobalError';
 
 /** List tokens for given user login */
index 701043dc7e3c3758de4cb6f2dfc92d60997ee127..e529fb06b0231624a7559f610d676b7f01fcfc26 100644 (file)
@@ -21,14 +21,14 @@ import * as React from 'react';
 import Helmet from 'react-helmet';
 import { connect } from 'react-redux';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import AdminContext, { defaultPendingPlugins, defaultSystemStatus } from './AdminContext';
-import SettingsNav from './nav/settings/SettingsNav';
-import { getAppState, Store } from '../../store/rootReducer';
 import { getSettingsNavigation } from '../../api/nav';
-import { setAdminPages } from '../../store/appState';
-import { PluginPendingResult, getPendingPlugins } from '../../api/plugins';
-import handleRequiredAuthorization from '../../app/utils/handleRequiredAuthorization';
+import { getPendingPlugins, PluginPendingResult } from '../../api/plugins';
 import { getSystemStatus, waitSystemUPStatus } from '../../api/system';
+import handleRequiredAuthorization from '../../app/utils/handleRequiredAuthorization';
+import { setAdminPages } from '../../store/appState';
+import { getAppState, Store } from '../../store/rootReducer';
+import AdminContext, { defaultPendingPlugins, defaultSystemStatus } from './AdminContext';
+import SettingsNav from './nav/settings/SettingsNav';
 
 interface Props {
   appState: Pick<T.AppState, 'adminPages' | 'canAdmin' | 'organizationsEnabled'>;
index 3c3a3febc73fea93ebc6a96cec80ea1e38750990..01724e4bb2590c6cb800c17f9d15ded605596faa 100644 (file)
 import * as React from 'react';
 import { connect } from 'react-redux';
 import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
-import { fetchLanguages } from '../../store/rootActions';
 import { fetchMyOrganizations } from '../../apps/account/organizations/actions';
 import { isSonarCloud } from '../../helpers/system';
-import { getCurrentUser, getAppState, getGlobalSettingValue, Store } from '../../store/rootReducer';
 import { isLoggedIn } from '../../helpers/users';
+import { fetchLanguages } from '../../store/rootActions';
+import { getAppState, getCurrentUser, getGlobalSettingValue, Store } from '../../store/rootReducer';
 
 const PageTracker = lazyLoad(() => import('./PageTracker'));
 
index cf324a50259ce950c4a0106de22447c0139c0cee..2da42841fea9fa4453927e6ddfa3a467da4d8526 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { differenceBy } from 'lodash';
 import * as React from 'react';
 import { connect } from 'react-redux';
-import { differenceBy } from 'lodash';
-import { ComponentContext } from './ComponentContext';
-import ComponentContainerNotFound from './ComponentContainerNotFound';
-import ComponentNav from './nav/component/ComponentNav';
 import { getBranches, getPullRequests } from '../../api/branches';
-import { getTasksForComponent, getAnalysisStatus } from '../../api/ce';
+import { getAnalysisStatus, getTasksForComponent } from '../../api/ce';
 import { getComponentData } from '../../api/components';
 import { getComponentNavigation } from '../../api/nav';
-import {
-  fetchOrganization,
-  requireAuthorization,
-  registerBranchStatus
-} from '../../store/rootActions';
 import { STATUSES } from '../../apps/background-tasks/constants';
+import { Location, Router, withRouter } from '../../components/hoc/withRouter';
 import {
-  isPullRequest,
+  getBranchLikeQuery,
   isBranch,
-  isMainBranch,
   isLongLivingBranch,
-  isShortLivingBranch,
-  getBranchLikeQuery
+  isMainBranch,
+  isPullRequest,
+  isShortLivingBranch
 } from '../../helpers/branches';
 import { isSonarCloud } from '../../helpers/system';
-import { withRouter, Router, Location } from '../../components/hoc/withRouter';
+import {
+  fetchOrganization,
+  registerBranchStatus,
+  requireAuthorization
+} from '../../store/rootActions';
+import ComponentContainerNotFound from './ComponentContainerNotFound';
+import { ComponentContext } from './ComponentContext';
+import ComponentNav from './nav/component/ComponentNav';
 
 interface Props {
   children: React.ReactElement;
index 51d7dc419858ced8378b8f07457e20b3f5e9919c..f323cb0df56e6549b4abbfd2d129050dfc9afecd 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import GlobalNav from './nav/global/GlobalNav';
-import StartupModal from './StartupModal';
-import GlobalFooterContainer from './GlobalFooterContainer';
-import GlobalMessagesContainer from './GlobalMessagesContainer';
-import SuggestionsProvider from './embed-docs-modal/SuggestionsProvider';
+import Workspace from '../../components/workspace/Workspace';
 import A11yProvider from './a11y/A11yProvider';
 import A11ySkipLinks from './a11y/A11ySkipLinks';
-import Workspace from '../../components/workspace/Workspace';
+import SuggestionsProvider from './embed-docs-modal/SuggestionsProvider';
+import GlobalFooterContainer from './GlobalFooterContainer';
+import GlobalMessagesContainer from './GlobalMessagesContainer';
+import GlobalNav from './nav/global/GlobalNav';
+import StartupModal from './StartupModal';
 
 export interface Props {
   children: React.ReactNode;
index f4eab307286ee3206c0ee62dcd9dbc22e5544e22..48a6b09c2a588361962ea738f97f2ff3379db2cd 100644 (file)
  */
 import * as React from 'react';
 import { Link } from 'react-router';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import GlobalFooterSonarCloud from './GlobalFooterSonarCloud';
-import GlobalFooterBranding from './GlobalFooterBranding';
-import InstanceMessage from '../../components/common/InstanceMessage';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { EDITIONS } from '../../apps/marketplace/utils';
+import InstanceMessage from '../../components/common/InstanceMessage';
 import { isSonarCloud } from '../../helpers/system';
+import GlobalFooterBranding from './GlobalFooterBranding';
+import GlobalFooterSonarCloud from './GlobalFooterSonarCloud';
 
 interface Props {
   hideLoggedInInfo?: boolean;
index c1ac373f625a6cfc80cf89d5f8b321f5a0e452ef..5655cf12c9653b65c1d57c61dd9418e20631ca02 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { connect } from 'react-redux';
-import GlobalFooter from './GlobalFooter';
 import { getAppState, Store } from '../../store/rootReducer';
+import GlobalFooter from './GlobalFooter';
 
 interface StateProps {
   productionDatabase: boolean;
index 98b9fe7309672e367d017aa1529e2a67eb267498..d604de379d3f3e01d1986876dbeab2acfd562477 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as getYear from 'date-fns/get_year';
+import * as React from 'react';
 import { Link } from 'react-router';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 
index 0c8c209569cc511898e298576f3368c7a9b996cb..582c97fe46f2b70b35edbe2ed4a523ea4c77f46a 100644 (file)
@@ -19,8 +19,8 @@
  */
 import { connect } from 'react-redux';
 import GlobalMessages from 'sonar-ui-common/components/controls/GlobalMessages';
-import { getGlobalMessages, Store } from '../../store/rootReducer';
 import { closeGlobalMessage } from '../../store/globalMessages';
+import { getGlobalMessages, Store } from '../../store/rootReducer';
 
 const mapStateToProps = (state: Store) => ({
   messages: getGlobalMessages(state)
index 52eae3bcf37d7ac40ce8a1ca2b97d474cd057b15..940d0741337e9b03b85044e7ae98b45afa6f1e2a 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { Location } from 'history';
 import * as React from 'react';
-import { withRouter, WithRouterProps } from 'react-router';
 import { connect } from 'react-redux';
-import { Location } from 'history';
-import { getCurrentUser, Store } from '../../store/rootReducer';
+import { withRouter, WithRouterProps } from 'react-router';
 import { getHomePageUrl } from '../../helpers/urls';
 import { isLoggedIn } from '../../helpers/users';
+import { getCurrentUser, Store } from '../../store/rootReducer';
 
 interface StateProps {
   currentUser: T.CurrentUser | undefined;
index 0ce7f93111b117d3d385aeb2e2eef289cc0f6291..d87df236edb638a5eee017a0c0ee31e46138722e 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { connect } from 'react-redux';
 import Helmet from 'react-helmet';
+import { connect } from 'react-redux';
 import { Location, withRouter } from '../../components/hoc/withRouter';
 import { gtm } from '../../helpers/analytics';
 import { installScript } from '../../helpers/extensions';
 import { getWebAnalyticsPageHandlerFromCache } from '../../helpers/extensionsHandler';
 import { getInstance } from '../../helpers/system';
-import { getGlobalSettingValue, Store, getAppState } from '../../store/rootReducer';
+import { getAppState, getGlobalSettingValue, Store } from '../../store/rootReducer';
 
 interface Props {
   location: Location;
index c8bdcf5659ca9c81fd7ba271a1fb52bab08af063..57c6f32d6bb85ebbe99bebf85135fc41b19c947c 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import A11ySkipTarget from './a11y/A11ySkipTarget';
 import handleRequiredAuthorization from '../utils/handleRequiredAuthorization';
+import A11ySkipTarget from './a11y/A11ySkipTarget';
 
 interface Props {
   children: JSX.Element;
index e567dde3e3df2dbfe4632308dbc612fcb2d83c88..59e645d328abcc3caa1b1a28f0624a2accf0a65c 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import NavBar from 'sonar-ui-common/components/ui/NavBar';
-import GlobalFooterContainer from './GlobalFooterContainer';
 import { rawSizes } from '../theme';
+import GlobalFooterContainer from './GlobalFooterContainer';
 
 interface Props {
   children?: React.ReactNode;
index a39a2053a5ae217ebc69537291e9c28d2d006280..d9e7969450717c17fccb54af929a57191c9fc8f8 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as differenceInDays from 'date-fns/difference_in_days';
+import * as React from 'react';
 import { connect } from 'react-redux';
 import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
 import { parseDate, toShortNotSoISOString } from 'sonar-ui-common/helpers/dates';
-import { save, get } from 'sonar-ui-common/helpers/storage';
 import { hasMessage } from 'sonar-ui-common/helpers/l10n';
-import { OnboardingContext } from './OnboardingContext';
-import { getCurrentUser, getAppState, Store } from '../../store/rootReducer';
-import { skipOnboarding } from '../../store/users';
+import { get, save } from 'sonar-ui-common/helpers/storage';
 import { showLicense } from '../../api/marketplace';
+import { Location, Router, withRouter } from '../../components/hoc/withRouter';
 import { isSonarCloud } from '../../helpers/system';
 import { isLoggedIn } from '../../helpers/users';
-import { withRouter, Router, Location } from '../../components/hoc/withRouter';
+import { getAppState, getCurrentUser, Store } from '../../store/rootReducer';
+import { skipOnboarding } from '../../store/users';
+import { OnboardingContext } from './OnboardingContext';
 
 const OnboardingModal = lazyLoad(() => import('../../apps/tutorials/onboarding/OnboardingModal'));
 const LicensePromptModal = lazyLoad(
index 911ce7ae43223e08d2372deca80cf4876914b422..608b22dcf2f56775c37fa2dc3c35d89f2bf8c207 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import AccountDeleted from '../AccountDeleted';
 
 it('should render correctly', () => {
index 86c9ca15349d46468b7c26f75be833d0ff032269..94a3802418acf549e19f21d880c9054167c6a6e8 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { AdminContainer } from '../AdminContainer';
+import * as React from 'react';
 import { mockLocation } from '../../../helpers/testMocks';
+import { AdminContainer } from '../AdminContainer';
 
 it('should render correctly', () => {
   const wrapper = shallowRender();
index af44a3ed847ed4111c668508bce89cf4831efd79..0af5a54b7a345565e55612df0b426eb42d91ff34 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { ComponentContainer } from '../ComponentContainer';
 import { getBranches, getPullRequests } from '../../../api/branches';
 import { getTasksForComponent } from '../../../api/ce';
 import { getComponentData } from '../../../api/components';
@@ -28,14 +27,15 @@ import { getComponentNavigation } from '../../../api/nav';
 import { STATUSES } from '../../../apps/background-tasks/constants';
 import { isSonarCloud } from '../../../helpers/system';
 import {
-  mockLocation,
-  mockRouter,
   mockComponent,
-  mockPullRequest,
+  mockLocation,
   mockLongLivingBranch,
-  mockShortLivingBranch,
-  mockMainBranch
+  mockMainBranch,
+  mockPullRequest,
+  mockRouter,
+  mockShortLivingBranch
 } from '../../../helpers/testMocks';
+import { ComponentContainer } from '../ComponentContainer';
 
 jest.mock('../../../api/branches', () => {
   const { mockMainBranch, mockPullRequest } = require.requireActual('../../../helpers/testMocks');
index ff7aba0434b2b74c4d04606aa8a2d490ae66afab..0dda72faab554d45ea8112dfb051641a58fd2efc 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import GlobalContainer, { Props } from '../GlobalContainer';
+import * as React from 'react';
 import { mockLocation } from '../../../helpers/testMocks';
+import GlobalContainer, { Props } from '../GlobalContainer';
 
 jest.mock('../embed-docs-modal/SuggestionsProvider', () => {
   class SuggestionsProvider extends React.Component {
index 2a56779b46baf7b2700ac075464bace563fb2261..e3b0a95237a1ec573df8fb479d0bb411ce2482c9 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import GlobalFooter from '../GlobalFooter';
+import * as React from 'react';
 import { EditionKey } from '../../../apps/marketplace/utils';
 import { isSonarCloud } from '../../../helpers/system';
+import GlobalFooter from '../GlobalFooter';
 
 jest.mock('../../../helpers/system', () => ({ isSonarCloud: jest.fn() }));
 
index 686c31cc385bd8bc1c5d13f73b032133d2de4fd6..7a2f049438bf2c8e10e1862908c3ae9ab79fea06 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import GlobalFooterSonarCloud from '../GlobalFooterSonarCloud';
 
 jest.mock('date-fns/get_year', () => jest.fn(() => '20XX'));
index 36d40db9a93dba90b6ac70cfccffc79994d51b2f..8f40cf98220641f7bf80f6a2dc76e38ae9eb14b8 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { PageTracker } from '../PageTracker';
+import * as React from 'react';
 import { gtm } from '../../../helpers/analytics';
-import { mockLocation } from '../../../helpers/testMocks';
 import { installScript } from '../../../helpers/extensions';
 import { getWebAnalyticsPageHandlerFromCache } from '../../../helpers/extensionsHandler';
+import { mockLocation } from '../../../helpers/testMocks';
+import { PageTracker } from '../PageTracker';
 
 jest.mock('../../../helpers/extensions', () => ({
   installScript: jest.fn().mockResolvedValue({})
index 74ef1c3d5c39cfdacf9411792354bd320f581fc3..de466845f8d16fe69adf8f8512417f72b654c667 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { mount, shallow } from 'enzyme';
-import ProjectAdminContainer from '../ProjectAdminContainer';
+import * as React from 'react';
 import handleRequiredAuthorization from '../../../app/utils/handleRequiredAuthorization';
 import { mockComponent } from '../../../helpers/testMocks';
+import ProjectAdminContainer from '../ProjectAdminContainer';
 
 jest.mock('../../utils/handleRequiredAuthorization', () => {
   return { default: jest.fn() };
index 638dc91f0d4c043e457f53c40bb1ba96e42eaf60..f47630a194b105b8c2f7054246e946248b1b6469 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as differenceInDays from 'date-fns/difference_in_days';
 import { shallow, ShallowWrapper } from 'enzyme';
+import * as React from 'react';
 import { toShortNotSoISOString } from 'sonar-ui-common/helpers/dates';
 import { hasMessage } from 'sonar-ui-common/helpers/l10n';
-import { save, get } from 'sonar-ui-common/helpers/storage';
+import { get, save } from 'sonar-ui-common/helpers/storage';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { StartupModal, ModalKey } from '../StartupModal';
 import { showLicense } from '../../../api/marketplace';
 import { EditionKey } from '../../../apps/marketplace/utils';
 import { mockOrganization, mockRouter } from '../../../helpers/testMocks';
+import { ModalKey, StartupModal } from '../StartupModal';
 
 jest.mock('../../../api/marketplace', () => ({
   showLicense: jest.fn().mockResolvedValue(undefined)
index 3f9dc7f13a829d73e0b2a06e1862bcbdb0d148e6..8fd625ccd113f502e48ce0095cf247106b68f209 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
+import * as React from 'react';
 import { A11yContext } from './A11yContext';
 
 interface State {
index 45bee7d508bd61ff4fd0e4b2e54f833da538abac..e545ad19f93e8d9db060b886df8bd405dae2da05 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import { A11yContextShape } from '../A11yContext';
 import A11yProvider from '../A11yProvider';
index 77d8c37f35ee75c62cbd890181db937633a46f17..4ddc712961efee074a99771e103f021b1437e3f9 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import A11ySkipLinks from '../A11ySkipLinks';
 
 jest.mock('../A11yContext', () => ({
index eb8bf725f06d453c7e65add241f2008fc58ad5d7..62e331aa6886178c65575899813bb8935b870ff6 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { mount } from 'enzyme';
+import * as React from 'react';
 import { A11ySkipTargetInner } from '../A11ySkipTarget';
 
 it('should render correctly, and (un)register the link when (un)mounted', () => {
index 97bd37fff3308e33394dba5b09b434d69830a460..9fe7943f4bfec7c9ca99bf6babb2165389cf7f5a 100644 (file)
  */
 import * as React from 'react';
 import { Link } from 'react-router';
+import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
+import { isSonarCloud } from '../../../helpers/system';
 import ProductNewsMenuItem from './ProductNewsMenuItem';
 import { SuggestionsContext } from './SuggestionsContext';
-import { isSonarCloud } from '../../../helpers/system';
 
 interface Props {
   onClose: () => void;
index 2b894d58996caf72afc099181727e662a3d0f273..22371f64bc5b15fe2d1a80b0992b73f560f8c3ab 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import HelpIcon from 'sonar-ui-common/components/icons/HelpIcon';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Toggler from 'sonar-ui-common/components/controls/Toggler';
+import HelpIcon from 'sonar-ui-common/components/icons/HelpIcon';
 import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 const EmbedDocsPopup = lazyLoad(() => import('./EmbedDocsPopup'));
 
index 2fd2e729b664dac80289f1e6665af757787b7916..06460f27d91fcf272a0e232fc1d16495387275b9 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import ChevronRightIcon from 'sonar-ui-common/components/icons/ChevronRightIcon';
 import { connect } from 'react-redux';
+import ChevronRightIcon from 'sonar-ui-common/components/icons/ChevronRightIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { fetchPrismicRefs, fetchPrismicNews, PrismicNews } from '../../../api/news';
-import { getGlobalSettingValue, Store } from '../../../store/rootReducer';
+import { fetchPrismicNews, fetchPrismicRefs, PrismicNews } from '../../../api/news';
 import DateFormatter from '../../../components/intl/DateFormatter';
 import PlaceholderBar from '../../../components/ui/PlaceholderBar';
+import { getGlobalSettingValue, Store } from '../../../store/rootReducer';
 
 interface OwnProps {
   tag?: string;
index 4e119d95eac070f3c3ccc153de3fb739ca3334af..df3f929818bd2ebe6442980aa9a018671b8556fc 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import suggestionsJson from 'Docs/EmbedDocsSuggestions.json';
-import { SuggestionsContext } from './SuggestionsContext';
+import * as React from 'react';
 import { isSonarCloud } from '../../../helpers/system';
+import { SuggestionsContext } from './SuggestionsContext';
 
 type SuggestionsJson = T.Dict<T.SuggestionLink[]>;
 
index ecb7c352532baf70cee284dfacf1f3b96ca8439d..2778b1f9f0a375eafdde044cd06431b5e92dd58e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import EmbedDocsPopup from '../EmbedDocsPopup';
 
 it('should render', () => {
index 32c2ae9ec412eaddfd973a23fe5816f5a7f0d072..b7a279a084c0f0b457430ce92634923ce57b15b9 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
+import { fetchPrismicNews, fetchPrismicRefs } from '../../../../api/news';
 import { ProductNewsMenuItem } from '../ProductNewsMenuItem';
-import { fetchPrismicRefs, fetchPrismicNews } from '../../../../api/news';
 
 jest.mock('../../../../api/news', () => ({
   fetchPrismicRefs: jest.fn().mockResolvedValue({ id: 'master', ref: 'master-ref' }),
index 3a1b3e888daeeac1a95554b4d92528d756fb408b..0ffd5f6c396b31866c5dbf295ec2da9db5b4bbdc 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import SuggestionsProvider from '../SuggestionsProvider';
+import * as React from 'react';
 import { isSonarCloud } from '../../../../helpers/system';
+import SuggestionsProvider from '../SuggestionsProvider';
 
 jest.mock(
   'Docs/EmbedDocsSuggestions.json',
index da994657b3d112ac000086e2acd078513a81ffc1..adf72a16a13ca54d956f83f05db49d2a28e7bd6a 100644 (file)
  */
 import * as React from 'react';
 import Helmet from 'react-helmet';
-import { injectIntl, InjectedIntlProps } from 'react-intl';
+import { InjectedIntlProps, injectIntl } from 'react-intl';
 import { connect } from 'react-redux';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import getStore from '../../utils/getStore';
 import { Location, Router, withRouter } from '../../../components/hoc/withRouter';
 import { getExtensionStart } from '../../../helpers/extensions';
 import { addGlobalErrorMessage } from '../../../store/globalMessages';
-import { Store, getCurrentUser } from '../../../store/rootReducer';
+import { getCurrentUser, Store } from '../../../store/rootReducer';
 import * as theme from '../../theme';
+import getStore from '../../utils/getStore';
 
 interface Props extends InjectedIntlProps {
   currentUser: T.CurrentUser;
index af43456958c198c373064e8532380e51ec27faa7..2174014ede8383b9a87837f75ae14b4322006a41 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import { connect } from 'react-redux';
-import Extension from './Extension';
-import NotFound from '../NotFound';
 import { getAppState, Store } from '../../../store/rootReducer';
+import NotFound from '../NotFound';
+import Extension from './Extension';
 
 interface Props {
   adminPages: T.Extension[] | undefined;
index c334878e99d3df5f998a0187ce1733be278f85be..d21b74269468eb5b8c3663e6370ac57287255f81 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import { connect } from 'react-redux';
-import Extension from './Extension';
-import NotFound from '../NotFound';
 import { getAppState, Store } from '../../../store/rootReducer';
+import NotFound from '../NotFound';
+import Extension from './Extension';
 
 interface Props {
   globalPages: T.Extension[] | undefined;
index 9f37e30173d15976581c3392dc48a4aa5df1b876..ec75dc3128eedd44ea4f3956a596541249a69016 100644 (file)
  */
 import * as React from 'react';
 import { connect } from 'react-redux';
-import Extension from './Extension';
-import NotFound from '../NotFound';
-import { getOrganizationByKey, Store } from '../../../store/rootReducer';
 import { fetchOrganization } from '../../../store/rootActions';
+import { getOrganizationByKey, Store } from '../../../store/rootReducer';
+import NotFound from '../NotFound';
+import Extension from './Extension';
 
 interface StateToProps {
   organization?: T.Organization;
index 96a5fedfd07322579f2e5e2ec1361be571fa5b66..cc7a1a588da32a819aeeb163effb109ae9ff7a67 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { Location } from 'history';
 import * as React from 'react';
 import { connect } from 'react-redux';
-import { Location } from 'history';
-import Extension from './Extension';
-import NotFound from '../NotFound';
 import { addGlobalErrorMessage } from '../../../store/globalMessages';
+import NotFound from '../NotFound';
+import Extension from './Extension';
 
 interface Props {
   component: T.Component;
index 91bf6562f519d8af91b8c45b090e32c3bef11ff6..72a55bc08b6c96a233459097421639ad76047669 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import Extension from './Extension';
 import NotFound from '../NotFound';
+import Extension from './Extension';
 
 interface Props {
   component: T.Component;
index cdf5d4b0c9b60c4db9c2c43885272ec442c46a75..9b83c73084cb0fa48bfc475c1980602b37b0211f 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { Extension } from '../Extension';
-import { mockCurrentUser, mockLocation, mockRouter } from '../../../../helpers/testMocks';
 import { getExtensionStart } from '../../../../helpers/extensions';
+import { mockCurrentUser, mockLocation, mockRouter } from '../../../../helpers/testMocks';
+import { Extension } from '../Extension';
 
 jest.mock('../../../../helpers/extensions', () => ({
   getExtensionStart: jest.fn().mockResolvedValue(jest.fn())
index 288a9ca2001dbea48ebede150cad27c481cf4a1a..b4901d5a201658f219813a98d129181e71ff21de 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { FormattedMessage } from 'react-intl';
 import * as ReactRedux from 'react-redux';
 import * as ReactRouter from 'react-router';
-import { FormattedMessage } from 'react-intl';
+import ActionsDropdown, {
+  ActionsDropdownItem
+} from 'sonar-ui-common/components/controls/ActionsDropdown';
+import {
+  Button,
+  EditButton,
+  ResetButtonLink,
+  SubmitButton
+} from 'sonar-ui-common/components/controls/buttons';
+import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
+import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton';
+import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
+import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
+import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
+import Modal from 'sonar-ui-common/components/controls/Modal';
+import RadioToggle from 'sonar-ui-common/components/controls/RadioToggle';
+import ReloadButton from 'sonar-ui-common/components/controls/ReloadButton';
+import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
+import SearchSelect from 'sonar-ui-common/components/controls/SearchSelect';
+import Select from 'sonar-ui-common/components/controls/Select';
+import SelectList from 'sonar-ui-common/components/controls/SelectList';
+import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import AlertErrorIcon from 'sonar-ui-common/components/icons/AlertErrorIcon';
 import AlertSuccessIcon from 'sonar-ui-common/components/icons/AlertSuccessIcon';
 import AlertWarnIcon from 'sonar-ui-common/components/icons/AlertWarnIcon';
 import CheckIcon from 'sonar-ui-common/components/icons/CheckIcon';
 import ClearIcon from 'sonar-ui-common/components/icons/ClearIcon';
-import SecurityHotspotIcon from 'sonar-ui-common/components/icons/SecurityHotspotIcon';
-import VulnerabilityIcon from 'sonar-ui-common/components/icons/VulnerabilityIcon';
+import DetachIcon from 'sonar-ui-common/components/icons/DetachIcon';
 import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
-import PlusCircleIcon from 'sonar-ui-common/components/icons/PlusCircleIcon';
 import HelpIcon from 'sonar-ui-common/components/icons/HelpIcon';
 import LockIcon from 'sonar-ui-common/components/icons/LockIcon';
-import DetachIcon from 'sonar-ui-common/components/icons/DetachIcon';
-import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
 import LongLivingBranchIcon from 'sonar-ui-common/components/icons/LongLivingBranchIcon';
+import PlusCircleIcon from 'sonar-ui-common/components/icons/PlusCircleIcon';
 import PullRequestIcon from 'sonar-ui-common/components/icons/PullRequestIcon';
-import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import * as request from 'sonar-ui-common/helpers/request';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import {
-  EditButton,
-  Button,
-  SubmitButton,
-  ResetButtonLink
-} from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import Modal from 'sonar-ui-common/components/controls/Modal';
-import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
-import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton';
+import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
+import SecurityHotspotIcon from 'sonar-ui-common/components/icons/SecurityHotspotIcon';
+import VulnerabilityIcon from 'sonar-ui-common/components/icons/VulnerabilityIcon';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
-import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
-import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import DuplicationsRating from 'sonar-ui-common/components/ui/DuplicationsRating';
 import Level from 'sonar-ui-common/components/ui/Level';
-import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
 import Rating from 'sonar-ui-common/components/ui/Rating';
-import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
-import ActionsDropdown, {
-  ActionsDropdownItem
-} from 'sonar-ui-common/components/controls/ActionsDropdown';
-import RadioToggle from 'sonar-ui-common/components/controls/RadioToggle';
-import ReloadButton from 'sonar-ui-common/components/controls/ReloadButton';
-import Select from 'sonar-ui-common/components/controls/Select';
-import SelectList from 'sonar-ui-common/components/controls/SelectList';
-import SearchSelect from 'sonar-ui-common/components/controls/SearchSelect';
-import throwGlobalError from '../../utils/throwGlobalError';
-import addGlobalSuccessMessage from '../../utils/addGlobalSuccessMessage';
-import Suggestions from '../embed-docs-modal/Suggestions';
-import * as measures from '../../../helpers/measures';
+import { formatMeasure } from 'sonar-ui-common/helpers/measures';
+import * as request from 'sonar-ui-common/helpers/request';
+import NotFound from '../../../app/components/NotFound';
+import Favorite from '../../../components/controls/Favorite';
+import HomePageSelect from '../../../components/controls/HomePageSelect';
+import BranchIcon from '../../../components/icons-components/BranchIcon';
+import DateFormatter from '../../../components/intl/DateFormatter';
+import DateFromNow from '../../../components/intl/DateFromNow';
+import DateTimeFormatter from '../../../components/intl/DateTimeFormatter';
+import CoverageRating from '../../../components/ui/CoverageRating';
 import {
   getBranchLikeQuery,
   isBranch,
   isLongLivingBranch,
   isPullRequest
 } from '../../../helpers/branches';
-import { getComponentIssuesUrl, getRulesUrl } from '../../../helpers/urls';
+import * as measures from '../../../helpers/measures';
 import {
   getStandards,
   renderCWECategory,
@@ -83,15 +87,11 @@ import {
   renderSansTop25Category,
   renderSonarSourceSecurityCategory
 } from '../../../helpers/security-standard';
-import DateFromNow from '../../../components/intl/DateFromNow';
-import DateFormatter from '../../../components/intl/DateFormatter';
-import DateTimeFormatter from '../../../components/intl/DateTimeFormatter';
-import Favorite from '../../../components/controls/Favorite';
-import HomePageSelect from '../../../components/controls/HomePageSelect';
-import BranchIcon from '../../../components/icons-components/BranchIcon';
-import CoverageRating from '../../../components/ui/CoverageRating';
-import NotFound from '../../../app/components/NotFound';
+import { getComponentIssuesUrl, getRulesUrl } from '../../../helpers/urls';
+import addGlobalSuccessMessage from '../../utils/addGlobalSuccessMessage';
+import throwGlobalError from '../../utils/throwGlobalError';
 import A11ySkipTarget from '../a11y/A11ySkipTarget';
+import Suggestions from '../embed-docs-modal/Suggestions';
 
 const exposeLibraries = () => {
   const global = window as any;
index 936977d2ff23ea590d5592e86c78dbe6be170812..80214202fc76829632b2f520cd5ac3b03fb5dcc5 100644 (file)
  */
 import * as React from 'react';
 import ContextNavBar from 'sonar-ui-common/components/ui/ContextNavBar';
-import ComponentNavHeader from './ComponentNavHeader';
-import ComponentNavMeta from './ComponentNavMeta';
-import ComponentNavMenu from './ComponentNavMenu';
-import ComponentNavBgTaskNotif from './ComponentNavBgTaskNotif';
-import RecentHistory from '../../RecentHistory';
-import { rawSizes } from '../../../theme';
 import { STATUSES } from '../../../../apps/background-tasks/constants';
+import { rawSizes } from '../../../theme';
+import RecentHistory from '../../RecentHistory';
 import './ComponentNav.css';
+import ComponentNavBgTaskNotif from './ComponentNavBgTaskNotif';
+import ComponentNavHeader from './ComponentNavHeader';
+import ComponentNavMenu from './ComponentNavMenu';
+import ComponentNavMeta from './ComponentNavMeta';
 
 interface Props {
   branchLikes: T.BranchLike[];
index 63f4f7d82932eeef43e79c631342c643f91e42c5..12d977245e17b5f6288591783c56e6e0d54f1edc 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { Link } from 'react-router';
 import { FormattedMessage } from 'react-intl';
-import { hasMessage, translate } from 'sonar-ui-common/helpers/l10n';
+import { Link } from 'react-router';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import ComponentNavLicenseNotif from './ComponentNavLicenseNotif';
+import { hasMessage, translate } from 'sonar-ui-common/helpers/l10n';
 import { STATUSES } from '../../../../apps/background-tasks/constants';
 import { getComponentBackgroundTaskUrl } from '../../../../helpers/urls';
+import ComponentNavLicenseNotif from './ComponentNavLicenseNotif';
 
 interface Props {
   component: T.Component;
index 46e4cf570e41bb514994bdf6283c1d688d968624..f6abb60a0ad060370b401cab45bbedd80e90e2b9 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
-import PlusCircleIcon from 'sonar-ui-common/components/icons/PlusCircleIcon';
 import { FormattedMessage } from 'react-intl';
 import { Link } from 'react-router';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import Toggler from 'sonar-ui-common/components/controls/Toggler';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
-import ComponentNavBranchesMenu from './ComponentNavBranchesMenu';
-import BranchIcon from '../../../../components/icons-components/BranchIcon';
+import Toggler from 'sonar-ui-common/components/controls/Toggler';
+import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
+import PlusCircleIcon from 'sonar-ui-common/components/icons/PlusCircleIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import DocTooltip from '../../../../components/docs/DocTooltip';
-import { colors } from '../../../theme';
+import { withAppState } from '../../../../components/hoc/withAppState';
+import BranchIcon from '../../../../components/icons-components/BranchIcon';
 import {
-  isShortLivingBranch,
-  isSameBranchLike,
   getBranchLikeDisplayName,
-  isPullRequest
+  isPullRequest,
+  isSameBranchLike,
+  isShortLivingBranch
 } from '../../../../helpers/branches';
 import { isSonarCloud } from '../../../../helpers/system';
 import { getPortfolioAdminUrl } from '../../../../helpers/urls';
-import { withAppState } from '../../../../components/hoc/withAppState';
+import { colors } from '../../../theme';
+import ComponentNavBranchesMenu from './ComponentNavBranchesMenu';
 
 interface Props {
   appState: Pick<T.AppState, 'branchesEnabled'>;
index b5fee98b100e316a65b0f6dfae9d7d5abab6aa5a..72da26274fa8fe9b18c8232df39c177a48efd49e 100644 (file)
  */
 import * as React from 'react';
 import { Link } from 'react-router';
-import { scrollToElement } from 'sonar-ui-common/helpers/scrolling';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
-import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
-import ComponentNavBranchesMenuItem from './ComponentNavBranchesMenuItem';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { scrollToElement } from 'sonar-ui-common/helpers/scrolling';
+import { Router, withRouter } from '../../../../components/hoc/withRouter';
 import {
-  sortBranchesAsTree,
-  isLongLivingBranch,
-  isShortLivingBranch,
-  isSameBranchLike,
   getBranchLikeKey,
+  isBranch,
+  isLongLivingBranch,
   isPullRequest,
-  isBranch
+  isSameBranchLike,
+  isShortLivingBranch,
+  sortBranchesAsTree
 } from '../../../../helpers/branches';
 import { getBranchLikeUrl } from '../../../../helpers/urls';
-import { withRouter, Router } from '../../../../components/hoc/withRouter';
+import ComponentNavBranchesMenuItem from './ComponentNavBranchesMenuItem';
 
 interface Props {
   branchLikes: T.BranchLike[];
index 021cbfce88a76e36dab3d361f9b13c2ca9fda571..3a0987ed04219619da7c8641918edeeb21f6172d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as classNames from 'classnames';
 import * as React from 'react';
 import { Link } from 'react-router';
-import * as classNames from 'classnames';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import BranchIcon from '../../../../components/icons-components/BranchIcon';
 import BranchStatus from '../../../../components/common/BranchStatus';
+import BranchIcon from '../../../../components/icons-components/BranchIcon';
 import {
-  isShortLivingBranch,
   getBranchLikeDisplayName,
   getBranchLikeKey,
   isMainBranch,
-  isPullRequest
+  isPullRequest,
+  isShortLivingBranch
 } from '../../../../helpers/branches';
 import { getBranchLikeUrl } from '../../../../helpers/urls';
 
index 0cec4d3a348c2c68c081d680cca519608e5b3877..457bb69ea705ae3d9aec4b8e97e7def3b338c6fc 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
 import { connect } from 'react-redux';
 import { Link } from 'react-router';
+import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import ComponentNavBranch from './ComponentNavBranch';
-import { getOrganizationByKey, Store } from '../../../../store/rootReducer';
 import OrganizationAvatar from '../../../../components/common/OrganizationAvatar';
 import OrganizationHelmet from '../../../../components/common/OrganizationHelmet';
 import OrganizationLink from '../../../../components/ui/OrganizationLink';
 import { sanitizeAlmId } from '../../../../helpers/almIntegrations';
-import { getProjectUrl } from '../../../../helpers/urls';
-import { isSonarCloud } from '../../../../helpers/system';
 import { isMainBranch } from '../../../../helpers/branches';
+import { isSonarCloud } from '../../../../helpers/system';
+import { getProjectUrl } from '../../../../helpers/urls';
+import { getOrganizationByKey, Store } from '../../../../store/rootReducer';
+import ComponentNavBranch from './ComponentNavBranch';
 
 interface StateProps {
   organization?: T.Organization;
index 95c6bcce7c4597bfcae318418d5e2b3784b19c9d..c2726b013273e9bdcee8ef6910e9663bc17bde9b 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { Link } from 'react-router';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { isValidLicense } from '../../../../api/marketplace';
 import { withAppState } from '../../../../components/hoc/withAppState';
 
index 7e43462d14a4a4b4703c0ec2b3b6dd6aaa5effaa..a1c17cb40983f233eaf454783aa6a70466d5764d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as classNames from 'classnames';
 import * as React from 'react';
+import { Link } from 'react-router';
+import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
 import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import NavBarTabs from 'sonar-ui-common/components/ui/NavBarTabs';
-import { Link } from 'react-router';
-import * as classNames from 'classnames';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
 import { withAppState } from '../../../../components/hoc/withAppState';
 import {
-  isShortLivingBranch,
-  isPullRequest,
+  getBranchLikeQuery,
   isMainBranch,
-  getBranchLikeQuery
+  isPullRequest,
+  isShortLivingBranch
 } from '../../../../helpers/branches';
 import { isSonarCloud } from '../../../../helpers/system';
 
index ba9d0af996dac9dcc26d99092f01fb8ed4a9af7d..47b574cb50f70b763a4c770fa0f318dbce4324c9 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import DetachIcon from 'sonar-ui-common/components/icons/DetachIcon';
 import { connect } from 'react-redux';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import ComponentNavWarnings from './ComponentNavWarnings';
+import DetachIcon from 'sonar-ui-common/components/icons/DetachIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import BranchStatus from '../../../../components/common/BranchStatus';
-import DateTimeFormatter from '../../../../components/intl/DateTimeFormatter';
 import Favorite from '../../../../components/controls/Favorite';
 import HomePageSelect from '../../../../components/controls/HomePageSelect';
+import DateTimeFormatter from '../../../../components/intl/DateTimeFormatter';
 import {
-  isShortLivingBranch,
   isLongLivingBranch,
   isMainBranch,
-  isPullRequest
+  isPullRequest,
+  isShortLivingBranch
 } from '../../../../helpers/branches';
 import { isLoggedIn } from '../../../../helpers/users';
 import { getCurrentUser, Store } from '../../../../store/rootReducer';
+import ComponentNavWarnings from './ComponentNavWarnings';
 
 export interface Props {
   branchLike?: T.BranchLike;
index 39439a91b58f3d888287ea37a49c43d140c392c7..0538a14ef2480db67500dc42ab6be4bca23e8d9c 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import WarningIcon from 'sonar-ui-common/components/icons/WarningIcon';
 import { FormattedMessage } from 'react-intl';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import WarningIcon from 'sonar-ui-common/components/icons/WarningIcon';
 import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 
 const AnalysisWarningsModal = lazyLoad(() =>
   import('../../../../components/common/AnalysisWarningsModal')
index c5bc951d3b95255386266f627d40a6ed6cbe4461..fbc8dada05913a742fa2d0019fa88e84d897c0de 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ComponentNav from '../ComponentNav';
 
 const component = {
index 08f7dc6c76e704facf65996a9f126a55e27e3c6a..638df2a9cbfaaac258daf7d9322275788dad2438 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ComponentNavBgTaskNotif from '../ComponentNavBgTaskNotif';
 
 jest.mock('sonar-ui-common/helpers/l10n', () => ({
index 6e37c64541d524ea121eee0e526aabde409209ab..b7761bf314150016fae995ac29c2d59497e0266d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
-import { ComponentNavBranch } from '../ComponentNavBranch';
 import { isSonarCloud } from '../../../../../helpers/system';
 import {
-  mockPullRequest,
-  mockShortLivingBranch,
+  mockLongLivingBranch,
   mockMainBranch,
-  mockLongLivingBranch
+  mockPullRequest,
+  mockShortLivingBranch
 } from '../../../../../helpers/testMocks';
+import { ComponentNavBranch } from '../ComponentNavBranch';
 
 jest.mock('../../../../../helpers/system', () => ({ isSonarCloud: jest.fn() }));
 
index 28e9e979c571897e16e9056defe8a32f2638e6b7..54be1a4113267039f402e09e213e5a958928867e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { elementKeydown } from 'sonar-ui-common/helpers/testUtils';
-import { ComponentNavBranchesMenu } from '../ComponentNavBranchesMenu';
 import {
-  mockPullRequest,
-  mockShortLivingBranch,
   mockLongLivingBranch,
-  mockMainBranch
+  mockMainBranch,
+  mockPullRequest,
+  mockShortLivingBranch
 } from '../../../../../helpers/testMocks';
+import { ComponentNavBranchesMenu } from '../ComponentNavBranchesMenu';
 
 const component = { key: 'component' } as T.Component;
 
index 0de990f31f759a87a6fcc1111992bebca2f2b1e7..33f624327013bd717787359f6c06fe66dbd1000e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ComponentNavBranchesMenuItem, { Props } from '../ComponentNavBranchesMenuItem';
 
 const component = { key: 'component' } as T.Component;
index 2c621ac6bac1ab09bdf68588ecf700859b8e4722..acd86faf93496c28c3dd8a95419eb65445c047ca 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { ComponentNavHeader } from '../ComponentNavHeader';
+import * as React from 'react';
 import { isSonarCloud } from '../../../../../helpers/system';
+import { ComponentNavHeader } from '../ComponentNavHeader';
 
 jest.mock('../../../../../helpers/system', () => ({
   isSonarCloud: jest.fn().mockReturnValue(false)
index 9e6590bf91a906d6c125fa7123232be7d9b6f1bb..0096483ae8c2272c816c3c72a2a7b1fca3af9f05 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { ComponentNavLicenseNotif } from '../ComponentNavLicenseNotif';
 import { isValidLicense } from '../../../../../api/marketplace';
+import { ComponentNavLicenseNotif } from '../ComponentNavLicenseNotif';
 
 jest.mock('sonar-ui-common/helpers/l10n', () => ({
   ...jest.requireActual('sonar-ui-common/helpers/l10n'),
index 7d09bef1ad9b51a0f1d96e46d174fae21b918c8b..732501693d2807072f0d569387473a079a0eb668 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { ComponentNavMenu } from '../ComponentNavMenu';
 
 const mainBranch: T.MainBranch = { isMain: true, name: 'master' };
index acc42d006cfaadfc5a6a8fc1bd8798eaef2932e6..858d8ea1134b9efe294e215da035155cb2999d90 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { ComponentNavMeta, getCurrentPage, Props } from '../ComponentNavMeta';
+import * as React from 'react';
 import {
-  mockShortLivingBranch,
   mockComponent,
+  mockCurrentUser,
+  mockLoggedInUser,
   mockLongLivingBranch,
   mockPullRequest,
-  mockCurrentUser,
-  mockLoggedInUser
+  mockShortLivingBranch
 } from '../../../../../helpers/testMocks';
+import { ComponentNavMeta, getCurrentPage, Props } from '../ComponentNavMeta';
 
 describe('#ComponentNavMeta', () => {
   it('renders status of short-living branch', () => {
index 708b7666bff5788e27cc8c3ba1b01b3d42bc751a..de98cd58b13a84b42370f04b50ee31a38b79a61f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ComponentNavWarnings from '../ComponentNavWarnings';
 
 it('should render', () => {
index 343687c1c9ae1a53724b78801a3f9ede94971ac6..05f043e52a4d3af79f86e6b7a25e11cf5b74c6c5 100644 (file)
  */
 import * as React from 'react';
 import { connect } from 'react-redux';
+import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
 import NavBar from 'sonar-ui-common/components/ui/NavBar';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
-import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
-import GlobalNavBranding, { SonarCloudNavBranding } from './GlobalNavBranding';
-import GlobalNavMenu from './GlobalNavMenu';
-import GlobalNavExplore from './GlobalNavExplore';
-import GlobalNavUserContainer from './GlobalNavUserContainer';
-import Search from '../../search/Search';
-import EmbedDocsPopupHelper from '../../embed-docs-modal/EmbedDocsPopupHelper';
-import { rawSizes } from '../../../theme';
 import {
-  fetchPrismicRefs,
   fetchPrismicFeatureNews,
+  fetchPrismicRefs,
   PrismicFeatureNews
 } from '../../../../api/news';
+import { isSonarCloud } from '../../../../helpers/system';
+import { isLoggedIn } from '../../../../helpers/users';
 import {
+  getAppState,
   getCurrentUser,
   getCurrentUserSetting,
-  getAppState,
   getGlobalSettingValue,
   Store
 } from '../../../../store/rootReducer';
-import { isSonarCloud } from '../../../../helpers/system';
-import { isLoggedIn } from '../../../../helpers/users';
-import { OnboardingContext } from '../../OnboardingContext';
 import { setCurrentUserSetting } from '../../../../store/users';
+import { rawSizes } from '../../../theme';
+import EmbedDocsPopupHelper from '../../embed-docs-modal/EmbedDocsPopupHelper';
+import { OnboardingContext } from '../../OnboardingContext';
+import Search from '../../search/Search';
 import './GlobalNav.css';
+import GlobalNavBranding, { SonarCloudNavBranding } from './GlobalNavBranding';
+import GlobalNavExplore from './GlobalNavExplore';
+import GlobalNavMenu from './GlobalNavMenu';
+import GlobalNavUserContainer from './GlobalNavUserContainer';
 
 const GlobalNavPlus = lazyLoad(() => import('./GlobalNavPlus'), 'GlobalNavPlus');
 const NotificationsSidebar = lazyLoad(
index b17ccdbe76cc1cc7fa03a5c6f6867e561e44bf3d..1f1e62e49530c74d2e196598c84b50907d38d83f 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { Link } from 'react-router';
 import { connect } from 'react-redux';
+import { Link } from 'react-router';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
 import { getGlobalSettingValue, Store } from '../../../../store/rootReducer';
index 7595b890b7d92c6b259f5c12dedb4a6f78ec4e24..653b454ccc307a4c30626338cf115a8d2119ee6b 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { Link } from 'react-router';
+import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
 import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
 import { isMySet } from '../../../../apps/issues/utils';
 import { isSonarCloud } from '../../../../helpers/system';
-import { isLoggedIn } from '../../../../helpers/users';
 import { getQualityGatesUrl } from '../../../../helpers/urls';
+import { isLoggedIn } from '../../../../helpers/users';
 
 interface Props {
   appState: Pick<T.AppState, 'canAdmin' | 'globalPages' | 'organizationsEnabled' | 'qualifiers'>;
index 6db1ba0603e5839543008a42987bb145887b492a..42ae09900f5a7e29b23aa93e43727a106c743778 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import PlusIcon from 'sonar-ui-common/components/icons/PlusIcon';
 import { Link, withRouter, WithRouterProps } from 'react-router';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
-import CreateFormShim from '../../../../apps/portfolio/components/CreateFormShim';
-import { OnboardingContextShape } from '../../OnboardingContext';
+import PlusIcon from 'sonar-ui-common/components/icons/PlusIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getComponentNavigation } from '../../../../api/nav';
+import CreateFormShim from '../../../../apps/portfolio/components/CreateFormShim';
 import { getExtensionStart } from '../../../../helpers/extensions';
 import { isSonarCloud } from '../../../../helpers/system';
 import { getPortfolioAdminUrl, getPortfolioUrl } from '../../../../helpers/urls';
 import { hasGlobalPermission } from '../../../../helpers/users';
+import { OnboardingContextShape } from '../../OnboardingContext';
 
 interface Props {
   appState: Pick<T.AppState, 'qualifiers'>;
index 4cff2ebea7e38da0bacd4979a4f78b753bcd30d5..ecbcec67027ef45949b4a31165f26692cf883fcb 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
+import * as React from 'react';
 import { Link } from 'react-router';
+import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
-import { rawSizes } from '../../../theme';
+import { Router, withRouter } from '../../../../components/hoc/withRouter';
 import Avatar from '../../../../components/ui/Avatar';
 import OrganizationListItem from '../../../../components/ui/OrganizationListItem';
 import { isLoggedIn } from '../../../../helpers/users';
-import { withRouter, Router } from '../../../../components/hoc/withRouter';
+import { rawSizes } from '../../../theme';
 
 interface Props {
   appState: { organizationsEnabled?: boolean };
index 701abdf4dd4159c955c1d50fc9a044954d4480e3..c9894479a0dda696215661468c9237b52fa08913 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { connect } from 'react-redux';
-import GlobalNavUser from './GlobalNavUser';
 import { getMyOrganizations, Store } from '../../../../store/rootReducer';
+import GlobalNavUser from './GlobalNavUser';
 
 interface StateProps {
   organizations: T.Organization[];
index 5e26c9b94f5134b3e9a109948868b79f82be8141..07d750c3dbe57796ec804e23a128e62c85ab8808 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { waitAndUpdate, click } from 'sonar-ui-common/helpers/testUtils';
-import { GlobalNav } from '../GlobalNav';
-import { isSonarCloud } from '../../../../../helpers/system';
+import * as React from 'react';
+import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import {
-  fetchPrismicRefs,
   fetchPrismicFeatureNews,
+  fetchPrismicRefs,
   PrismicFeatureNews
 } from '../../../../../api/news';
+import { isSonarCloud } from '../../../../../helpers/system';
+import { GlobalNav } from '../GlobalNav';
 
 jest.mock('../../../../../helpers/system', () => ({ isSonarCloud: jest.fn() }));
 
index ce61bc5408e6fa82326ebfffe579f4e6351c8ce2..34e089c869269e9312a5547c760e4d422ce7e3ef 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import GlobalNavMenu from '../GlobalNavMenu';
 
 it('should work with extensions', () => {
index 83c47c47563901f8a735ae09cd847e95c0ae6f79..53b3c725284fe8d666c245416fa3fe13eb76fea2 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow, ShallowWrapper } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
-import { GlobalNavPlus } from '../GlobalNavPlus';
 import { isSonarCloud } from '../../../../../helpers/system';
 import { mockRouter } from '../../../../../helpers/testMocks';
+import { GlobalNavPlus } from '../GlobalNavPlus';
 
 jest.mock('../../../../../helpers/system', () => ({
   isSonarCloud: jest.fn()
index 27f0c9ea00aec29874b22ec7481824ecd834efee..8d620ea805a3115c548783414c380bbb26abb5e7 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { GlobalNavUser } from '../GlobalNavUser';
 
 const currentUser = { avatar: 'abcd1234', isLoggedIn: true, name: 'foo', email: 'foo@bar.baz' };
index 8b3250b0d1bf12721057bf4137bf6f139e6d19e9..31b30db330c61c0907b494837b8f51044dd05d90 100644 (file)
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { cancelPendingPlugins, PluginPendingResult } from '../../../../api/plugins';
 import InstanceMessage from '../../../../components/common/InstanceMessage';
 import RestartButton from '../../../../components/common/RestartButton';
-import { cancelPendingPlugins, PluginPendingResult } from '../../../../api/plugins';
 
 interface Props {
   fetchSystemStatus: () => void;
index c3cfdfe81e21fbdac682c122531a28a39e10e63e..df7bc14d113ad05fd6a54e009cd7ba798211cbbd 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { IndexLink, Link } from 'react-router';
+import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
 import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import ContextNavBar from 'sonar-ui-common/components/ui/ContextNavBar';
 import NavBarTabs from 'sonar-ui-common/components/ui/NavBarTabs';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
+import { PluginPendingResult } from '../../../../api/plugins';
+import { rawSizes } from '../../../theme';
 import PendingPluginsActionNotif from './PendingPluginsActionNotif';
 import SystemRestartNotif from './SystemRestartNotif';
-import { rawSizes } from '../../../theme';
-import { PluginPendingResult } from '../../../../api/plugins';
 
 interface Props {
   extensions: T.Extension[];
index cef5c5f9906b1f7af7ea660b47d577286506d9c2..b0a518880056389881d3e066c08c1cefa7d59e63 100644 (file)
@@ -20,8 +20,8 @@
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { Link } from 'react-router';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getInstance } from '../../../../helpers/system';
 
 export default function SystemRestartNotif() {
index d8a2390813ea8a9730086bbc0aa05ddbb7ef6d43..205a9cb70cab6fd7d23dbee5a03100188525288c 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable import/order */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import PendingPluginsActionNotif from '../PendingPluginsActionNotif';
 
index d9f539d1ea0500b44d676eaf22f4034d3dac3ac7..aea08cad89832364c8298f193969486cc4ebc344 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SettingsNav from '../SettingsNav';
 
 it('should work with extensions', () => {
index eed4b5ff55407517a5fa9fb34ca5f720b710338a..374358db62be497b8a8228935b1854a08f1bf8c1 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SystemRestartNotif from '../SystemRestartNotif';
 
 it('should render correctly', () => {
index a78b8f5a9bb09083b766f20c58a1ec6da98ca99c..df1cb34c9028fa9ef13103020bdeeb31ae69932e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as differenceInSeconds from 'date-fns/difference_in_seconds';
-import NotificationIcon from 'sonar-ui-common/components/icons/NotificationIcon';
+import * as React from 'react';
 import ClearIcon from 'sonar-ui-common/components/icons/ClearIcon';
+import NotificationIcon from 'sonar-ui-common/components/icons/NotificationIcon';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { PrismicFeatureNews } from '../../../api/news';
index 93418181434804e0fc2d0dd1000386cfeff56780..6df2e39ae6afc132e983e1afa1836fa178a87866 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
 import * as differenceInSeconds from 'date-fns/difference_in_seconds';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import { ClearButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import DateFormatter from '../../../components/intl/DateFormatter';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { PrismicFeatureNews } from '../../../api/news';
+import DateFormatter from '../../../components/intl/DateFormatter';
 
 export interface Props {
   fetchMoreFeatureNews: () => void;
index 591a7ac15b7ddac039c7d2f1d9b6e05964e92957..bd2898cfc35e62738377376fd01653e13c1a5ed0 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
-import NavLatestNotification from '../NavLatestNotification';
 import { PrismicFeatureNews } from '../../../../api/news';
+import NavLatestNotification from '../NavLatestNotification';
 
 it('should render correctly if there are new features, and the user has not opted out', () => {
   const wrapper = shallowRender();
index 77f0d35997b9908f0fb0a43abd36cb7227fc2a8c..7bbfab01fba5e5a342e017a66b6a698fcc35460d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
 import NotificationsSidebar, {
-  Props,
+  Feature,
   isUnread,
   Notification,
-  Feature
+  Props
 } from '../NotificationsSidebar';
 
 const news: Props['news'] = [
index 028241d51e90ef1f49184621419b0c49248600b6..2eee6ddcc40feb02b94ecb68857a65a5df936a27 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
-import ClockIcon from 'sonar-ui-common/components/icons/ClockIcon';
 import * as key from 'keymaster';
 import { debounce, keyBy, uniqBy } from 'lodash';
+import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { withRouter, WithRouterProps } from 'react-router';
-import { scrollToElement } from 'sonar-ui-common/helpers/scrolling';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
 import OutsideClickHandler from 'sonar-ui-common/components/controls/OutsideClickHandler';
 import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
-import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
-import { sortQualifiers, More, Results, ComponentResult } from './utils';
-import RecentHistory from '../RecentHistory';
+import ClockIcon from 'sonar-ui-common/components/icons/ClockIcon';
+import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { scrollToElement } from 'sonar-ui-common/helpers/scrolling';
 import { getSuggestions } from '../../../api/components';
-import { getProjectUrl, getCodeUrl } from '../../../helpers/urls';
+import { getCodeUrl, getProjectUrl } from '../../../helpers/urls';
+import RecentHistory from '../RecentHistory';
 import './Search.css';
+import { ComponentResult, More, Results, sortQualifiers } from './utils';
 
 const SearchResults = lazyLoad(() => import('./SearchResults'));
 const SearchResult = lazyLoad(() => import('./SearchResult'));
index 9821523e093d8db07026e25eed2a4fc765689bed..f8046fe428ba4a722378c1c1eaac0a9e7a4ed972 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { Link } from 'react-router';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import ClockIcon from 'sonar-ui-common/components/icons/ClockIcon';
 import FavoriteIcon from 'sonar-ui-common/components/icons/FavoriteIcon';
 import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
-import { Link } from 'react-router';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { getCodeUrl, getProjectUrl } from '../../../helpers/urls';
 import { ComponentResult } from './utils';
-import { getProjectUrl, getCodeUrl } from '../../../helpers/urls';
 
 interface Props {
   appState: Pick<T.AppState, 'organizationsEnabled'>;
index f56bcfb5718ab8d50fdaee73150b38388bc217de..f72e02d317aba3907b142c161f837ebd57348590 100644 (file)
@@ -20,7 +20,7 @@
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import SearchShowMore from './SearchShowMore';
-import { sortQualifiers, More, ComponentResult, Results } from './utils';
+import { ComponentResult, More, Results, sortQualifiers } from './utils';
 
 export interface Props {
   allowMore: boolean;
index 964da6f4f45c9f8b3b5ca1b4fcab73ff77346633..600e66bbb97a3276fdad0ca4db3b9474696b39b9 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as classNames from 'classnames';
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import * as classNames from 'classnames';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   allowMore: boolean;
index 7e3aecaffeb1457be98c3160e121df8743817250..a378bde9fe416828d8313c4498b8b42ecb79b182 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow, ShallowWrapper } from 'enzyme';
+import * as React from 'react';
 import { elementKeydown } from 'sonar-ui-common/helpers/testUtils';
 import { Search } from '../Search';
 
index 6a2e303577b3afaeca87761a6557a0cf1d9b6f8f..5380284680132e16d193f17fb02c856c8e824595 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SearchResult from '../SearchResult';
 
 jest.useFakeTimers();
index 3085a67a1664cb5421459178e02197298b88533c..565dea71dd91a38b9148a57213c1d3770d4f0f8f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SearchResults, { Props } from '../SearchResults';
 
 it('renders different components and dividers between them', () => {
index 469f82c967ef63d22c8c2d637a6b73cfd72843b3..397d8a9d59ce3d97796f9a0deede502acd2b072b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import SearchShowMore from '../SearchShowMore';
 
index 36085143fe0d194ace0cb23087ce9cfbfe69d04e..804f41067c131e321ae65f3eecddcc3407cdc62d 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { installGlobal, DEFAULT_LANGUAGE, requestMessages } from 'sonar-ui-common/helpers/l10n';
-import { request, parseJSON } from 'sonar-ui-common/helpers/request';
+import { DEFAULT_LANGUAGE, installGlobal, requestMessages } from 'sonar-ui-common/helpers/l10n';
+import { parseJSON, request } from 'sonar-ui-common/helpers/request';
 import { installExtensionsHandler, installWebAnalyticsHandler } from '../helpers/extensionsHandler';
 import { getSystemStatus } from '../helpers/system';
 import './styles/sonar.css';
index 5f00a890a052c7f352bfbce22d95c7c7185544e0..8d29b4bcad9f379e8d27dea11aaf7c2e15dbdaac 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import throwGlobalError from '../throwGlobalError';
 import getStore from '../getStore';
+import throwGlobalError from '../throwGlobalError';
 
 it('should put the error message in the store', async () => {
   const response: any = { json: jest.fn().mockResolvedValue({ errors: [{ msg: 'error 1' }] }) };
index f9ca5dd0a86cf53750a34d7e4594a9c7bed12e0a..5d791710a510b23eb1524b346820fb0e69a4404d 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import getStore from './getStore';
 import * as globalMessages from '../../store/globalMessages';
+import getStore from './getStore';
 
 export default function addGlobalSuccessMessage(message: string): void {
   const store = getStore();
index b0a9b8191a5c676dea0abe49ef14f973e4fbda81..3276ec67e3ef89b1a9e5b23b1f7fb19d953461e2 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import getHistory from 'sonar-ui-common/helpers/getHistory';
-import getStore from './getStore';
 import { requireAuthorization } from '../../store/appState';
+import getStore from './getStore';
 
 export default function handleRequiredAuthorization() {
   const store = getStore();
index 6560bb4bef2a1579c221b8a5e606543e0c6ab6a4..8581a91d54469df719c3ed11d798d67b4f09dc83 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable react/jsx-sort-props */
+import { Location } from 'history';
 import * as React from 'react';
 import { render } from 'react-dom';
-import { IndexRoute, Redirect, Route, RouteConfig, RouteProps, Router } from 'react-router';
-import { Provider } from 'react-redux';
 import { IntlProvider } from 'react-intl';
-import { Location } from 'history';
+import { Provider } from 'react-redux';
+import { IndexRoute, Redirect, Route, RouteConfig, RouteProps, Router } from 'react-router';
+import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
 import ThemeContext from 'sonar-ui-common/components/ThemeContext';
 import getHistory from 'sonar-ui-common/helpers/getHistory';
-import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
-import getStore from './getStore';
-import MigrationContainer from '../components/MigrationContainer';
-import * as theme from '../theme';
-import App from '../components/App';
-import GlobalContainer from '../components/GlobalContainer';
 import aboutRoutes from '../../apps/about/routes';
 import accountRoutes from '../../apps/account/routes';
 import backgroundTasksRoutes from '../../apps/background-tasks/routes';
@@ -39,18 +34,20 @@ import codeRoutes from '../../apps/code/routes';
 import codingRulesRoutes from '../../apps/coding-rules/routes';
 import componentMeasuresRoutes from '../../apps/component-measures/routes';
 import customMeasuresRoutes from '../../apps/custom-measures/routes';
-import groupsRoutes from '../../apps/groups/routes';
-import Issues from '../../apps/issues/components/AppContainer';
+import customMetricsRoutes from '../../apps/custom-metrics/routes';
+import documentationRoutes from '../../apps/documentation/routes';
 import Explore from '../../apps/explore/Explore';
 import ExploreIssues from '../../apps/explore/ExploreIssues';
 import ExploreProjects from '../../apps/explore/ExploreProjects';
+import groupsRoutes from '../../apps/groups/routes';
+import Issues from '../../apps/issues/components/AppContainer';
 import IssuesPageSelector from '../../apps/issues/IssuesPageSelector';
+import { maintenanceRoutes, setupRoutes } from '../../apps/maintenance/routes';
 import marketplaceRoutes from '../../apps/marketplace/routes';
-import customMetricsRoutes from '../../apps/custom-metrics/routes';
-import overviewRoutes from '../../apps/overview/routes';
-import onboardingRoutes from '../../apps/tutorials/routes';
 import organizationsRoutes from '../../apps/organizations/routes';
+import overviewRoutes from '../../apps/overview/routes';
 import permissionTemplatesRoutes from '../../apps/permission-templates/routes';
+import { globalPermissionsRoutes, projectPermissionsRoutes } from '../../apps/permissions/routes';
 import portfolioRoutes from '../../apps/portfolio/routes';
 import projectActivityRoutes from '../../apps/projectActivity/routes';
 import projectBranchesRoutes from '../../apps/projectBranches/routes';
@@ -63,13 +60,16 @@ import qualityProfilesRoutes from '../../apps/quality-profiles/routes';
 import sessionsRoutes from '../../apps/sessions/routes';
 import settingsRoutes from '../../apps/settings/routes';
 import systemRoutes from '../../apps/system/routes';
+import onboardingRoutes from '../../apps/tutorials/routes';
 import usersRoutes from '../../apps/users/routes';
 import webAPIRoutes from '../../apps/web-api/routes';
-import documentationRoutes from '../../apps/documentation/routes';
 import webhooksRoutes from '../../apps/webhooks/routes';
-import { maintenanceRoutes, setupRoutes } from '../../apps/maintenance/routes';
-import { globalPermissionsRoutes, projectPermissionsRoutes } from '../../apps/permissions/routes';
 import { isSonarCloud } from '../../helpers/system';
+import App from '../components/App';
+import GlobalContainer from '../components/GlobalContainer';
+import MigrationContainer from '../components/MigrationContainer';
+import * as theme from '../theme';
+import getStore from './getStore';
 
 function handleUpdate(this: { state: { location: Location } }) {
   const { action } = this.state.location;
index 4499bb0e3478b932cacb4abbef3bb658b41c3211..63338038456473e13c578425e7bc1c37c76ddf09 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { parseError } from 'sonar-ui-common/helpers/request';
-import getStore from './getStore';
 import { addGlobalErrorMessage } from '../../store/globalMessages';
+import getStore from './getStore';
 
 export default function throwGlobalError(error: { response: Response }): Promise<Response> {
   const store = getStore();
index 7d077596d69d9636ca9892b038b70e45c62f75d8..b29f0a2edb264d73f0303ea74a1d3328aa8d9db2 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { Location } from 'history';
+import { keyBy } from 'lodash';
 import * as React from 'react';
 import { connect } from 'react-redux';
-import { keyBy } from 'lodash';
 import { Link } from 'react-router';
-import { Location } from 'history';
-import { addWhitePageClass, removeWhitePageClass } from 'sonar-ui-common/helpers/pages';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import AboutProjects from './AboutProjects';
-import AboutLanguages from './AboutLanguages';
-import AboutCleanCode from './AboutCleanCode';
-import AboutQualityModel from './AboutQualityModel';
-import AboutQualityGates from './AboutQualityGates';
-import AboutLeakPeriod from './AboutLeakPeriod';
-import AboutStandards from './AboutStandards';
-import AboutScanners from './AboutScanners';
-import EntryIssueTypes from './EntryIssueTypes';
-import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
-import GlobalContainer from '../../../app/components/GlobalContainer';
+import { addWhitePageClass, removeWhitePageClass } from 'sonar-ui-common/helpers/pages';
 import { searchProjects } from '../../../api/components';
 import { getFacet } from '../../../api/issues';
-import { fetchAboutPageSettings } from '../actions';
+import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
+import GlobalContainer from '../../../app/components/GlobalContainer';
 import {
   getAppState,
   getCurrentUser,
   getGlobalSettingValue,
   Store
 } from '../../../store/rootReducer';
+import { fetchAboutPageSettings } from '../actions';
 import '../styles.css';
+import AboutCleanCode from './AboutCleanCode';
+import AboutLanguages from './AboutLanguages';
+import AboutLeakPeriod from './AboutLeakPeriod';
+import AboutProjects from './AboutProjects';
+import AboutQualityGates from './AboutQualityGates';
+import AboutQualityModel from './AboutQualityModel';
+import AboutScanners from './AboutScanners';
+import AboutStandards from './AboutStandards';
+import EntryIssueTypes from './EntryIssueTypes';
 
 interface Props {
   appState: Pick<T.AppState, 'defaultOrganization' | 'organizationsEnabled'>;
index a5f69dc8af3d8f82beeef1d956bae3bc2575e7ed..6a8d0a66eb6debfcaa7f7cd24d5cd42413c23973 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import TagsIcon from 'sonar-ui-common/components/icons/TagsIcon';
 import { Link } from 'react-router';
+import TagsIcon from 'sonar-ui-common/components/icons/TagsIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import ReadMore from './ReadMore';
 import { getRulesUrl } from '../../../helpers/urls';
+import ReadMore from './ReadMore';
 
 const link = 'https://redirect.sonarsource.com/doc/rules.html';
 
index 322b8a1430112a9d8f1a0425185c2813a1bb1f5b..14c3cb63137b2b2303b1f3e762318c77526309b5 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { Link } from 'react-router';
 import BugIcon from 'sonar-ui-common/components/icons/BugIcon';
 import CodeSmellIcon from 'sonar-ui-common/components/icons/CodeSmellIcon';
 import SecurityHotspotIcon from 'sonar-ui-common/components/icons/SecurityHotspotIcon';
 import VulnerabilityIcon from 'sonar-ui-common/components/icons/VulnerabilityIcon';
-import { Link } from 'react-router';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import { getIssuesUrl } from '../../../helpers/urls';
index 77a896ca802b9be759ec3313029005c7367d814b..638bf9920965f0bff0b69cacbd4037e42af95038 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { addWhitePageClass, removeWhitePageClass } from 'sonar-ui-common/helpers/pages';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { AboutApp } from '../AboutApp';
 import { searchProjects } from '../../../../api/components';
 import { getFacet } from '../../../../api/issues';
-import { mockLocation, mockAppState, mockCurrentUser } from '../../../../helpers/testMocks';
+import { mockAppState, mockCurrentUser, mockLocation } from '../../../../helpers/testMocks';
+import { AboutApp } from '../AboutApp';
 
 jest.mock('sonar-ui-common/helpers/pages', () => ({
   addWhitePageClass: jest.fn(),
index 9e9b347ca9d3a04367ded8aaa423aec1559048f7..60f9d2956cb9296fc631a560bca39844009bc4c4 100644 (file)
 import * as React from 'react';
 import Helmet from 'react-helmet';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
+import { isLoggedIn } from '../../../helpers/users';
 import SQPageContainer from './components/SQPageContainer';
 import SQStartUsing from './components/SQStartUsing';
 import SQTopNav from './components/SQTopNav';
-import { isLoggedIn } from '../../../helpers/users';
 import './style.css';
 
 export default function AsAService() {
index 47aaa007f5d7f32aabef2d44c4f640b1fdce7f9d..7cf1b68be27427b70ab1e83b461c3db33a34ca09 100644 (file)
@@ -21,8 +21,8 @@ import * as React from 'react';
 import Helmet from 'react-helmet';
 import { Link } from 'react-router';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import SQPageContainer from './components/SQPageContainer';
 import { isLoggedIn } from '../../../helpers/users';
+import SQPageContainer from './components/SQPageContainer';
 import './style.css';
 
 const LANGUAGES = [
index 3b647b1fd9dfdd1d0942862c083c74aa2ab4d66f..258ea4d994dc642d45a0966b12c77c57077570b6 100644 (file)
 import * as React from 'react';
 import Helmet from 'react-helmet';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
+import { isLoggedIn } from '../../../helpers/users';
 import SQPageContainer from './components/SQPageContainer';
 import SQStartUsing from './components/SQStartUsing';
 import SQTopNav from './components/SQTopNav';
-import { isLoggedIn } from '../../../helpers/users';
 import './style.css';
 
 export default function BranchAnalysis() {
index fe6d1c20b3dcea7a1e13da034d16f832c8b91b35..cbec92c79b14fe771e41447f8638d9f91bb5a63e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { Location } from 'history';
 import * as React from 'react';
 import { Helmet } from 'react-helmet';
 import { Link } from 'react-router';
-import { Location } from 'history';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import Select from 'sonar-ui-common/components/controls/Select';
-import SQPageContainer from './components/SQPageContainer';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import { isLoggedIn } from '../../../helpers/users';
+import SQPageContainer from './components/SQPageContainer';
 import './style.css';
 
 const CATEGORIES = [
index c1aeb7c27babf39881dcacbe7cf5a0d32cc2464d..16302a119c737541312d028cc67b3dbc8f2804b3 100644 (file)
@@ -22,15 +22,15 @@ import Helmet from 'react-helmet';
 import { connect } from 'react-redux';
 import { addWhitePageClass, removeWhitePageClass } from 'sonar-ui-common/helpers/pages';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import { FixedNavBar, TopNavBar } from './components/NavBars';
+import { getGlobalSettingValue, Store } from '../../../store/rootReducer';
 import FeaturedProjects from './components/FeaturedProjects';
 import Footer from './components/Footer';
 import { Languages } from './components/Languages';
 import LoginButtons from './components/LoginButtons';
+import { FixedNavBar, TopNavBar } from './components/NavBars';
 import Statistics from './components/Statistics';
-import { requestHomepageData, HomepageData, FeaturedProject } from './utils';
-import { getGlobalSettingValue, Store } from '../../../store/rootReducer';
 import './new_style.css';
+import { FeaturedProject, HomepageData, requestHomepageData } from './utils';
 
 interface Props {
   homePageDataUrl?: string;
index caf1dbdef45234613b27f9e040814f96e7cc3638..da0118096347c93eebdb572bb90485674b53eef1 100644 (file)
@@ -23,7 +23,7 @@ import { addWhitePageClass, removeWhitePageClass } from 'sonar-ui-common/helpers
 import { scrollToElement } from 'sonar-ui-common/helpers/scrolling';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
 import Footer from './components/Footer';
-import { TopNavBar, FixedNavBar } from './components/NavBars';
+import { FixedNavBar, TopNavBar } from './components/NavBars';
 import './new_style.css';
 
 export default class Pricing extends React.PureComponent {
index 500d2c478d87876594e05b6d61bc0cff9655fe50..8357fe41ef63f7eccc423da75ebd39b820871ae6 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { Link } from 'react-router';
 import Helmet from 'react-helmet';
+import { Link } from 'react-router';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
+import { isLoggedIn } from '../../../helpers/users';
 import LoginButtons from './components/LoginButtons';
 import Pricing from './components/Pricing';
 import SQPageContainer from './components/SQPageContainer';
 import StartUsing from './components/StartUsing';
-import { LANGUAGES } from './utils';
-import { isLoggedIn } from '../../../helpers/users';
 import './style.css';
+import { LANGUAGES } from './utils';
 
 const NB_LANGUAGE_PER_ROW = 8;
 
index 83b07d31705dc48580cdab3441c5ab0426a1de12..69944fd3fcb0195dbe3af3c1f376dc7543d16feb 100644 (file)
 import * as React from 'react';
 import Helmet from 'react-helmet';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
+import { isLoggedIn } from '../../../helpers/users';
 import SQPageContainer from './components/SQPageContainer';
 import SQStartUsing from './components/SQStartUsing';
 import SQTopNav from './components/SQTopNav';
-import { isLoggedIn } from '../../../helpers/users';
 import './style.css';
 
 export default function SonarLintIntegration() {
index 9d325efacd994b8645d92760e93658afa47341b7..1b8e58d1a08bba9c2ff5fef2a71581729fce02f4 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import BranchAnalysis from '../BranchAnalysis';
 
index c43e784f9bdebca3275c544fad5137132edb94ac..1ef78cc5bfef61ed6baf2254b076998984c78332 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import Home from '../Home';
 import { mockStore } from '../../../../helpers/testMocks';
+import Home from '../Home';
 import { requestHomepageData } from '../utils';
 
 jest.mock('../utils', () => {
index cdeb2225206d964bdf01507b798ff9e4799de4ce..0d48186ae512f6da8ac6eecfadf68524a7f00021 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import CountUp from 'react-countup';
 import { throttle } from 'lodash';
+import * as React from 'react';
+import CountUp from 'react-countup';
 import DuplicationsRating from 'sonar-ui-common/components/ui/DuplicationsRating';
 import Rating from 'sonar-ui-common/components/ui/Rating';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import { getBaseUrl, getPathUrlAsString } from 'sonar-ui-common/helpers/urls';
-import { FeaturedProject } from '../utils';
-import CoverageRating from '../../../../components/ui/CoverageRating';
 import OrganizationAvatar from '../../../../components/common/OrganizationAvatar';
-import ProjectCardLanguagesContainer from '../../../projects/components/ProjectCardLanguagesContainer';
-import { getMetricName } from '../../../overview/utils';
+import CoverageRating from '../../../../components/ui/CoverageRating';
 import { getProjectUrl } from '../../../../helpers/urls';
+import { getMetricName } from '../../../overview/utils';
+import ProjectCardLanguagesContainer from '../../../projects/components/ProjectCardLanguagesContainer';
+import { FeaturedProject } from '../utils';
 import './FeaturedProjects.css';
 
 interface Props {
index ca612e217510f5efd97df742869fe46b3f2070c0..5547c3a5fbeea8bd95f39e9a0f7fe6001980d11b 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import SCChevronDownIcon from './SCChevronDownIcon';
 import { LANGUAGES } from '../utils';
+import SCChevronDownIcon from './SCChevronDownIcon';
 
 interface State {
   height?: number;
index fa8bf5b42cdcb7c7a3db48b55dd64a0a3921e101..72edb553e8358e65339e7bff31f6816331ffdc77 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { throttle } from 'lodash';
+import * as React from 'react';
 import NavBar from 'sonar-ui-common/components/ui/NavBar';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
 import './NavBars.css';
index 8a7da1fcc7d20dcf8cd16837f900c036b135f3b7..deaa3a37d8bff0f34b36b5d5a4802548b39b8e58 100644 (file)
@@ -21,9 +21,9 @@ import * as React from 'react';
 import { connect } from 'react-redux';
 import { withRouter, WithRouterProps } from 'react-router';
 import { addWhitePageClass, removeWhitePageClass } from 'sonar-ui-common/helpers/pages';
-import Footer from './Footer';
 import GlobalContainer from '../../../../app/components/GlobalContainer';
 import { getCurrentUser, getMyOrganizations, Store } from '../../../../store/rootReducer';
+import Footer from './Footer';
 
 interface StateProps {
   currentUser: T.CurrentUser;
index 640d1f8accda65c2cc80eee977ed5c31ac53d1ff..31bf70dbba2ddf334f11b7b2d744e8a910749065 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import ChevronRightIcon from 'sonar-ui-common/components/icons/ChevronRightIcon';
 import { Link } from 'react-router';
+import ChevronRightIcon from 'sonar-ui-common/components/icons/ChevronRightIcon';
 
 export default function StartUsing() {
   return (
index b811b96feb29c96bf84022c045ec4ba47a2c8f1d..233b599649d4144cef92b06b0a935d0265ee44b4 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { throttle } from 'lodash';
+import * as React from 'react';
 import CountUp from 'react-countup';
-import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
+import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
 import './Statistics.css';
 
 interface Statistic {
index 5b16d9f91e16ce9c95247db041c1bb939f720d33..b6c9eea3391af80e2af19a86a35615c3bdfde933 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import FeaturedProjects, { ProjectCard, ProjectIssues } from '../FeaturedProjects';
 
index e0c2ebcd6afb7b911c2bcae759ca5afa46b4fcf7..3798036095ca1e4954b8dfb25c7e4685067deff9 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Footer from '../Footer';
 
 it('should render', () => {
index b8f071d8360660e92a5490f484111b0cd2e3f87e..68eab1746e9c2dbef9b6e8efa89384f5e41e8eb6 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import LoginButtons from '../LoginButtons';
 
 it('should render', () => {
index 52626e305520deb354901803552940c1f6d60af2..d851e4124c08e6823d5fe6df05ab847c9d2f33cd 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow, ShallowWrapper } from 'enzyme';
+import * as React from 'react';
 import Statistics, { StatisticCard } from '../Statistics';
 
 const STATISTICS = { icon: 'stat-icon', text: 'my stat', value: 26666 };
index fddb4315da329fe514b518b782ea00884d3d174b..5ead9fdef8652fc96ef28ec363b52ec9bd6d5457 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { connect } from 'react-redux';
 import Helmet from 'react-helmet';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import { connect } from 'react-redux';
 import handleRequiredAuthentication from 'sonar-ui-common/helpers/handleRequiredAuthentication';
-import Nav from './Nav';
-import UserCard from './UserCard';
-import { getCurrentUser, areThereCustomOrganizations, Store } from '../../../store/rootReducer';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
 import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
+import { areThereCustomOrganizations, getCurrentUser, Store } from '../../../store/rootReducer';
 import '../account.css';
+import Nav from './Nav';
+import UserCard from './UserCard';
 
 interface Props {
   currentUser: T.CurrentUser;
index 8df08c901fd1e357c1e3e0839dfb0a8102e2267d..42821b3ee6bac3e77b771f6b57adc143ccdfb442 100644 (file)
@@ -18,7 +18,7 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { Link, IndexLink } from 'react-router';
+import { IndexLink, Link } from 'react-router';
 import NavBarTabs from 'sonar-ui-common/components/ui/NavBarTabs';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 
index dbaa7cbd582a6cc14394438eabd2fc31092536d3..42bfb22fa5faabcd676cf426f553eed90ccda330 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { changePassword } from '../../../api/users';
 
 interface Props {
index 95fd1aff8ab5cc4cb3844fc7e0925c72e33c0320..37a35c840efbc30901a1b45d205819b0aa810431 100644 (file)
@@ -21,9 +21,9 @@ import * as React from 'react';
 import Helmet from 'react-helmet';
 import { connect } from 'react-redux';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import { getCurrentUser, Store } from '../../../store/rootReducer';
 import Password from './Password';
 import Tokens from './Tokens';
-import { getCurrentUser, Store } from '../../../store/rootReducer';
 
 interface Props {
   user: T.LoggedInUser;
index 1df5387f94dca705118ee7512ca55dd13f4bd05d..930ac04dbc6361297bddb741a5e3ecd816875ff8 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import handleRequiredAuthentication from 'sonar-ui-common/helpers/handleRequiredAuthentication';
-import { Account } from '../Account';
 import { mockCurrentUser } from '../../../../helpers/testMocks';
+import { Account } from '../Account';
 
 jest.mock('sonar-ui-common/helpers/handleRequiredAuthentication', () => ({
   default: jest.fn()
index efe80d9f4b82274a325d468e9dc69ce9acd27f63..2a86fc8754a543be1f76a7971714d0815181ed55 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import Password from '../Password';
+import * as React from 'react';
 import { mockLoggedInUser } from '../../../../helpers/testMocks';
+import Password from '../Password';
 
 it('renders correctly', () => {
   expect(shallow(<Password user={mockLoggedInUser()} />)).toMatchSnapshot();
index 1a33faedf15592d820136d08dea3a23d107b596f..af6a5baf7b2955a86c75325358b2525ff7020fa8 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Tokens from '../Tokens';
 
 it('renders', () => {
index 81189d46004dbd9f5507d5dda0f85b0adcee91b6..ddae53b7323db5a52ba8d235b59253316cab8796 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import { isSonarCloud } from '../../../helpers/system';
 import NotificationsList from './NotificationsList';
 import SonarCloudNotifications from './SonarCloudNotifications';
-import { isSonarCloud } from '../../../helpers/system';
 
 interface Props {
   addNotification: (n: T.Notification) => void;
index ad807f8d948e9fe9e5a3a86cca894c0b0c8afcf7..f903ee919425e2ad1ac46a798dcfe40d8d21951f 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { groupBy, partition, uniq, uniqBy, uniqWith } from 'lodash';
 import * as React from 'react';
 import Helmet from 'react-helmet';
-import { groupBy, partition, uniq, uniqBy, uniqWith } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as api from '../../../api/notifications';
+import { withAppState } from '../../../components/hoc/withAppState';
 import GlobalNotifications from './GlobalNotifications';
 import Projects from './Projects';
 import { NotificationProject } from './types';
-import * as api from '../../../api/notifications';
-import { withAppState } from '../../../components/hoc/withAppState';
 
 export interface Props {
   appState: Pick<T.AppState, 'organizationsEnabled'>;
index 4f14905d1748098b7f9a88e2fe50750e4a73185a..1d50e89dde27091d2f6d504a0cb9c4685a504dd4 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { connect } from 'react-redux';
-import Notifications, { Props } from './Notifications';
 import { fetchOrganizations } from '../../../store/rootActions';
+import Notifications, { Props } from './Notifications';
 
 const mapDispatchToProps = { fetchOrganizations } as Pick<Props, 'fetchOrganizations'>;
 
index a0a47476da57cc41078b8aae9f62b32614e77648..a05d45e56c5c973b5744b4b917b82dd9f2850005 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, hasMessage } from 'sonar-ui-common/helpers/l10n';
 import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
+import { hasMessage, translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   onAdd: (n: T.Notification) => void;
index 807f970eab10fbae5a68b35dbae38b5dfe463d46..16d6b5e9ea828696fe948ed7947e9472039880d6 100644 (file)
 import * as React from 'react';
 import { Link } from 'react-router';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import NotificationsList from './NotificationsList';
-import { NotificationProject } from './types';
 import Organization from '../../../components/shared/Organization';
 import { getProjectUrl } from '../../../helpers/urls';
+import NotificationsList from './NotificationsList';
+import { NotificationProject } from './types';
 
 interface Props {
   addNotification: (n: T.Notification) => void;
index 12b074b97d5703f56c1af31afb3c52c95350e409..663ad924912b978e5ddb3e3d7982d07219948927 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { differenceWith } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import { AsyncSelect } from 'sonar-ui-common/components/controls/Select';
-import ProjectNotifications from './ProjectNotifications';
-import { NotificationProject } from './types';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getSuggestions } from '../../../api/components';
 import Organization from '../../../components/shared/Organization';
+import ProjectNotifications from './ProjectNotifications';
+import { NotificationProject } from './types';
 
 export interface Props {
   addNotification: (n: T.Notification) => void;
index c930000fc4613f582461f5a4206d456cf7d34df1..3a821eb9b0b832990b53e7eb59cd6c955bedd61b 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { connect } from 'react-redux';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getCurrentUserSetting, Store } from '../../../store/rootReducer';
 import { setCurrentUserSetting } from '../../../store/users';
 
index 681d59b5bbbed365aac6a998ec9b13bed13b4bf9..6e9a8f1447c61304aaccb72a73ecdfe08469867f 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import GlobalNotifications from '../GlobalNotifications';
+import * as React from 'react';
 import { isSonarCloud } from '../../../../helpers/system';
+import GlobalNotifications from '../GlobalNotifications';
 
 jest.mock('../../../../helpers/system', () => ({ isSonarCloud: jest.fn() }));
 
index 7760dbbff44001a38ddf4742f4383e8f1985497f..7ef6a87d1e29548b217b5cccc8115fa11ed0314e 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable import/order */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { Notifications } from '../Notifications';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
+import { Notifications } from '../Notifications';
 
 jest.mock('../../../../api/notifications', () => ({
   addNotification: jest.fn(() => Promise.resolve()),
index c46b98c84599237766682177e6496a9d187bb160..7a8bb34263348652d58a22748f0ca42bb955a332 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { hasMessage } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
+import { hasMessage } from 'sonar-ui-common/helpers/l10n';
 import NotificationsList from '../NotificationsList';
 
 jest.mock('sonar-ui-common/helpers/l10n', () => ({
index b8fdab6efb22dd682c58e635d174414077ae2c7c..936160c18f6b072b221107cffe6746bd83b883cc 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ProjectNotifications from '../ProjectNotifications';
 
 const channels = ['channel1', 'channel2'];
index 02beef99dcdf3a2ecb803da37f701cc18f5bd5ba..e0234bd92d9ebc0c24b870ee23cf5f098e669a46 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Projects, { Props } from '../Projects';
 
 jest.mock('../../../../api/components', () => ({
index 33aac3aca6f2449336c9fd1c93db7bbda15852c4..6d7061d7b40f12e5ab8d120e2a9a9047e84c2398 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { SonarCloudNotifications } from '../SonarCloudNotifications';
 
 it('should match snapshot', () => {
index 9d1d0ef29b31bf474b445927514a37d81fca7c1e..f2ec4ce345577cc30acfb81abd7cd3e401da18d0 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import OrganizationCard from './OrganizationCard';
 
index 695da58d85f58d77929834168cad5c0166aee888..1000ef6981dffd84572abdc6c9d37c4d1802adff 100644 (file)
@@ -22,14 +22,14 @@ import Helmet from 'react-helmet';
 import { connect } from 'react-redux';
 import { Link } from 'react-router';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import OrganizationsList from './OrganizationsList';
-import { fetchIfAnyoneCanCreateOrganizations } from './actions';
 import {
   getAppState,
-  getMyOrganizations,
   getGlobalSettingValue,
+  getMyOrganizations,
   Store
 } from '../../../store/rootReducer';
+import { fetchIfAnyoneCanCreateOrganizations } from './actions';
+import OrganizationsList from './OrganizationsList';
 
 interface StateProps {
   anyoneCanCreate: boolean;
index 45bf1b813623241ccbcfcd6dc11e39f3e9cf1c97..6902bfdeaa3e701b549107707e5bf2bfdeb703f3 100644 (file)
@@ -19,8 +19,8 @@
  */
 import { Dispatch } from 'redux';
 import { getOrganizations } from '../../../api/organizations';
-import { receiveMyOrganizations } from '../../../store/organizations';
 import { getValues } from '../../../api/settings';
+import { receiveMyOrganizations } from '../../../store/organizations';
 import { receiveValues } from '../../settings/store/values';
 
 export const fetchMyOrganizations = () => (dispatch: Dispatch) => {
index 941371b710eac09a7625893d4d527ddcd69df347..4b55078de410e6a66484d4e31fafa1a529106220 100644 (file)
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import UserExternalIdentity from './UserExternalIdentity';
+import { whenLoggedIn } from '../../../components/hoc/whenLoggedIn';
+import { isSonarCloud } from '../../../helpers/system';
 import UserDeleteAccount from './UserDeleteAccount';
+import UserExternalIdentity from './UserExternalIdentity';
 import UserGroups from './UserGroups';
 import UserScmAccounts from './UserScmAccounts';
-import { isSonarCloud } from '../../../helpers/system';
-import { whenLoggedIn } from '../../../components/hoc/whenLoggedIn';
 
 export interface Props {
   currentUser: T.LoggedInUser;
index 38351f002b48050063dbf40952b3f6a30f0cb5a8..d114dc9d2fb35390d00fa8371d399d6b4505a06a 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import UserDeleteAccountModal from './UserDeleteAccountModal';
-import UserDeleteAccountContent from './UserDeleteAccountContent';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { getOrganizationsThatPreventDeletion } from '../../../api/organizations';
 import { whenLoggedIn } from '../../../components/hoc/whenLoggedIn';
 import { withUserOrganizations } from '../../../components/hoc/withUserOrganizations';
-import { getOrganizationsThatPreventDeletion } from '../../../api/organizations';
+import UserDeleteAccountContent from './UserDeleteAccountContent';
+import UserDeleteAccountModal from './UserDeleteAccountModal';
 
 interface Props {
   user: T.LoggedInUser;
index 72b4f5ca25c9cf02030c9e893ff3beb730db021a..80ea464225e0c2bf0cf8e33724ba47881cc9677a 100644 (file)
  */
 import * as React from 'react';
 import { connect } from 'react-redux';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import InputValidationField from 'sonar-ui-common/components/controls/InputValidationField';
 import ValidationModal from 'sonar-ui-common/components/controls/ValidationModal';
-import UserDeleteAccountContent from './UserDeleteAccountContent';
-import RecentHistory from '../../../app/components/RecentHistory';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { deactivateUser } from '../../../api/users';
+import RecentHistory from '../../../app/components/RecentHistory';
 import { Router, withRouter } from '../../../components/hoc/withRouter';
 import { doLogout } from '../../../store/rootActions';
+import UserDeleteAccountContent from './UserDeleteAccountContent';
 
 interface Values {
   login: string;
index 4ef71994b28b41f6ea2ac714586ae241f1deb3be..479effa96fbd3b4f44c7f89219104b9983e60e72 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { Profile, Props } from '../Profile';
-import { mockLoggedInUser } from '../../../../helpers/testMocks';
+import * as React from 'react';
 import { isSonarCloud } from '../../../../helpers/system';
+import { mockLoggedInUser } from '../../../../helpers/testMocks';
+import { Profile, Props } from '../Profile';
 
 jest.mock('../../../../helpers/system', () => ({ isSonarCloud: jest.fn().mockReturnValue(false) }));
 
index 1e4d4b217e338cd906412a6906c9d78d94e97f49..215e94f194d2e6903dbedb41e7965173cb2b7e60 100644 (file)
@@ -20,9 +20,9 @@
 import { shallow } from 'enzyme';
 import * as React from 'react';
 import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
+import { getOrganizationsThatPreventDeletion } from '../../../../api/organizations';
 import { mockLoggedInUser, mockOrganization } from '../../../../helpers/testMocks';
 import { UserDeleteAccount } from '../UserDeleteAccount';
-import { getOrganizationsThatPreventDeletion } from '../../../../api/organizations';
 
 jest.mock('../../../../api/organizations', () => ({
   getOrganizationsThatPreventDeletion: jest.fn().mockResolvedValue({ organizations: [] })
index c9e5e334d5e06c7eff046f3da4496d008128749a..37aa8ec43218128a71a0f762dd8a38e2cda35712 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import UserDeleteAccountContent, {
   ShowOrganizations,
   ShowOrganizationsToTransferOrDelete
index e820b6c028418c5195ddb025ff9305570e487c93..0ad5db24db2f306ebbf9033aaf2a4754e4a82618 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
+import { deactivateUser } from '../../../../api/users';
 import { mockLoggedInUser, mockRouter } from '../../../../helpers/testMocks';
 import { UserDeleteAccountModal } from '../UserDeleteAccountModal';
-import { deactivateUser } from '../../../../api/users';
 
 jest.mock('../../../../api/users', () => ({
   deactivateUser: jest.fn()
index 0d29fd77e5c73c711eb4d1611b3edbfb7e076916..5580e9e4896f44b3d5aef6040f314195a32bce59 100644 (file)
  */
 import * as React from 'react';
 import { Link } from 'react-router';
-import { translateWithParameters, translate } from 'sonar-ui-common/helpers/l10n';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import Level from 'sonar-ui-common/components/ui/Level';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import DateFromNow from '../../../components/intl/DateFromNow';
 import DateTimeFormatter from '../../../components/intl/DateTimeFormatter';
 import MetaLink from '../../overview/meta/MetaLink';
index 74014ec1edd6df63a9d6ee48b17f754c5d6259ec..2a6e4b32c7903406166644d57268a5bbe7fe6d40 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import ProjectCard from './ProjectCard';
 
 interface Props {
index 44f0cfe435f3cc49f6ee899f37b93623a3ab5fed..737f3bef3c0e5ebd0dbf1e47c45e6e881cca9451 100644 (file)
@@ -20,8 +20,8 @@
 import * as React from 'react';
 import Helmet from 'react-helmet';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Projects from './Projects';
 import { getMyProjects } from '../../../api/components';
+import Projects from './Projects';
 
 interface State {
   loading: boolean;
index e74288226c14ae8c0b0d592636e51cccbb691a68..996e6bca62982122ddbb322afdda233582ae2abf 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ProjectCard from '../ProjectCard';
 
 it('should render key and name', () => {
index fc82404339f84bb69672cacf9608981044e8cccb..460ff001641ab780f97545f18f999ab3de8e22c1 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
-import Projects from '../Projects';
 import ProjectCard from '../ProjectCard';
+import Projects from '../Projects';
 
 const PROJECTS = [
   { key: 'key1', links: [], name: 'name1' },
index 654a8e07e0a65a1bc45b373c99074ef8db76390e..b1d97a9689546189863170a99617340cb0d7202d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import Search from '../components/Search';
-import { STATUSES, CURRENTS, DEBOUNCE_DELAY, DEFAULT_FILTERS } from '../constants';
+import { CURRENTS, DEBOUNCE_DELAY, DEFAULT_FILTERS, STATUSES } from '../constants';
 import { formatDuration } from '../utils';
 
 describe('Constants', () => {
index 8562271fa7c49f3f64187468ec2163ec7a291ec9..ade939506440810a16acd0637759636763e61728 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { debounce, uniq } from 'lodash';
 import * as React from 'react';
 import Helmet from 'react-helmet';
-import { debounce, uniq } from 'lodash';
 import { connect } from 'react-redux';
-import { parseAsDate } from 'sonar-ui-common/helpers/query';
 import { toShortNotSoISOString } from 'sonar-ui-common/helpers/dates';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Header from './Header';
-import Footer from './Footer';
-import Stats from './Stats';
-import Search from './Search';
-import Tasks from './Tasks';
-import { DEFAULT_FILTERS, DEBOUNCE_DELAY, STATUSES, CURRENTS } from '../constants';
-import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
-import { Location, Router } from '../../../components/hoc/withRouter';
+import { parseAsDate } from 'sonar-ui-common/helpers/query';
 import {
-  getTypes,
+  cancelAllTasks,
+  cancelTask as cancelTaskAPI,
   getActivity,
   getStatus,
-  cancelAllTasks,
-  cancelTask as cancelTaskAPI
+  getTypes
 } from '../../../api/ce';
-import { updateTask, mapFiltersToParameters, Query } from '../utils';
+import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
+import { Location, Router } from '../../../components/hoc/withRouter';
 import { fetchOrganizations } from '../../../store/rootActions';
 import '../background-tasks.css';
+import { CURRENTS, DEBOUNCE_DELAY, DEFAULT_FILTERS, STATUSES } from '../constants';
+import { mapFiltersToParameters, Query, updateTask } from '../utils';
+import Footer from './Footer';
+import Header from './Header';
+import Search from './Search';
+import Stats from './Stats';
+import Tasks from './Tasks';
 
 interface Props {
   component?: Pick<T.Component, 'key'> & { id: string }; // id should be removed when api/ce/activity accept a component key instead of an id
index 5890931fa2705fc3c3a3a63fe1199246dcbaefa7..bbdfcab3aa599276001670b9773864a5f7cf773a 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { CURRENTS } from '../constants';
 
 interface Props {
index 2319474622a35c3fd4272099faf2a7f7f388b8a6..736a797ea275ab8ec8e6c4c5b3e5fda1f810eaf5 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Modal from 'sonar-ui-common/components/controls/Modal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getTask } from '../../../api/ce';
 
 interface Props {
index 3c87bc36390f7b8f35849ed1b85cd141b2e48107..ef0951d3f8911c9276cec0cc2e65823a1988421b 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
-import StatusFilter from './StatusFilter';
-import TypesFilter from './TypesFilter';
-import CurrentsFilter from './CurrentsFilter';
-import DateFilter from './DateFilter';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { DEFAULT_FILTERS } from '../constants';
 import { Query } from '../utils';
+import CurrentsFilter from './CurrentsFilter';
+import DateFilter from './DateFilter';
+import StatusFilter from './StatusFilter';
+import TypesFilter from './TypesFilter';
 
 interface Props {
   component?: unknown;
index d769dbae798265b5e5a7d4004ac424eb5882b3bc..a20cf56733d966fef605268eb5a77e14312b4835 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Modal from 'sonar-ui-common/components/controls/Modal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getTask } from '../../../api/ce';
 
 interface Props {
index 8fb7a39fc9e02d9e788dc82387cedcc1893513bc..f40f55bd575019afa0ad1865cfab70ef29a7eaa7 100644 (file)
  */
 import * as React from 'react';
 import { connect } from 'react-redux';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ClearButton } from 'sonar-ui-common/components/controls/buttons';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { colors } from '../../../app/theme';
 import { getAppState, Store } from '../../../store/rootReducer';
 
index 035f1178c54387a14f7da0608ab1aecb0a754668..bd232f0e213e1180ca158167d51fdbd098b28b13 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 export interface Props {
   className?: string;
index 5d06d9a244d5e2d517e5e8168e1c93f15d0871aa..fa1a07b4927a4a31dba51dbf8358bd505348ffd6 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Select from 'sonar-ui-common/components/controls/Select';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { STATUSES } from '../constants';
 
 interface Props {
index 72953c5074a28cf06b39c5f335802644f56e7954..8bf68063afc286f85bc1ce8522508a0aedf11d12 100644 (file)
@@ -20,9 +20,9 @@
 import * as React from 'react';
 import TaskActions from './TaskActions';
 import TaskComponent from './TaskComponent';
-import TaskExecutionTime from './TaskExecutionTime';
-import TaskDay from './TaskDay';
 import TaskDate from './TaskDate';
+import TaskDay from './TaskDay';
+import TaskExecutionTime from './TaskExecutionTime';
 import TaskId from './TaskId';
 import TaskStatus from './TaskStatus';
 import TaskSubmitter from './TaskSubmitter';
index c7c34c37d85529c09aba87c95507351e1da049b4..7a2b93dd6f4b6519c6fa73bd88a433c55c3db3f8 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import ActionsDropdown, {
   ActionsDropdownItem
 } from 'sonar-ui-common/components/controls/ActionsDropdown';
 import ConfirmModal from 'sonar-ui-common/components/controls/ConfirmModal';
 import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { STATUSES } from '../constants';
 import ScannerContext from './ScannerContext';
 import Stacktrace from './Stacktrace';
-import { STATUSES } from '../constants';
 
 const AnalysisWarningsModal = lazyLoad(
   () => import('../../../components/common/AnalysisWarningsModal'),
index b99889a7c914231175122b037a6916698ab312ba..a453b1390e7eae61b1eef6a36bc89d0502ec683c 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { Link } from 'react-router';
 import LongLivingBranchIcon from 'sonar-ui-common/components/icons/LongLivingBranchIcon';
 import PullRequestIcon from 'sonar-ui-common/components/icons/PullRequestIcon';
 import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
 import ShortLivingBranchIcon from 'sonar-ui-common/components/icons/ShortLivingBranchIcon';
-import { Link } from 'react-router';
-import TaskType from './TaskType';
 import Organization from '../../../components/shared/Organization';
 import {
-  getProjectUrl,
-  getShortLivingBranchUrl,
   getLongLivingBranchUrl,
-  getPullRequestUrl
+  getProjectUrl,
+  getPullRequestUrl,
+  getShortLivingBranchUrl
 } from '../../../helpers/urls';
+import TaskType from './TaskType';
 
 interface Props {
   task: T.Task;
index 8b980caa8339c35a91caff1a2dbd67d622056134..2362c9f829a3b87369df3232b6f07ac5b71b1e7b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as differenceInDays from 'date-fns/difference_in_days';
+import * as React from 'react';
 import { isValidDate, parseDate } from 'sonar-ui-common/helpers/dates';
 import TimeFormatter from '../../../components/intl/TimeFormatter';
 
index 2c5608fb7cd5e3196a93067d2d78171372d1bd1c..fccbe0e26edc54ea1b7362c86104673cb19f2b61 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as isSameDay from 'date-fns/is_same_day';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
 import DateFormatter from '../../../components/intl/DateFormatter';
 
index 9fc950f879de1e2e8609f70381bf18e5f74506a1..5ac1789ed0d84240557805e36085d95fb489956e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import Task from './Task';
 
index ea6ee48e5e929f31fdc42546bf1f253f9909bbb4..24c03303e5d7ea2ce84b82e9bc0e18217403a0d4 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Select from 'sonar-ui-common/components/controls/Select';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ALL_TYPES } from '../constants';
 
 interface Props {
index 796e04b40c1106785630000ec093efe783f3a431..73ef5fa31ba087ed72798c60b1f8446d32025eec 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import AlertWarnIcon from 'sonar-ui-common/components/icons/AlertWarnIcon';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import { EditButton } from 'sonar-ui-common/components/controls/buttons';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
-import WorkersForm from './WorkersForm';
-import NoWorkersSupportPopup from './NoWorkersSupportPopup';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import AlertWarnIcon from 'sonar-ui-common/components/icons/AlertWarnIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getWorkers } from '../../../api/ce';
+import NoWorkersSupportPopup from './NoWorkersSupportPopup';
+import WorkersForm from './WorkersForm';
 
 interface State {
   canSetWorkerCount: boolean;
index 5059f31b41650aa15b944c895af1e967cf412b28..9b0aef6f6cf59aa3f9d228a76f5d35834a8fd3cb 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import Select from 'sonar-ui-common/components/controls/Select';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { setWorkerCount } from '../../../api/ce';
 
 const MAX_WORKERS = 10;
index 35089b798d2f85fa67b765ce41e44f8df1e4b5b4..0b7611021450dd4549b8dd40722470dfe2bcc552 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { BackgroundTasksApp } from '../BackgroundTasksApp';
 import { mockLocation, mockRouter } from '../../../../helpers/testMocks';
+import { BackgroundTasksApp } from '../BackgroundTasksApp';
 
 jest.mock('../../../../api/ce', () => ({
   getTypes: jest.fn().mockResolvedValue({
index 4ac9bdd3a0b55c4e5dbeca30a1a2a4bf870e3f4e..b9def36e8d865c9c4febc95ff48661c8ac23b5bb 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable import/order */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ScannerContext from '../ScannerContext';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
+import ScannerContext from '../ScannerContext';
 
 jest.mock('../../../../api/ce', () => ({
   getTask: jest.fn(() => Promise.resolve({ scannerContext: 'context' }))
index 4bb4b4339b360ead2009ee881cacb4e5fe910ed1..7ce28caf34378b17d76c627bb14bc87c725b4773 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable import/order */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import Stacktrace from '../Stacktrace';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
+import Stacktrace from '../Stacktrace';
 
 jest.mock('../../../../api/ce', () => ({
   getTask: jest.fn(() => Promise.resolve({ errorStacktrace: 'stacktrace' }))
index 82dff7aecf46c7ed4bda42d8fbe67f4a94ad87cb..278059b39c6ded3ec53e4b9e150760eefb2b56d5 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { StatPendingCount, Props } from '../StatPendingCount';
+import * as React from 'react';
+import { Props, StatPendingCount } from '../StatPendingCount';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 5aa625193fecfd97ad9d4ccf0203c61318227217..c9c2bba92241177929346356dac61f6726a0ced8 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import StatPendingTime, { Props } from '../StatPendingTime';
 
 it('should render correctly', () => {
index 01babc019fe45903c774d527a5035adb34dc9eb7..11eb2084452e4a05bfdc1d003afc4bc7941a21df 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import StatStillFailing, { Props } from '../StatStillFailing';
 
index c20b3f1ea02aff300795dadf5a0ce2b9c48cc5e1..debe0fb5a8bb6156e75662bee8d1af95f89d2d85 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import Stats, { Props } from '../Stats';
+import * as React from 'react';
 import { mockComponent } from '../../../../helpers/testMocks';
+import Stats, { Props } from '../Stats';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index ce12e9035bed0b7e0c76410d08f973da8fb78030..6c6e697489fc0f937ab5de4cec74e66139166d29 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Task from '../Task';
 
 it('renders', () => {
index eb2a42191ca2b8074fc7ee6470ec97a9fd188753..14d32aa8143a02236405ffa85231d9b626ba4b4f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import TaskActions from '../TaskActions';
 
index ab570fc30570c526dd8e6dc869d590e74c84c825..e1e249a775ee17e02555b41b21a37409c8887fb0 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import TaskComponent from '../TaskComponent';
 
 const TASK = {
index 6e41faa68141fd0558fa182b5009cc1940e49bf5..39295b1e2d6c4dd59713434695744efa761d965b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import TaskDate from '../TaskDate';
 
 it('renders', () => {
index 7496fff2783df67d6524ba243c63cee7f57020b3..25221d836de4af7b12f4b6e4430206510df109f4 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import TaskDay from '../TaskDay';
 
 it('renders', () => {
index c0bd8571734dfcd952ba902982d214c2974b8198..e3df36b561bddc7d2d619f1c1a02c957ee5f89a7 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import TaskExecutionTime from '../TaskExecutionTime';
 
 it('renders', () => {
index f3166f8fb448b7cb9d32828ea17aa90a3ef3d3fd..5ba279b7058578a8045eaf188579f15edebf5365 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import TaskId from '../TaskId';
 
 it('renders', () => {
index e28b85640b70875b1acd91af66cddb886df61881..c1733805c53db911f3cdcb48a7a9d9d6f515967b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import TaskStatus from '../TaskStatus';
 
 it('renders', () => {
index 91be8b823ef89d1024df821f1f3d145e94f678f3..4a2eb4805f6dee30149c405d5eac1da7223ec0dc 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import TaskType from '../TaskType';
 
 it('renders', () => {
index 0a404a5244612858fc32885e0cc9f4ef6663e6fa..5f809888b839b196d802cfbb8c0f66bebca025da 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import Workers from '../Workers';
 
index 61b46961fb3500b8d968d3816ea24b56de385854..af146d1bfb41452a6f0275a9e4920b912d0b3228 100644 (file)
@@ -22,10 +22,10 @@ jest.mock('../../../../api/ce', () => ({
   setWorkerCount: () => Promise.resolve()
 }));
 
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import WorkersForm from '../WorkersForm';
+import * as React from 'react';
 import { submit } from 'sonar-ui-common/helpers/testUtils';
+import WorkersForm from '../WorkersForm';
 
 it('changes select', () => {
   const wrapper = shallow(<WorkersForm onClose={jest.fn()} workerCount={1} />);
index b6ad34fd8faa4701879547910453bc370bb9a3af..279f7049bfa5a3a36dcd21d12d1756d48564fef3 100644 (file)
@@ -18,7 +18,7 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { toShortNotSoISOString } from 'sonar-ui-common/helpers/dates';
-import { STATUSES, CURRENTS, ALL_TYPES } from './constants';
+import { ALL_TYPES, CURRENTS, STATUSES } from './constants';
 
 export interface Query {
   currents: string;
index 47d2ce08bf2d4adec36bf3cac72ae55965867201..3f1eb3b0981d6708716bafbc2db357232902bc06 100644 (file)
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { addComponent, getComponent, addComponentChildren, getComponentChildren } from '../bucket';
+import { addComponent, addComponentChildren, getComponent, getComponentChildren } from '../bucket';
 
 const component: T.ComponentMeasure = { key: 'frodo', name: 'frodo', qualifier: 'frodo' };
 
index 0d2ccde10a658bdf2fad3e77a0ba9002fa1f9508..226abca45d48877bc90e78028919d8eacda2c4f0 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { connect } from 'react-redux';
+import { Location } from 'history';
+import * as React from 'react';
 import Helmet from 'react-helmet';
+import { connect } from 'react-redux';
 import { InjectedRouter } from 'react-router';
-import { Location } from 'history';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
-import Components from './Components';
-import Breadcrumbs from './Breadcrumbs';
-import Search from './Search';
-import SourceViewerWrapper from './SourceViewerWrapper';
-import { addComponent, addComponentBreadcrumbs, clearBucket } from '../bucket';
-import { retrieveComponentChildren, retrieveComponent, loadMoreChildren } from '../utils';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
 import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
-import { fetchMetrics, fetchBranchStatus } from '../../../store/rootActions';
+import { isPullRequest, isSameBranchLike, isShortLivingBranch } from '../../../helpers/branches';
+import { getCodeUrl, getProjectUrl } from '../../../helpers/urls';
+import { fetchBranchStatus, fetchMetrics } from '../../../store/rootActions';
 import { getMetrics } from '../../../store/rootReducer';
-import { isSameBranchLike, isPullRequest, isShortLivingBranch } from '../../../helpers/branches';
-import { getProjectUrl, getCodeUrl } from '../../../helpers/urls';
+import { addComponent, addComponentBreadcrumbs, clearBucket } from '../bucket';
 import '../code.css';
+import { loadMoreChildren, retrieveComponent, retrieveComponentChildren } from '../utils';
+import Breadcrumbs from './Breadcrumbs';
+import Components from './Components';
+import Search from './Search';
+import SourceViewerWrapper from './SourceViewerWrapper';
 
 interface StateToProps {
   metrics: T.Dict<T.Metric>;
index e57e3ab4de2652dae7fa8f70559e62997b0781c5..5b001ac62a130b6cc4b3495ed68f0dda24b3311b 100644 (file)
  */
 import * as classNames from 'classnames';
 import * as React from 'react';
-import ComponentName from './ComponentName';
+import { withScrollTo } from '../../../components/hoc/withScrollTo';
+import { WorkspaceContext } from '../../../components/workspace/context';
 import ComponentMeasure from './ComponentMeasure';
+import ComponentName from './ComponentName';
 import ComponentPin from './ComponentPin';
-import { WorkspaceContext } from '../../../components/workspace/context';
-import { withScrollTo } from '../../../components/hoc/withScrollTo';
 
 interface Props {
   branchLike?: T.BranchLike;
index 51a0d681420c0dd19af5825148efa2c7a08d62ef..2c62fb2da118d8df4c38b73e1bc7d4cf24ae3c77 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import Measure from '../../../components/measure/Measure';
-import { isDiffMetric } from '../../../helpers/measures';
 import { getLeakValue } from '../../../components/measure/utils';
+import { isDiffMetric } from '../../../helpers/measures';
 
 interface Props {
   component: T.ComponentMeasure;
index 41125ef8c33f174860f9847f4c944231c9479a33..c00591859b85ffce3645ed68e6ff8b8541ec2538 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { intersection } from 'lodash';
+import * as React from 'react';
+import withKeyboardNavigation from '../../../components/hoc/withKeyboardNavigation';
+import { getCodeMetrics } from '../utils';
 import Component from './Component';
 import ComponentsEmpty from './ComponentsEmpty';
 import ComponentsHeader from './ComponentsHeader';
-import withKeyboardNavigation from '../../../components/hoc/withKeyboardNavigation';
-import { getCodeMetrics } from '../utils';
 
 interface Props {
   baseComponent?: T.ComponentMeasure;
index 05c70f4721ded668a665a76f77be5300d9acd356..fb0ec6f072416a0aa42e7d6e300cfaa583fde739 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
index 616d43e33ac137ed1c8a5d97e9b4d84d853dd767..60f79e0c11b0f2ae5e651c7f75802bba2fddbf06 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getTree } from '../../../api/components';
+import { Location, Router, withRouter } from '../../../components/hoc/withRouter';
 import { getBranchLikeQuery } from '../../../helpers/branches';
-import { withRouter, Router, Location } from '../../../components/hoc/withRouter';
 
 interface Props {
   branchLike?: T.BranchLike;
index 5c9f6fbd1af856da204e379562a0b3dc45e9fc86..438a17f0178a0453de56f5438895380249d58415 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { Location } from 'history';
+import * as React from 'react';
 import { scrollToElement } from 'sonar-ui-common/helpers/scrolling';
-import SourceViewer from '../../../components/SourceViewer/SourceViewer';
 import withKeyboardNavigation from '../../../components/hoc/withKeyboardNavigation';
+import SourceViewer from '../../../components/SourceViewer/SourceViewer';
 
 interface Props {
   branchLike?: T.BranchLike;
index 8ad174bf7c5293ef0ccb3053ca9823896de724d3..f00cf796cc76498b30877554ea001a3a1d79e771 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { App } from '../App';
+import { mockIssue, mockPullRequest, mockRouter } from '../../../../helpers/testMocks';
 import { retrieveComponent } from '../../utils';
-import { mockRouter, mockPullRequest, mockIssue } from '../../../../helpers/testMocks';
+import { App } from '../App';
 
 jest.mock('../../utils', () => ({
   retrieveComponent: jest.fn().mockResolvedValue({
index 222a2cd5f4df97980310fa13ff731c3d159c65f3..daddfa001b73db607cf7ca8a90d8e7d07a225b72 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { Component } from '../Component';
+import * as React from 'react';
 import { mockComponentMeasure, mockMetric } from '../../../../helpers/testMocks';
+import { Component } from '../Component';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 23a3a5019b1b075d33923374c09c36829d1d65bd..2f5a1c81a9ac84d930903f280d27166bf379b447 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { mockComponentMeasure, mockMeasure, mockMetric } from '../../../../helpers/testMocks';
 import ComponentMeasure from '../ComponentMeasure';
-import { mockMetric, mockMeasure, mockComponentMeasure } from '../../../../helpers/testMocks';
 
 it('renders correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index b8ca18167958ab39030de59fa7a91659ff286b3e..daac35be17a1e16b4f6c935fcb3d495e86e62336 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { mockComponentMeasure, mockMainBranch } from '../../../../helpers/testMocks';
 import ComponentName, { getTooltip, mostCommonPrefix, Props } from '../ComponentName';
-import { mockMainBranch, mockComponentMeasure } from '../../../../helpers/testMocks';
 
 describe('#getTooltip', () => {
   it('should correctly format component information', () => {
index 324e42760022df259f8914a2b76943c4dcf4e6a4..210667dcec33d6515c53e4e0e1a577f0ca97d4f5 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { Components } from '../Components';
 
 const COMPONENT = { key: 'foo', name: 'Foo', qualifier: 'TRK' };
index 1b8fd7e98debe4a4a39a11f5df4abba2169fa487..dcd6108d3d13245cea560a3a56595d26059ff1cc 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ComponentsHeader from '../ComponentsHeader';
+import * as React from 'react';
 import { mockComponent } from '../../../../helpers/testMocks';
+import ComponentsHeader from '../ComponentsHeader';
 
 it('renders correctly for projects', () => {
   expect(shallowRender()).toMatchSnapshot();
index 63adf57bde7e809210c18c86094a96919bcb2a17..fe238eae14ac69f4936ddc5688846b6b5c1dae9a 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { getBreadcrumbs, getChildren, getComponent } from '../../api/components';
+import { getBranchLikeQuery, isPullRequest, isShortLivingBranch } from '../../helpers/branches';
 import {
   addComponent,
-  getComponent as getComponentFromBucket,
-  addComponentChildren,
-  getComponentChildren,
   addComponentBreadcrumbs,
-  getComponentBreadcrumbs
+  addComponentChildren,
+  getComponent as getComponentFromBucket,
+  getComponentBreadcrumbs,
+  getComponentChildren
 } from './bucket';
-import { getChildren, getComponent, getBreadcrumbs } from '../../api/components';
-import { getBranchLikeQuery, isShortLivingBranch, isPullRequest } from '../../helpers/branches';
 
 const METRICS = [
   'ncloc',
index ebcc04a173f95340ce7a99effa3c4d9a3c44e280..28ceeea2d1bc2e464dd6ddfb8b5992046e334b1d 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
-import ActivationFormModal from './ActivationFormModal';
 import { Profile as BaseProfile } from '../../../api/quality-profiles';
+import ActivationFormModal from './ActivationFormModal';
 
 interface Props {
   activation?: T.RuleActivation;
index d5a4c8bfc0464d0b5138291aa0b533bf6cf77b22..8756fc7b5d2322a7de33bc763587aef1fcc44927 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import Select from 'sonar-ui-common/components/controls/Select';
-import SeverityHelper from '../../../components/shared/SeverityHelper';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { activateRule, Profile } from '../../../api/quality-profiles';
+import SeverityHelper from '../../../components/shared/SeverityHelper';
 import { SEVERITIES } from '../../../helpers/constants';
 import { sortProfiles } from '../../quality-profiles/utils';
 
index 71e8702cc60e2714bc3b756df336621a2b100d16..7cf1a71eab8a1cf4d7b50a24fab3493c9687afc9 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Facet, { BasicProps } from './Facet';
 import SeverityHelper from '../../../components/shared/SeverityHelper';
 import { SEVERITIES } from '../../../helpers/constants';
+import Facet, { BasicProps } from './Facet';
 
 interface Props extends BasicProps {
   disabled: boolean;
index 78624c9c3e97f9df5c15a748cc677d0825a1002c..291b64054f502dddf4512311a9294080c636d641 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as key from 'keymaster';
 import { keyBy } from 'lodash';
+import * as React from 'react';
 import { Helmet } from 'react-helmet';
 import { connect } from 'react-redux';
 import { withRouter, WithRouterProps } from 'react-router';
+import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
+import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import {
   addSideBarClass,
   addWhitePageClass,
@@ -30,51 +33,48 @@ import {
   removeWhitePageClass
 } from 'sonar-ui-common/helpers/pages';
 import { scrollToElement } from 'sonar-ui-common/helpers/scrolling';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
-import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
-import BulkChange from './BulkChange';
-import FacetsList from './FacetsList';
-import PageActions from './PageActions';
-import RuleDetails from './RuleDetails';
-import RuleListItem from './RuleListItem';
-import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
-import {
-  Facets,
-  Query,
-  parseQuery,
-  serializeQuery,
-  areQueriesEqual,
-  shouldRequestFacet,
-  FacetKey,
-  OpenFacets,
-  getServerFacet,
-  getAppFacet,
-  Actives,
-  Activation,
-  getOpen
-} from '../query';
+import { Profile, searchQualityProfiles } from '../../../api/quality-profiles';
+import { getRulesApp, searchRules } from '../../../api/rules';
 import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
-import ScreenPositionHelper from '../../../components/common/ScreenPositionHelper';
+import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
 import FiltersHeader from '../../../components/common/FiltersHeader';
-import { searchRules, getRulesApp } from '../../../api/rules';
-import { searchQualityProfiles, Profile } from '../../../api/quality-profiles';
+import ScreenPositionHelper from '../../../components/common/ScreenPositionHelper';
+import '../../../components/search-navigator.css';
+import { hasPrivateAccess } from '../../../helpers/organizations';
 import {
+  getAppState,
   getCurrentUser,
   getLanguages,
   getMyOrganizations,
-  Store,
-  getAppState
+  Store
 } from '../../../store/rootReducer';
 import {
-  shouldOpenStandardsFacet,
   shouldOpenSonarSourceSecurityFacet,
   shouldOpenStandardsChildFacet,
+  shouldOpenStandardsFacet,
   STANDARDS
 } from '../../issues/utils';
-import { hasPrivateAccess } from '../../../helpers/organizations';
-import '../../../components/search-navigator.css';
+import {
+  Activation,
+  Actives,
+  areQueriesEqual,
+  FacetKey,
+  Facets,
+  getAppFacet,
+  getOpen,
+  getServerFacet,
+  OpenFacets,
+  parseQuery,
+  Query,
+  serializeQuery,
+  shouldRequestFacet
+} from '../query';
 import '../styles.css';
+import BulkChange from './BulkChange';
+import FacetsList from './FacetsList';
+import PageActions from './PageActions';
+import RuleDetails from './RuleDetails';
+import RuleListItem from './RuleListItem';
 
 const PAGE_SIZE = 100;
 const LIMIT_BEFORE_LOAD_MORE = 5;
index bb464f86d386432f6e8700dee880af7c5a4a76b4..8b6642ed170b55654bf08f3645c27556d5132d69 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { injectIntl, InjectedIntlProps } from 'react-intl';
+import { InjectedIntlProps, injectIntl } from 'react-intl';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Query } from '../query';
 import DateInput from '../../../components/controls/DateInput';
 import FacetBox from '../../../components/facet/FacetBox';
 import FacetHeader from '../../../components/facet/FacetHeader';
 import { longFormatterOption } from '../../../components/intl/DateFormatter';
+import { Query } from '../query';
 
 interface Props {
   onChange: (changes: Partial<Query>) => void;
index 7f111e83c4d26d170400d98f469cab4144441cb5..12edc48e775d6514452b17308970a0e1d5264deb 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
-import BulkChangeModal from './BulkChangeModal';
-import { Query } from '../query';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Profile } from '../../../api/quality-profiles';
+import { Query } from '../query';
+import BulkChangeModal from './BulkChangeModal';
 
 interface Props {
   languages: T.Languages;
index 4785706906f841537b7f77f24664ed9c37d1de2b..23b8724aaabb48c1205484552cce5f3814f138c9 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
+import Select from 'sonar-ui-common/components/controls/Select';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import Select from 'sonar-ui-common/components/controls/Select';
+import { bulkActivateRules, bulkDeactivateRules, Profile } from '../../../api/quality-profiles';
 import { Query, serializeQuery } from '../query';
-import { Profile, bulkActivateRules, bulkDeactivateRules } from '../../../api/quality-profiles';
 
 interface Props {
   action: string;
index 5a0afefe1f74bb118d4cd3ebc19cafd3261dab96..eb41e4b5b89977b073ce0acc540ab410311244b4 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { csvEscape } from 'sonar-ui-common/helpers/csv';
-import { latinize } from 'sonar-ui-common/helpers/strings';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import Select from 'sonar-ui-common/components/controls/Select';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { csvEscape } from 'sonar-ui-common/helpers/csv';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { latinize } from 'sonar-ui-common/helpers/strings';
+import { createRule, updateRule } from '../../../api/rules';
 import MarkdownTips from '../../../components/common/MarkdownTips';
 import SeverityHelper from '../../../components/shared/SeverityHelper';
 import TypeHelper from '../../../components/shared/TypeHelper';
-import { createRule, updateRule } from '../../../api/rules';
-import { SEVERITIES, RULE_TYPES, RULE_STATUSES } from '../../../helpers/constants';
+import { RULE_STATUSES, RULE_TYPES, SEVERITIES } from '../../../helpers/constants';
 
 interface Props {
   customRule?: T.RuleDetails;
index 8c08b742f959a0eaee0f89b660a884dafdf3f733..b6b5e02778709a655e7fcaf7fc428cc233366867 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Facet, { BasicProps } from './Facet';
 import SeverityHelper from '../../../components/shared/SeverityHelper';
 import { SEVERITIES } from '../../../helpers/constants';
+import Facet, { BasicProps } from './Facet';
 
 export default class DefaultSeverityFacet extends React.PureComponent<BasicProps> {
   renderName = (severity: string) => <SeverityHelper severity={severity} />;
index bd7a381fef7fe022900e5cab394906539da93e0f..6614431042636617164637ccb98534f271758035 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { orderBy, without, sortBy } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import { orderBy, sortBy, without } from 'lodash';
+import * as React from 'react';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import { FacetKey } from '../query';
 import FacetBox from '../../../components/facet/FacetBox';
 import FacetHeader from '../../../components/facet/FacetHeader';
 import FacetItem from '../../../components/facet/FacetItem';
 import FacetItemsList from '../../../components/facet/FacetItemsList';
+import { FacetKey } from '../query';
 
 export interface BasicProps {
   onChange: (changes: T.Dict<string | string[] | undefined>) => void;
index 1eb17fa8cfd4a0c8c2b81c2d27e162faef49fb38..b64220cff734caaf424a3cb5762d08ea47b01a56 100644 (file)
@@ -18,6 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { Profile } from '../../../api/quality-profiles';
+import StandardFacet from '../../issues/sidebar/StandardFacet';
+import { Facets, OpenFacets, Query } from '../query';
 import ActivationSeverityFacet from './ActivationSeverityFacet';
 import AvailableSinceFacet from './AvailableSinceFacet';
 import DefaultSeverityFacet from './DefaultSeverityFacet';
@@ -29,9 +32,6 @@ import StatusFacet from './StatusFacet';
 import TagFacet from './TagFacet';
 import TemplateFacet from './TemplateFacet';
 import TypeFacet from './TypeFacet';
-import StandardFacet from '../../issues/sidebar/StandardFacet';
-import { Facets, Query, OpenFacets } from '../query';
-import { Profile } from '../../../api/quality-profiles';
 
 interface Props {
   facets?: Facets;
index 1904a3081b994fe79318683ca212dd9416bf0bc9..03c97e7f2e7dcc5113529d6903563f55cbcaff9d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { uniqBy } from 'lodash';
 import * as React from 'react';
 import { connect } from 'react-redux';
-import { uniqBy } from 'lodash';
-import { highlightTerm } from 'sonar-ui-common/helpers/search';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { BasicProps } from './Facet';
-import { getLanguages, Store } from '../../../store/rootReducer';
+import { highlightTerm } from 'sonar-ui-common/helpers/search';
 import ListStyleFacet from '../../../components/facet/ListStyleFacet';
+import { getLanguages, Store } from '../../../store/rootReducer';
+import { BasicProps } from './Facet';
 
 interface InstalledLanguage {
   key: string;
index e0486cafcebbde2f44ab1748d33227a9cf8badfd..886369de9fc98a7176b2a8e04c177adea9664a2b 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ReloadButton from 'sonar-ui-common/components/controls/ReloadButton';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import PageCounter from '../../../components/common/PageCounter';
 
 interface Props {
index 6197f0adf1a91f851addf54086230fcc6049113e..c50359b6325cd2131bc9d02255acea714874ed0f 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
-import { sortBy } from 'lodash';
 import * as classNames from 'classnames';
+import { sortBy } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Query, FacetKey } from '../query';
 import { Profile } from '../../../api/quality-profiles';
 import DocTooltip from '../../../components/docs/DocTooltip';
 import FacetBox from '../../../components/facet/FacetBox';
 import FacetHeader from '../../../components/facet/FacetHeader';
 import FacetItem from '../../../components/facet/FacetItem';
 import FacetItemsList from '../../../components/facet/FacetItemsList';
+import { FacetKey, Query } from '../query';
 
 interface Props {
   activation: boolean | undefined;
index fc6712657fb129af7a3c0c739007e50c953e3978..67e5c0b94cd5f1c1d435155a4a79a1198a72d7f8 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   onCancel: () => void;
index e3f82deade20b6c032919d9c815adb70872ec54e..11e09afa050b22f6db6d2e90af60843a8eccb2f4 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { connect } from 'react-redux';
-import Facet, { BasicProps } from './Facet';
 import { getLanguages, Store } from '../../../store/rootReducer';
+import Facet, { BasicProps } from './Facet';
 
 interface StateProps {
   referencedLanguages: T.Dict<{ key: string; name: string }>;
index c12426d713c8a802a77dbdef1fa3093e6f65931e..d6c901ee473e13777bac82323a5be3e57fd45a4e 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { Profile } from '../../../api/quality-profiles';
+import { deleteRule, getRuleDetails, updateRule } from '../../../api/rules';
+import DocTooltip from '../../../components/docs/DocTooltip';
+import { Activation, Query } from '../query';
 import CustomRuleButton from './CustomRuleButton';
 import RuleDetailsCustomRules from './RuleDetailsCustomRules';
 import RuleDetailsDescription from './RuleDetailsDescription';
@@ -29,10 +33,6 @@ import RuleDetailsIssues from './RuleDetailsIssues';
 import RuleDetailsMeta from './RuleDetailsMeta';
 import RuleDetailsParameters from './RuleDetailsParameters';
 import RuleDetailsProfiles from './RuleDetailsProfiles';
-import { Query, Activation } from '../query';
-import { Profile } from '../../../api/quality-profiles';
-import { getRuleDetails, deleteRule, updateRule } from '../../../api/rules';
-import DocTooltip from '../../../components/docs/DocTooltip';
 
 interface Props {
   allowCustomRules?: boolean;
index 6f88046a22dce3a46a9ffee811d8d6a25e2835fd..fa2607f9de517bf4a68074f13988d8358556f1ce 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { sortBy } from 'lodash';
 import * as React from 'react';
 import { Link } from 'react-router';
-import { sortBy } from 'lodash';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton';
-import CustomRuleButton from './CustomRuleButton';
-import { searchRules, deleteRule } from '../../../api/rules';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { deleteRule, searchRules } from '../../../api/rules';
 import SeverityHelper from '../../../components/shared/SeverityHelper';
 import { getRuleUrl } from '../../../helpers/urls';
+import CustomRuleButton from './CustomRuleButton';
 
 interface Props {
   canChange?: boolean;
index a5c4397451bae3f8fa64b99e4416d54ef5ee97c0..60acd29b35f2fc7542d9eda9780cefc3c0243bfb 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Button, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
-import RemoveExtendedDescriptionModal from './RemoveExtendedDescriptionModal';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { updateRule } from '../../../api/rules';
 import MarkdownTips from '../../../components/common/MarkdownTips';
+import RemoveExtendedDescriptionModal from './RemoveExtendedDescriptionModal';
 
 interface Props {
   canWrite: boolean | undefined;
index 86b9e3fb5c6b9676e29dbbd5db6f62ec5f761349..489d48a521be7a3ece7e19876d0091e07663e133 100644 (file)
  */
 import * as React from 'react';
 import { Link } from 'react-router';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import { getFacet } from '../../../api/issues';
-import { getIssuesUrl } from '../../../helpers/urls';
 import { withAppState } from '../../../components/hoc/withAppState';
+import { getIssuesUrl } from '../../../helpers/urls';
 
 interface Props {
   appState: Pick<T.AppState, 'branchesEnabled'>;
index da19cbce28803d7de9cacd423534ab6d0705add1..d48523fafb15720280c974af3aa6ab43578d9886 100644 (file)
  */
 import * as React from 'react';
 import { Link } from 'react-router';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import IssueTypeIcon from 'sonar-ui-common/components/icons/IssueTypeIcon';
 import LinkIcon from 'sonar-ui-common/components/icons/LinkIcon';
 import RuleScopeIcon from 'sonar-ui-common/components/icons/RuleScopeIcon';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import { PopupPlacement } from 'sonar-ui-common/components/ui/popups';
-import RuleDetailsTagsPopup from './RuleDetailsTagsPopup';
-import SimilarRulesFilter from './SimilarRulesFilter';
-import DateFormatter from '../../../components/intl/DateFormatter';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import DocTooltip from '../../../components/docs/DocTooltip';
+import DateFormatter from '../../../components/intl/DateFormatter';
 import SeverityHelper from '../../../components/shared/SeverityHelper';
 import TagsList from '../../../components/tags/TagsList';
-import { Query } from '../query';
 import { getRuleUrl } from '../../../helpers/urls';
+import { Query } from '../query';
+import RuleDetailsTagsPopup from './RuleDetailsTagsPopup';
+import SimilarRulesFilter from './SimilarRulesFilter';
 
 interface Props {
   canWrite: boolean | undefined;
index a79d58e48b09fbf10f988f4e1a4f2670e5237666..9ced9cd1497912bbe849689a3ff58c1c37588f96 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { filter } from 'lodash';
+import * as React from 'react';
 import { Link } from 'react-router';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton';
-import ActivationButton from './ActivationButton';
-import RuleInheritanceIcon from './RuleInheritanceIcon';
-import { Profile, deactivateRule, activateRule } from '../../../api/quality-profiles';
-import BuiltInQualityProfileBadge from '../../quality-profiles/components/BuiltInQualityProfileBadge';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { activateRule, deactivateRule, Profile } from '../../../api/quality-profiles';
 import InstanceMessage from '../../../components/common/InstanceMessage';
 import SeverityHelper from '../../../components/shared/SeverityHelper';
 import { getQualityProfileUrl } from '../../../helpers/urls';
+import BuiltInQualityProfileBadge from '../../quality-profiles/components/BuiltInQualityProfileBadge';
+import ActivationButton from './ActivationButton';
+import RuleInheritanceIcon from './RuleInheritanceIcon';
 
 interface Props {
   activations: T.RuleActivation[] | undefined;
index 32b0d109afb14418b2fe9ee6b6a94344c5457c48..859caf48fe7840ed08971c518e9bf9cb0e8f033d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { difference, uniq, without } from 'lodash';
 import * as React from 'react';
-import { without, uniq, difference } from 'lodash';
-import TagsSelector from '../../../components/tags/TagsSelector';
 import { getRuleTags } from '../../../api/rules';
+import TagsSelector from '../../../components/tags/TagsSelector';
 
 export interface Props {
   organization: string | undefined;
index 2acb0a63683dc75b0d4079c89569ea8db158eac7..f99010447e9e9c6998a627682c0e14e306d13956 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { Link } from 'react-router';
-import SeverityIcon from 'sonar-ui-common/components/icons/SeverityIcon';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import IssueTypeIcon from 'sonar-ui-common/components/icons/IssueTypeIcon';
+import SeverityIcon from 'sonar-ui-common/components/icons/SeverityIcon';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { deactivateRule, Profile } from '../../../api/quality-profiles';
+import TagsList from '../../../components/tags/TagsList';
+import { getRuleUrl } from '../../../helpers/urls';
+import { Activation, Query } from '../query';
 import ActivationButton from './ActivationButton';
 import RuleInheritanceIcon from './RuleInheritanceIcon';
 import SimilarRulesFilter from './SimilarRulesFilter';
-import { Activation, Query } from '../query';
-import { Profile, deactivateRule } from '../../../api/quality-profiles';
-import TagsList from '../../../components/tags/TagsList';
-import { getRuleUrl } from '../../../helpers/urls';
 
 interface Props {
   activation?: Activation;
index f61d9278356d10a4f6319d1d9a0aa2c4da4bfaec..83e73cdd6322ca92d0e4292e4fbedc0d5a653d7b 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
 import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import FilterIcon from 'sonar-ui-common/components/icons/FilterIcon';
 import TagsIcon from 'sonar-ui-common/components/icons/TagsIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
-import { Query } from '../query';
 import SeverityHelper from '../../../components/shared/SeverityHelper';
+import { Query } from '../query';
 
 interface Props {
   onFilterChange: (changes: Partial<Query>) => void;
index 6739f0b974f756bb030d12adb81fbe58ff21b391..cef5a46d7d428af2a359a202ae7a0fcc8ddc9628 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Facet, { BasicProps } from './Facet';
 import { RULE_STATUSES } from '../../../helpers/constants';
+import Facet, { BasicProps } from './Facet';
 
 export default class StatusFacet extends React.PureComponent<BasicProps> {
   renderName = (status: string) => translate('rules.status', status.toLowerCase());
index 9cab40f10456cf94e9d4f38982877ccc70a1d58a..1de9ab5c9d3d605ddad14e61c2681777d9867c40 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { uniq } from 'lodash';
 import * as React from 'react';
 import TagsIcon from 'sonar-ui-common/components/icons/TagsIcon';
-import { uniq } from 'lodash';
-import { highlightTerm } from 'sonar-ui-common/helpers/search';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { BasicProps } from './Facet';
+import { highlightTerm } from 'sonar-ui-common/helpers/search';
 import { getRuleTags } from '../../../api/rules';
 import { colors } from '../../../app/theme';
 import ListStyleFacet from '../../../components/facet/ListStyleFacet';
+import { BasicProps } from './Facet';
 
 interface Props extends BasicProps {
   organization: string | undefined;
index 8f02d5373c604c42a93f5e028654a71c005ad64d..69222f53f7d48088bd5b04484d0ddae25f378e6e 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Facet, { BasicProps } from './Facet';
 import DocTooltip from '../../../components/docs/DocTooltip';
+import Facet, { BasicProps } from './Facet';
 
 interface Props extends T.Omit<BasicProps, 'onChange' | 'values'> {
   onChange: (changes: { template: boolean | undefined }) => void;
index 5b9cd54183d6a8e40085d0183dd472e79e796bff..df732f79a2b56ea45d9e84ad4d38d74a8279b6a1 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ActivationFormModal from '../ActivationFormModal';
+import * as React from 'react';
 import { mockQualityProfile, mockRule } from '../../../../helpers/testMocks';
+import ActivationFormModal from '../ActivationFormModal';
 
 it('render correctly', () => {
   expect(
index 1a22fdf85b2849501162155cb997f7071aad3746..b96125caf16b02a689d5f11e67e04d1d79b3a765 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import BulkChange from '../BulkChange';
+import * as React from 'react';
 import { mockEvent, mockQualityProfile } from '../../../../helpers/testMocks';
+import BulkChange from '../BulkChange';
 
 const profile = mockQualityProfile({
   actions: {
index 6174a899e024b4c97d555bc4a4d399339bf357dc..0f7fde8e95a4557c9c56a71574d4e68e1f481e17 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import BulkChangeModal from '../BulkChangeModal';
+import * as React from 'react';
 import { mockQualityProfile } from '../../../../helpers/testMocks';
 import { Query } from '../../query';
+import BulkChangeModal from '../BulkChangeModal';
 
 it('render correctly', () => {
   expect(
index b5d624227816663891f4609c82c8e35a9d83af23..4a7ed8606c28822ed9681a74ffbff8352656159d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { submit, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import CustomRuleFormModal from '../CustomRuleFormModal';
 import { createRule } from '../../../../api/rules';
 import { mockRule } from '../../../../helpers/testMocks';
+import CustomRuleFormModal from '../CustomRuleFormModal';
 
 jest.mock('../../../../api/rules', () => ({ createRule: jest.fn() }));
 
index 51839b88b04adb88bc97e8beba26d5f06bfb26e8..f93e567ef0a44eeb4b00503333316992b40888d1 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import FacetsList from '../FacetsList';
+import * as React from 'react';
 import { Query } from '../../query';
+import FacetsList from '../FacetsList';
 
 it('should render correctly', () => {
   const wrapper = shallowRender();
index c3c858daf42d2bed789c13e95d17dc05590e1652..c721cedf1abd65bacd7d7cd731c4c76f3eea212d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import RuleDetails from '../RuleDetails';
 import { updateRule } from '../../../../api/rules';
+import RuleDetails from '../RuleDetails';
 
 jest.mock('../../../../api/rules', () => ({
   deleteRule: jest.fn(),
index 0a5891616e32b2ea84fe70f284533f6c580cde33..129abf0b08690a2af23ba54580dfb3dc3fa08813 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { click, change, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
+import * as React from 'react';
+import { change, click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import RuleDetailsDescription from '../RuleDetailsDescription';
 
 jest.mock('../../../../api/rules', () => ({
index 107b7cb18ae8a27828051997e6a45aa2a9c24ded..20fcbb5f74a2a50318c10c4a7d7906a27f1aa08c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { RuleDetailsIssues } from '../RuleDetailsIssues';
 import { getFacet } from '../../../../api/issues';
+import { RuleDetailsIssues } from '../RuleDetailsIssues';
 
 jest.mock('../../../../api/issues', () => ({
   getFacet: jest.fn().mockResolvedValue({
index 0b14669c104e4e1358569f3ea1bba79789ecf86b..03c096f88474bfc9a9de6b0ebdaf2debfce66892 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import RuleDetailsMeta from '../RuleDetailsMeta';
 import RuleDetailsTagsPopup from '../RuleDetailsTagsPopup';
 
index 1e017749c5431089c569d508b2cbf51561d173fe..06cae07dd56d1aa17b437f9b0b96c5fe701fe49e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import RuleDetailsParameters from '../RuleDetailsParameters';
+import * as React from 'react';
 import { mockRuleDetailsParameter } from '../../../../helpers/testMocks';
+import RuleDetailsParameters from '../RuleDetailsParameters';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index cd6e79e9afd49d3d73cdb1f9e56292de45df3292..4f05d8d49c25b2bff88b510e25ef8937af379ea9 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable import/order */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import RuleDetailsTagsPopup, { Props } from '../RuleDetailsTagsPopup';
 
 jest.mock('../../../../api/rules', () => ({
index cc06721c69212ab29cced307675b8f1845614815..589e92bcb21fc2cbe21587faf994f5e702b878c9 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import RuleListItem from '../RuleListItem';
+import * as React from 'react';
 import { mockEvent, mockRule } from '../../../../helpers/testMocks';
+import RuleListItem from '../RuleListItem';
 
 it('should render', () => {
   expect(shallowRender()).toMatchSnapshot();
index e3bd82cbbd21001fe324647ed7dfe5d633a163ae..1d1970c8bf32d65c5c837540b9df08fc76732eae 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import {
-  parseAsString,
-  parseAsArray,
-  serializeString,
-  serializeStringArray,
   cleanQuery,
-  queriesEqual,
+  parseAsArray,
   parseAsDate,
-  serializeDateShort,
   parseAsOptionalBoolean,
+  parseAsOptionalString,
+  parseAsString,
+  queriesEqual,
+  serializeDateShort,
   serializeOptionalBoolean,
-  parseAsOptionalString
+  serializeString,
+  serializeStringArray
 } from 'sonar-ui-common/helpers/query';
 
 export interface Query {
index 91f5e869529817847a5571c482bacb215abf920c..d38afd56a4b1904dca0abe5a451c89c5622749aa 100644 (file)
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { RouterState, RedirectFunction } from 'react-router';
+import { RedirectFunction, RouterState } from 'react-router';
 import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
 import { parseQuery, serializeQuery } from './query';
 
index 8063add6faf4fb8f9f4345120ed93a892b556fb5..c4a1ca98825e216484fa9a2ce6f9663e66e04bdc 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as key from 'keymaster';
 import { keyBy } from 'lodash';
+import * as React from 'react';
+import Helmet from 'react-helmet';
 import { connect } from 'react-redux';
 import { withRouter, WithRouterProps } from 'react-router';
-import Helmet from 'react-helmet';
+import {
+  getLocalizedMetricDomain,
+  translate,
+  translateWithParameters
+} from 'sonar-ui-common/helpers/l10n';
 import {
   addSideBarClass,
   addWhitePageClass,
   removeSideBarClass,
   removeWhitePageClass
 } from 'sonar-ui-common/helpers/pages';
+import { getMeasuresAndMeta } from '../../../api/measures';
+import { getAllMetrics } from '../../../api/metrics';
+import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
+import ScreenPositionHelper from '../../../components/common/ScreenPositionHelper';
+import { enhanceMeasure } from '../../../components/measure/utils';
+import '../../../components/search-navigator.css';
 import {
-  getLocalizedMetricDomain,
-  translateWithParameters,
-  translate
-} from 'sonar-ui-common/helpers/l10n';
-import MeasureContent from './MeasureContent';
-import MeasuresEmpty from './MeasuresEmpty';
-import MeasureOverviewContainer from './MeasureOverviewContainer';
+  getBranchLikeQuery,
+  isPullRequest,
+  isSameBranchLike,
+  isShortLivingBranch
+} from '../../../helpers/branches';
+import { getLeakPeriod } from '../../../helpers/periods';
+import { fetchBranchStatus } from '../../../store/rootActions';
 import Sidebar from '../sidebar/Sidebar';
-import ScreenPositionHelper from '../../../components/common/ScreenPositionHelper';
+import '../style.css';
 import {
-  isProjectOverview,
-  hasBubbleChart,
-  parseQuery,
-  serializeQuery,
-  Query,
-  hasFullMeasures,
   getMeasuresPageMetricKeys,
   groupByDomains,
-  sortMeasures,
+  hasBubbleChart,
+  hasFullMeasures,
+  hasTree,
   hasTreemap,
-  hasTree
+  isProjectOverview,
+  parseQuery,
+  Query,
+  serializeQuery,
+  sortMeasures
 } from '../utils';
-import {
-  isSameBranchLike,
-  getBranchLikeQuery,
-  isShortLivingBranch,
-  isPullRequest
-} from '../../../helpers/branches';
-import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
-import '../../../components/search-navigator.css';
-import '../style.css';
-import { getAllMetrics } from '../../../api/metrics';
-import { getMeasuresAndMeta } from '../../../api/measures';
-import { enhanceMeasure } from '../../../components/measure/utils';
-import { getLeakPeriod } from '../../../helpers/periods';
-import { fetchBranchStatus } from '../../../store/rootActions';
+import MeasureContent from './MeasureContent';
+import MeasureOverviewContainer from './MeasureOverviewContainer';
+import MeasuresEmpty from './MeasuresEmpty';
 
 interface Props extends WithRouterProps {
   branchLike?: T.BranchLike;
index d5362273356910e87ef4d830f366466af6055fe5..869051c03dd16892113344b1fe6c0fb8fe5808fc 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { collapsePath, limitComponentName } from 'sonar-ui-common/helpers/path';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { collapsePath, limitComponentName } from 'sonar-ui-common/helpers/path';
 
 interface Props {
   canBrowse: boolean;
index e7202a2a15c850b594e2db62654b9b5923e2e63d..f6878654a746b4f9416b362d45df0c5443f377ac 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as key from 'keymaster';
-import Breadcrumb from './Breadcrumb';
+import * as React from 'react';
 import { getBreadcrumbs } from '../../../api/components';
 import { getBranchLikeQuery, isSameBranchLike } from '../../../helpers/branches';
+import Breadcrumb from './Breadcrumb';
 
 interface Props {
   backToFirst: boolean;
index dcf5f5d089d522e56906f75a4416cf71055f8c15..d5dcd6bdb7f820b633dc1dc0d85fcdc07b149d3e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
 import * as differenceInDays from 'date-fns/difference_in_days';
-import { injectIntl, InjectedIntlProps } from 'react-intl';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
+import { InjectedIntlProps, injectIntl } from 'react-intl';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import DateFromNow from '../../../components/intl/DateFromNow';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import DateFormatter, { longFormatterOption } from '../../../components/intl/DateFormatter';
+import DateFromNow from '../../../components/intl/DateFromNow';
 import DateTimeFormatter, { formatterOption } from '../../../components/intl/DateTimeFormatter';
-import { getPeriodLabel, getPeriodDate } from '../../../helpers/periods';
+import { getPeriodDate, getPeriodLabel } from '../../../helpers/periods';
 
 interface Props {
   className?: string;
index 8d79d1b875e10777cf32141cad9282b13d187b23..6957a37935b6b740b89a46e824584c657073a8aa 100644 (file)
@@ -22,21 +22,21 @@ import { InjectedRouter } from 'react-router';
 import PageActions from 'sonar-ui-common/components/ui/PageActions';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { RequestData } from 'sonar-ui-common/helpers/request';
-import Breadcrumbs from './Breadcrumbs';
-import MeasureContentHeader from './MeasureContentHeader';
-import MeasureHeader from './MeasureHeader';
-import MeasureViewSelect from './MeasureViewSelect';
-import { complementary } from '../config/complementary';
+import { getComponentTree } from '../../../api/components';
+import { getMeasures } from '../../../api/measures';
 import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
 import SourceViewer from '../../../components/SourceViewer/SourceViewer';
+import { getBranchLikeQuery, isSameBranchLike } from '../../../helpers/branches';
+import { getPeriodValue, isDiffMetric } from '../../../helpers/measures';
+import { getProjectUrl } from '../../../helpers/urls';
+import { complementary } from '../config/complementary';
 import FilesView from '../drilldown/FilesView';
 import TreeMapView from '../drilldown/TreeMapView';
-import { Query, View, isFileType, enhanceComponent, isViewType } from '../utils';
-import { getComponentTree } from '../../../api/components';
-import { isSameBranchLike, getBranchLikeQuery } from '../../../helpers/branches';
-import { isDiffMetric, getPeriodValue } from '../../../helpers/measures';
-import { getProjectUrl } from '../../../helpers/urls';
-import { getMeasures } from '../../../api/measures';
+import { enhanceComponent, isFileType, isViewType, Query, View } from '../utils';
+import Breadcrumbs from './Breadcrumbs';
+import MeasureContentHeader from './MeasureContentHeader';
+import MeasureHeader from './MeasureHeader';
+import MeasureViewSelect from './MeasureViewSelect';
 
 interface Props {
   branchLike?: T.BranchLike;
index 931f45bc37424f7cd3c354b4541e1179bcace30f..328e5f7c2134d2ce482630c133778dcfe9dda18f 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { Link } from 'react-router';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import HistoryIcon from 'sonar-ui-common/components/icons/HistoryIcon';
 import IssueTypeIcon from 'sonar-ui-common/components/icons/IssueTypeIcon';
-import { Link } from 'react-router';
 import { getLocalizedMetricName, translate } from 'sonar-ui-common/helpers/l10n';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import LeakPeriodLegend from './LeakPeriodLegend';
 import LanguageDistributionContainer from '../../../components/charts/LanguageDistributionContainer';
 import Measure from '../../../components/measure/Measure';
-import { getMeasureHistoryUrl } from '../../../helpers/urls';
 import { isDiffMetric } from '../../../helpers/measures';
+import { getMeasureHistoryUrl } from '../../../helpers/urls';
 import { hasFullMeasures } from '../utils';
+import LeakPeriodLegend from './LeakPeriodLegend';
 
 interface Props {
   branchLike?: T.BranchLike;
index 1aa1f9e0d35fa4eb3fb76063b34c83e09141ac7f..6e2d3ff6132749d8e04c7f1f41b69b863e9cd42c 100644 (file)
 import * as React from 'react';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import PageActions from 'sonar-ui-common/components/ui/PageActions';
-import Breadcrumbs from './Breadcrumbs';
-import LeakPeriodLegend from './LeakPeriodLegend';
-import MeasureContentHeader from './MeasureContentHeader';
+import { getComponentLeaves } from '../../../api/components';
 import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
-import BubbleChart from '../drilldown/BubbleChart';
 import SourceViewer from '../../../components/SourceViewer/SourceViewer';
-import { getComponentLeaves } from '../../../api/components';
-import { enhanceComponent, getBubbleMetrics, isFileType, hasFullMeasures } from '../utils';
 import { getBranchLikeQuery, isSameBranchLike } from '../../../helpers/branches';
+import BubbleChart from '../drilldown/BubbleChart';
+import { enhanceComponent, getBubbleMetrics, hasFullMeasures, isFileType } from '../utils';
+import Breadcrumbs from './Breadcrumbs';
+import LeakPeriodLegend from './LeakPeriodLegend';
+import MeasureContentHeader from './MeasureContentHeader';
 
 interface Props {
   branchLike?: T.BranchLike;
index 647f9f838c02093ca1c956f19524b50ee3b80c00..335367d92354172bbe029c57f795c172f2098e3c 100644 (file)
  */
 import * as React from 'react';
 import { InjectedRouter } from 'react-router';
-import MeasureOverview from './MeasureOverview';
 import { getComponentShow } from '../../../api/components';
+import { getBranchLikeQuery, isSameBranchLike } from '../../../helpers/branches';
 import { getProjectUrl } from '../../../helpers/urls';
 import { isViewType, Query } from '../utils';
-import { getBranchLikeQuery, isSameBranchLike } from '../../../helpers/branches';
+import MeasureOverview from './MeasureOverview';
 
 interface Props {
   branchLike?: T.BranchLike;
index e95e4a75b48c25504b99e17e0dd676ac35fd90b1..949d7453716ebdfe664ca6bcd1d566f45c145430 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import TreemapIcon from 'sonar-ui-common/components/icons/TreemapIcon';
+import Select from 'sonar-ui-common/components/controls/Select';
 import ListIcon from 'sonar-ui-common/components/icons/ListIcon';
 import TreeIcon from 'sonar-ui-common/components/icons/TreeIcon';
+import TreemapIcon from 'sonar-ui-common/components/icons/TreemapIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Select from 'sonar-ui-common/components/controls/Select';
 import { hasList, hasTree, hasTreemap, View } from '../utils';
 
 interface Props {
index 1fef9c3cd94acd5b3f8ab197616b7f9537dff2d4..817f237ff988c8ca8ce41fb25e2f2b00e4e623ac 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { App } from '../App';
 import { getMeasuresAndMeta } from '../../../../api/measures';
 import {
-  mockPullRequest,
-  mockMainBranch,
-  mockRouter,
-  mockLocation,
   mockComponent,
-  mockIssue
+  mockIssue,
+  mockLocation,
+  mockMainBranch,
+  mockPullRequest,
+  mockRouter
 } from '../../../../helpers/testMocks';
+import { App } from '../App';
 
 jest.mock('../../../../api/metrics', () => ({
   getAllMetrics: jest.fn().mockResolvedValue([
index d735584c4f4922963c25a013d7770570bef68f4a..3e1527a94606805725de1af3d701765d0721d11b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Breadcrumb from '../Breadcrumb';
 
 it('should show the last element without clickable link', () => {
index 7830825357aa8b4c0c9904ca615c9e561680afb4..3d907df00ad8127e91b07f71fb4fdbbed9015d21 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { mount } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import Breadcrumbs from '../Breadcrumbs';
 import { getBreadcrumbs } from '../../../../api/components';
+import Breadcrumbs from '../Breadcrumbs';
 
 jest.mock('../../../../api/components', () => ({
   getBreadcrumbs: jest
index b71cc7bb23b131a2c6934866733d9b01fe437c98..3d1603640c6e09a6a4429db86013d7b1e765254d 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as differenceInDays from 'date-fns/difference_in_days';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { InjectedIntlProps } from 'react-intl';
 import { LeakPeriodLegend } from '../LeakPeriodLegend';
 
index fce8e72cec1d09bbf956bfb7f94164de08ab68cd..4f039020ded244ecf94b622984a6af2224a20a14 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import MeasureContent from '../MeasureContent';
 import { getComponentTree } from '../../../../api/components';
 import { mockComponentMeasure, mockRouter } from '../../../../helpers/testMocks';
+import MeasureContent from '../MeasureContent';
 
 jest.mock('../../../../api/components', () => {
   const { mockComponentMeasure } = require.requireActual('../../../../helpers/testMocks');
index 4fdc255b5a330ccdaa0cf59c74599526317b2055..6be137a7735255612483050879e2bd4f3011c2e8 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import MeasureHeader from '../MeasureHeader';
 
 const METRIC = {
index d74cdea20b6707180bf12f4f872c94b86af391ff..b5628b5ea9af5a07e8c409e092135121fe0a2e3f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import MeasureViewSelect from '../MeasureViewSelect';
 
 it('should display correctly with treemap option', () => {
index 3a521540f77f3cbbe7cb61265df543a55380547a..18ed38e20cdb38f106815015d90c058eb7040e58 100644 (file)
@@ -18,7 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { isDefined } from 'sonar-ui-common/helpers/types';
+import OriginalBubbleChart from 'sonar-ui-common/components/charts/BubbleChart';
+import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import {
   getLocalizedMetricDomain,
   getLocalizedMetricName,
@@ -26,13 +27,12 @@ import {
   translateWithParameters
 } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import OriginalBubbleChart from 'sonar-ui-common/components/charts/BubbleChart';
-import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
-import EmptyResult from './EmptyResult';
+import { isDefined } from 'sonar-ui-common/helpers/types';
 import ColorRatingsLegend from '../../../components/charts/ColorRatingsLegend';
+import { RATING_COLORS } from '../../../helpers/constants';
 import { isDiffMetric } from '../../../helpers/measures';
 import { getBubbleMetrics, getBubbleYDomain, isProjectOverview } from '../utils';
-import { RATING_COLORS } from '../../../helpers/constants';
+import EmptyResult from './EmptyResult';
 
 const HEIGHT = 500;
 
index c69b6b89f6cc879008203766f10489e06ba01c70..6e29e3a9095f462dc3ec483f477837d5e759e80b 100644 (file)
@@ -22,8 +22,8 @@ import { Link } from 'react-router';
 import LinkIcon from 'sonar-ui-common/components/icons/LinkIcon';
 import LongLivingBranchIcon from 'sonar-ui-common/components/icons/LongLivingBranchIcon';
 import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
-import { splitPath } from 'sonar-ui-common/helpers/path';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import { splitPath } from 'sonar-ui-common/helpers/path';
 import { getPathUrlAsString } from 'sonar-ui-common/helpers/urls';
 import {
   getBranchLikeUrl,
index 36f9d9445c6821b69fc64aaa5f9a020469e393fd..cba704176e3eb889e7121d2803a7fa417b48d124 100644 (file)
  */
 import * as React from 'react';
 import { getLocalizedMetricName } from 'sonar-ui-common/helpers/l10n';
-import ComponentsListRow from './ComponentsListRow';
-import EmptyResult from './EmptyResult';
 import { complementary } from '../config/complementary';
 import { View } from '../utils';
+import ComponentsListRow from './ComponentsListRow';
+import EmptyResult from './EmptyResult';
 
 interface Props {
   branchLike?: T.BranchLike;
index eba1ed5536aa62b172fd3fc292f42d84c8f734cc..54ebdbb38645d3d394b0bf16a83443ddedf3b6e1 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
+import { View } from '../utils';
 import ComponentCell from './ComponentCell';
 import MeasureCell from './MeasureCell';
-import { View } from '../utils';
 
 interface Props {
   branchLike?: T.BranchLike;
index 2093f61838047e1665cebd98126420e3a7369f4b..d04308c887e09679e23daa8a582c3585a6442cc7 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as key from 'keymaster';
 import { throttle } from 'lodash';
-import { scrollToElement } from 'sonar-ui-common/helpers/scrolling';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { formatMeasure } from 'sonar-ui-common/helpers/measures';
+import * as React from 'react';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
-import ComponentsList from './ComponentsList';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { formatMeasure } from 'sonar-ui-common/helpers/measures';
+import { scrollToElement } from 'sonar-ui-common/helpers/scrolling';
+import { isDiffMetric, isPeriodBestValue } from '../../../helpers/measures';
 import { View } from '../utils';
-import { isPeriodBestValue, isDiffMetric } from '../../../helpers/measures';
+import ComponentsList from './ComponentsList';
 
 interface Props {
   branchLike?: T.BranchLike;
index d99a04eaa1842dd16d58ac7f5ec5bb1466f6fb66..51e8a668c0e1bb00607efd52c1114d9e294ddf28 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { scaleLinear, scaleOrdinal } from 'd3-scale';
 import * as React from 'react';
-import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import { isDefined } from 'sonar-ui-common/helpers/types';
-import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
 import { AutoSizer } from 'react-virtualized/dist/commonjs/AutoSizer';
-import { scaleLinear, scaleOrdinal } from 'd3-scale';
 import ColorGradientLegend from 'sonar-ui-common/components/charts/ColorGradientLegend';
 import TreeMap, { TreeMapItem } from 'sonar-ui-common/components/charts/TreeMap';
+import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
 import {
+  getLocalizedMetricName,
   translate,
-  translateWithParameters,
-  getLocalizedMetricName
+  translateWithParameters
 } from 'sonar-ui-common/helpers/l10n';
-import EmptyResult from './EmptyResult';
+import { formatMeasure } from 'sonar-ui-common/helpers/measures';
+import { isDefined } from 'sonar-ui-common/helpers/types';
 import { colors } from '../../../app/theme';
 import ColorBoxLegend from '../../../components/charts/ColorBoxLegend';
 import { isDiffMetric } from '../../../helpers/measures';
+import EmptyResult from './EmptyResult';
 
 interface Props {
   branchLike?: T.BranchLike;
index 6139ea9bee47c90c0d130a480d4c3c90c528db3e..ea82507c6353b12c1fdf6e18c639cba1c577a7a1 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ComponentsList from '../ComponentsList';
 
 const COMPONENTS = [
index ae2682cefc991bc963b6a3f749b564471875f37e..05f1200bf93039227e54887ec61fe73ec2473faf 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import FilesView from '../FilesView';
 
 const COMPONENTS = [
index 0cfdb1812f7dec1c970dc940860034293e171b35..2490d4881a1b5c4c771163d5899b13b775366e8b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import MeasureCell from '../MeasureCell';
 
 describe('should correctly take the value', () => {
index 3ef44ca291bdd7258b3337b9750ff9fe98468751..be867e09208901f85c0cdf2d59a02da257de9be3 100644 (file)
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { RouterState, RedirectFunction } from 'react-router';
+import { RedirectFunction, RouterState } from 'react-router';
 import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
 
 const routes = [
index 00945acdf36fc593c01a8173eed3d8bb327c17af..132bf84e911367bee2215aba3c5eb7e7b3717391 100644 (file)
@@ -23,10 +23,9 @@ import {
   getLocalizedCategoryMetricName,
   getLocalizedMetricDomain,
   getLocalizedMetricName,
-  translate,
-  hasMessage
+  hasMessage,
+  translate
 } from 'sonar-ui-common/helpers/l10n';
-import FacetMeasureValue from './FacetMeasureValue';
 import FacetBox from '../../../components/facet/FacetBox';
 import FacetHeader from '../../../components/facet/FacetHeader';
 import FacetItem from '../../../components/facet/FacetItem';
@@ -38,6 +37,7 @@ import {
   hasFacetStat,
   sortMeasures
 } from '../utils';
+import FacetMeasureValue from './FacetMeasureValue';
 
 interface Props {
   domain: { name: string; measures: T.MeasureEnhanced[] };
index 1d370f3dd723075793567846c58234f3522b9af3..619637f7accd2444d4f1afc2713757468f020ac2 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import Measure from '../../../components/measure/Measure';
 import { isDiffMetric } from '../../../helpers/measures';
 
index 8a2f8e7e5810447c95e713ed30b971ba231dcd21..2cc577c46800a568f7667d968e2b0ec331c16bd4 100644 (file)
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import ProjectOverviewFacet from './ProjectOverviewFacet';
-import DomainFacet from './DomainFacet';
 import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
 import { groupByDomains, KNOWN_DOMAINS, PROJECT_OVERVEW, Query } from '../utils';
+import DomainFacet from './DomainFacet';
+import ProjectOverviewFacet from './ProjectOverviewFacet';
 
 interface Props {
   measures: T.MeasureEnhanced[];
index 914d0dfa059ad38ad0feb2394f9e9b751d5280e5..e7f3f973e3d2d2084ffa7bc39c3b8a58cbcd3e43 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import DomainFacet from '../DomainFacet';
 
 it('should display facet item list', () => {
index 48fdd522edb6fed3969c8330f623128f243c44e9..d3ccf962b7a4029d9afe45343dedb6327ad58579 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import FacetMeasureValue from '../FacetMeasureValue';
 
 const MEASURE = {
index d9c82af64f0a20b6de2eb45c47701208610a2a60..3d7c331d5d88a35867c5cd2bc3f1f963f6273665 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Sidebar from '../Sidebar';
 
 it('should display two facets', () => {
index afeae11b6eb15ad4f79017973e930c8fc3358a47..1195b0a9681c1b459041e89b115232d41f7ed552 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { groupBy, memoize, sortBy, toPairs } from 'lodash';
-import { cleanQuery, parseAsString, serializeString } from 'sonar-ui-common/helpers/query';
 import { getLocalizedMetricName } from 'sonar-ui-common/helpers/l10n';
-import { domains } from './config/domains';
-import { bubbles } from './config/bubbles';
+import { cleanQuery, parseAsString, serializeString } from 'sonar-ui-common/helpers/query';
 import { enhanceMeasure } from '../../components/measure/utils';
 import {
   isLongLivingBranch,
@@ -30,6 +28,8 @@ import {
   isShortLivingBranch
 } from '../../helpers/branches';
 import { getDisplayMetrics, isDiffMetric } from '../../helpers/measures';
+import { bubbles } from './config/bubbles';
+import { domains } from './config/domains';
 
 export type View = 'list' | 'tree' | 'treemap';
 
index c66055cbe3083d87c9e192298aee03570dbb76c6..b03217392a530e4b528a234fe26f7d78b204ff55 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import RadioCard, { RadioCardProps } from 'sonar-ui-common/components/controls/RadioCard';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatPrice } from '../organization/utils';
 
 interface Props extends RadioCardProps {
index ec1da554e809c3b46bb8848f33bc468b64697a88..201fc674290c7fa36ebb41bf540c171f6047fe30 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { isWebUri } from 'valid-url';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import ValidationInput from 'sonar-ui-common/components/controls/ValidationInput';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { isWebUri } from 'valid-url';
 import OrganizationAvatar from '../../../components/common/OrganizationAvatar';
 
 interface Props {
index f8d4d04ab5d2488b091514a4d29f076ec578eba9..9d8657d33ebbc711f366f669858a1d64070c0772 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
 import { debounce } from 'lodash';
+import * as React from 'react';
 import ValidationInput from 'sonar-ui-common/components/controls/ValidationInput';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getHostUrl } from 'sonar-ui-common/helpers/urls';
index eb17508806ec2ebe8dc5abbbfc2cc705491c94db..af551bf825b5a0c338da214c4f5cb6eff1a42086 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
+import * as React from 'react';
+import Select from 'sonar-ui-common/components/controls/Select';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import Select from 'sonar-ui-common/components/controls/Select';
 import { sanitizeAlmId } from '../../../helpers/almIntegrations';
 
 interface Props {
index e9c2685bc7490d4dc06ca1b61e2d4a133223cb9e..813fb0e309c3fc00ef5234eed4c446774140d44e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { isWebUri } from 'valid-url';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import ValidationInput from 'sonar-ui-common/components/controls/ValidationInput';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { isWebUri } from 'valid-url';
 
 interface Props {
   initialValue?: string;
index eb3bc5c6cb1a3ddee046a0c4802974cde56013cc..f54f0b51e172c0f27f283815716fa57176751449 100644 (file)
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { Link } from 'react-router';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import RadioCard, { RadioCardProps } from 'sonar-ui-common/components/controls/RadioCard';
-import UpgradeOrganizationAdvantages from './UpgradeOrganizationAdvantages';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatPrice } from '../organization/utils';
+import UpgradeOrganizationAdvantages from './UpgradeOrganizationAdvantages';
 
 interface Props extends RadioCardProps {
   isRecommended: boolean;
index e35fa1ce458e678f00c201600c6f515e6c891cd2..0fd857b8b2d911e6462a124dfdb8da1053556c68 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
 import { debounce } from 'lodash';
+import * as React from 'react';
 import ValidationInput from 'sonar-ui-common/components/controls/ValidationInput';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { doesComponentExists } from '../../../api/components';
index 2ca5f92a05082fa2fe5c0000ad56175aca7dd6b0..355c67814d8369a3afe186d7797492ddc1c0251a 100644 (file)
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { Link } from 'react-router';
-import { translate, hasMessage } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import RadioCard from 'sonar-ui-common/components/controls/RadioCard';
+import { hasMessage, translate } from 'sonar-ui-common/helpers/l10n';
+import { getSubscriptionPlans } from '../../../api/billing';
+import { formatPrice } from '../organization/utils';
 import UpgradeOrganizationAdvantages from './UpgradeOrganizationAdvantages';
 import UpgradeOrganizationModal from './UpgradeOrganizationModal';
-import { formatPrice } from '../organization/utils';
-import { getSubscriptionPlans } from '../../../api/billing';
 
 interface Props {
   className?: string;
index b1619c23e7ee14c3d2ddcef8d5e095d91b6d43ca..71e5203ac8c82ef9d31c769561d358bfb7dace51 100644 (file)
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import BillingFormShim from './BillingFormShim';
-import UpgradeOrganizationAdvantages from './UpgradeOrganizationAdvantages';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { withCurrentUser } from '../../../components/hoc/withCurrentUser';
 import { getExtensionStart } from '../../../helpers/extensions';
+import BillingFormShim from './BillingFormShim';
+import UpgradeOrganizationAdvantages from './UpgradeOrganizationAdvantages';
 
 const BillingForm = withCurrentUser(BillingFormShim);
 
index ed49c90dade35eb46f2ac04339c3241aa4ac8c9b..55217b9e78105fc5156c9198d677b1bb763915c0 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import BillingFormShim from '../BillingFormShim';
 
 beforeAll(() => {
index 3c4cfec0d48d4ac1a797188146f45d30f9e34a47..4bf54f558889d7e81ba9651d593b4b389b695988 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import FreeCardPlan from '../FreeCardPlan';
 
 it('should render', () => {
index d033e5aa8e8bfc0a2eea75027e42b3e6ede14ae8..51e22f5b958ce75bb57af2770b3c6316059784af 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import OrganizationAvatarInput from '../OrganizationAvatarInput';
 
 it('should render correctly', () => {
index 17b4a49ec73709f82648a2608282dee434ab89fd..3ff9010ca64fe380d4ed0de44df40dcbcb57abdc 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import OrganizationKeyInput from '../OrganizationKeyInput';
 import { getOrganization } from '../../../../api/organizations';
+import OrganizationKeyInput from '../OrganizationKeyInput';
 
 jest.mock('../../../../api/organizations', () => ({
   getOrganization: jest.fn().mockResolvedValue(undefined)
index 6d607b0117dbab830d98e71508615f920090c2cf..1635c547bcd1db1cbe459275bbb35835d33b7ef3 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import OrganizationSelect, { getOptionRenderer } from '../OrganizationSelect';
+import * as React from 'react';
 import { mockOrganization, mockOrganizationWithAlm } from '../../../../helpers/testMocks';
+import OrganizationSelect, { getOptionRenderer } from '../OrganizationSelect';
 
 const organizations = [mockOrganization(), mockOrganizationWithAlm({ key: 'bar', name: 'Bar' })];
 
index 17d9613cfc53a8e22c19ce46c3a8a80db2db2270..9dd3916e1036c49e992825e978cc12decf1ae8a9 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import OrganizationUrlInput from '../OrganizationUrlInput';
 
 it('should render correctly', () => {
index b775c18aca5a10b10e0b2e952e0c1144b91c8a90..d5a21e448dc236e8f715e934358de066ca217651 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import PaidCardPlan from '../PaidCardPlan';
 
 it('should render correctly', () => {
index 3670a4f08dcf2a24f6b4ff0422b6474584a80b5e..4f0214d7e9abc6a4ba9e43e8ee2373a1aa2c9173 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import ProjectKeyInput from '../ProjectKeyInput';
 
index 0c41d59c758773bd5810ae6f883ff7d8eb6ef245..7537dee4bfda7d1310d49cf58cf2977ee1c5f2d1 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import UpgradeOrganizationAdvantages from '../UpgradeOrganizationAdvantages';
 
 it('should render correctly ', () => {
index e93f695e01308df9d9a1570ddf1e2684dd7f47d6..bfa506c07ed3e6d925ba489a07827e8dec7c872e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { hasMessage } from 'sonar-ui-common/helpers/l10n';
-import { waitAndUpdate, click } from 'sonar-ui-common/helpers/testUtils';
-import UpgradeOrganizationBox from '../UpgradeOrganizationBox';
+import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import { getSubscriptionPlans } from '../../../../api/billing';
+import UpgradeOrganizationBox from '../UpgradeOrganizationBox';
 
 jest.mock('sonar-ui-common/helpers/l10n', () => ({
   ...jest.requireActual('sonar-ui-common/helpers/l10n'),
index d5767eb0b16adcfbf8652acc4f81a0bc089bfa65..c3e432409feabdf98474f91e7795e046320968e1 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import UpgradeOrganizationModal from '../UpgradeOrganizationModal';
 import { getExtensionStart } from '../../../../helpers/extensions';
+import UpgradeOrganizationModal from '../UpgradeOrganizationModal';
 
 jest.mock('../../../../helpers/extensions', () => ({
   getExtensionStart: jest.fn().mockResolvedValue(undefined)
index d43f7e2219e93c9c034797c915f73c6ad0b02fd2..3250c08ba69d6ee8d440cbf805d49659fb73a1ac 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { sanitizeAlmId } from '../../../helpers/almIntegrations';
 
 export default function AlmApplicationInstalling({ almKey }: { almKey?: string }) {
index 2e01467abc7537d4a012bb4cc554e4af40a63957..d3933484963dbadf822fefba930a8783cfb5336d 100644 (file)
  */
 import * as React from 'react';
 import { Link } from 'react-router';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { SubmitButton } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import OrganizationSelect from '../components/OrganizationSelect';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { isGithub } from '../../../helpers/almIntegrations';
+import OrganizationSelect from '../components/OrganizationSelect';
 
 interface Props {
   almKey: string;
index ba1fb55e851246e7270f8525844d12be9e0918ae..4e3982833fb18aa6594915708cbd2cf4485b31a0 100644 (file)
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
 import { ClearButton } from 'sonar-ui-common/components/controls/buttons';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import RadioToggle from 'sonar-ui-common/components/controls/RadioToggle';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
+import { bindAlmOrganization } from '../../../api/alm-integration';
+import { getAlmMembersUrl, isGithub, sanitizeAlmId } from '../../../helpers/almIntegrations';
 import AutoOrganizationBind from './AutoOrganizationBind';
 import OrganizationDetailsForm from './OrganizationDetailsForm';
 import OrganizationDetailsStep from './OrganizationDetailsStep';
 import PlanStep from './PlanStep';
 import { Step } from './utils';
-import { bindAlmOrganization } from '../../../api/alm-integration';
-import { sanitizeAlmId, getAlmMembersUrl, isGithub } from '../../../helpers/almIntegrations';
 
 enum Filters {
   Bind = 'bind',
index 0fba53427c9c9a92ea5f88f0ae099f802a5bf27b..01562f9704a66e3ac29831a2e6eee26429a92e72 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
 import * as differenceInMinutes from 'date-fns/difference_in_minutes';
 import { times } from 'lodash';
-import { connect } from 'react-redux';
+import * as React from 'react';
 import { Helmet } from 'react-helmet';
+import { connect } from 'react-redux';
 import { withRouter, WithRouterProps } from 'react-router';
+import Tabs from 'sonar-ui-common/components/controls/Tabs';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { addWhitePageClass, removeWhitePageClass } from 'sonar-ui-common/helpers/pages';
 import { get, remove } from 'sonar-ui-common/helpers/storage';
 import { slugify } from 'sonar-ui-common/helpers/strings';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import Tabs from 'sonar-ui-common/components/controls/Tabs';
-import { createOrganization } from './actions';
-import {
-  ORGANIZATION_IMPORT_REDIRECT_TO_PROJECT_TIMESTAMP,
-  parseQuery,
-  serializeQuery,
-  Query,
-  ORGANIZATION_IMPORT_BINDING_IN_PROGRESS_TIMESTAMP,
-  Step,
-  BIND_ORGANIZATION_REDIRECT_TO_ORG_TIMESTAMP,
-  BIND_ORGANIZATION_KEY
-} from './utils';
-import AlmApplicationInstalling from './AlmApplicationInstalling';
-import AutoOrganizationCreate from './AutoOrganizationCreate';
-import ManualOrganizationCreate from './ManualOrganizationCreate';
-import RemoteOrganizationChoose from './RemoteOrganizationChoose';
-import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
-import { whenLoggedIn } from '../../../components/hoc/whenLoggedIn';
-import { withUserOrganizations } from '../../../components/hoc/withUserOrganizations';
-import { deleteOrganization } from '../../organizations/actions';
 import {
+  bindAlmOrganization,
   getAlmAppInfo,
   getAlmOrganization,
   GetAlmOrganizationResponse,
-  listUnboundApplications,
-  bindAlmOrganization
+  listUnboundApplications
 } from '../../../api/alm-integration';
 import { getSubscriptionPlans } from '../../../api/billing';
 import * as api from '../../../api/organizations';
+import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
+import addGlobalSuccessMessage from '../../../app/utils/addGlobalSuccessMessage';
+import { whenLoggedIn } from '../../../components/hoc/whenLoggedIn';
+import { withUserOrganizations } from '../../../components/hoc/withUserOrganizations';
 import { hasAdvancedALMIntegration, sanitizeAlmId } from '../../../helpers/almIntegrations';
 import { getOrganizationUrl } from '../../../helpers/urls';
 import { skipOnboarding } from '../../../store/users';
-import addGlobalSuccessMessage from '../../../app/utils/addGlobalSuccessMessage';
+import { deleteOrganization } from '../../organizations/actions';
 import '../../tutorials/styles.css'; // TODO remove me
+import { createOrganization } from './actions';
+import AlmApplicationInstalling from './AlmApplicationInstalling';
+import AutoOrganizationCreate from './AutoOrganizationCreate';
+import ManualOrganizationCreate from './ManualOrganizationCreate';
+import RemoteOrganizationChoose from './RemoteOrganizationChoose';
+import {
+  BIND_ORGANIZATION_KEY,
+  BIND_ORGANIZATION_REDIRECT_TO_ORG_TIMESTAMP,
+  ORGANIZATION_IMPORT_BINDING_IN_PROGRESS_TIMESTAMP,
+  ORGANIZATION_IMPORT_REDIRECT_TO_PROJECT_TIMESTAMP,
+  parseQuery,
+  Query,
+  serializeQuery,
+  Step
+} from './utils';
 
 interface Props {
   createOrganization: (
index 93e8a5d536e9db48855333d7d7b168a0cc1e298b..8201753d4c090739b9df01460b9f8a191b3f2f4c 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
+import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import OrganizationAvatarInput from '../components/OrganizationAvatarInput';
 import OrganizationKeyInput from '../components/OrganizationKeyInput';
 import OrganizationUrlInput from '../components/OrganizationUrlInput';
index 32839e704a4416958e7338b1fc0c4d1ecfec7d34..68f05c51c9e8e2b30ceb258600be8f99112058ef 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import PlanSelect, { Plan } from './PlanSelect';
-import BillingFormShim from '../components/BillingFormShim';
-import Step from '../../tutorials/components/Step';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { withCurrentUser } from '../../../components/hoc/withCurrentUser';
 import { getExtensionStart } from '../../../helpers/extensions';
+import Step from '../../tutorials/components/Step';
+import BillingFormShim from '../components/BillingFormShim';
+import PlanSelect, { Plan } from './PlanSelect';
 
 const BillingForm = withCurrentUser(BillingFormShim);
 
index fb2f4aed80d080fc76945dd51f3dc173f92906a9..15205bf81598bf0181826e56bbae0697898a5784 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { WithRouterProps, withRouter } from 'react-router';
-import { FormattedMessage } from 'react-intl';
 import { sortBy } from 'lodash';
+import * as React from 'react';
+import { FormattedMessage } from 'react-intl';
+import { withRouter, WithRouterProps } from 'react-router';
+import { SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import IdentityProviderLink from 'sonar-ui-common/components/controls/IdentityProviderLink';
-import { save } from 'sonar-ui-common/helpers/storage';
+import Select from 'sonar-ui-common/components/controls/Select';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { save } from 'sonar-ui-common/helpers/storage';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import { SubmitButton } from 'sonar-ui-common/components/controls/buttons';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import Select from 'sonar-ui-common/components/controls/Select';
-import { serializeQuery, ORGANIZATION_IMPORT_BINDING_IN_PROGRESS_TIMESTAMP } from './utils';
 import OrganizationAvatar from '../../../components/common/OrganizationAvatar';
 import { sanitizeAlmId } from '../../../helpers/almIntegrations';
+import { ORGANIZATION_IMPORT_BINDING_IN_PROGRESS_TIMESTAMP, serializeQuery } from './utils';
 
 interface Props {
   almApplication: T.AlmApplication;
index 60673608d36b8843ada828815bf76b5e4c636381..d3d0759845da9dc26783197c055310ea0741b897 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import AlmApplicationInstalling from '../AlmApplicationInstalling';
 
 it('should render correctly', () => {
index ee58e92240f6269e13169c61e3779b1609da4837..32eb593942e0bb99a162cb18fdc0eff946d079c1 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { submit } from 'sonar-ui-common/helpers/testUtils';
-import AutoOrganizationBind from '../AutoOrganizationBind';
 import { mockOrganization } from '../../../../helpers/testMocks';
+import AutoOrganizationBind from '../AutoOrganizationBind';
 
 it('should render correctly', () => {
   const onBindOrganization = jest.fn().mockResolvedValue({});
index 21990d1aa181101cf8f7ab3c12a5e4812c6882f0..f0233955a5e0545939ef51983c5626fbc2a1356d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { waitAndUpdate, click } from 'sonar-ui-common/helpers/testUtils';
+import * as React from 'react';
+import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
+import { bindAlmOrganization } from '../../../../api/alm-integration';
+import { mockAlmApplication, mockAlmOrganization } from '../../../../helpers/testMocks';
 import AutoOrganizationCreate from '../AutoOrganizationCreate';
 import { Step } from '../utils';
-import { bindAlmOrganization } from '../../../../api/alm-integration';
-import { mockAlmOrganization, mockAlmApplication } from '../../../../helpers/testMocks';
 
 jest.mock('../../../../api/alm-integration', () => ({
   bindAlmOrganization: jest.fn().mockResolvedValue({})
index c51e86e18d7de5f547a62d3063e5e1487a5a8f2c..4c880e2821851fe1a28cbbe6232fa801287a1d45 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
-import { times } from 'lodash';
+import { mount, shallow } from 'enzyme';
 import { Location } from 'history';
-import { shallow, mount } from 'enzyme';
+import { times } from 'lodash';
+import * as React from 'react';
 import { get, remove } from 'sonar-ui-common/helpers/storage';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { CreateOrganization } from '../CreateOrganization';
 import {
   bindAlmOrganization,
   getAlmAppInfo,
@@ -33,13 +32,14 @@ import {
 import { getSubscriptionPlans } from '../../../../api/billing';
 import { getOrganizations } from '../../../../api/organizations';
 import {
-  mockRouter,
-  mockOrganizationWithAdminActions,
-  mockOrganizationWithAlm,
   mockAlmOrganization,
+  mockLocation,
   mockLoggedInUser,
-  mockLocation
+  mockOrganizationWithAdminActions,
+  mockOrganizationWithAlm,
+  mockRouter
 } from '../../../../helpers/testMocks';
+import { CreateOrganization } from '../CreateOrganization';
 
 jest.mock('../../../../api/billing', () => ({
   getSubscriptionPlans: jest
index 6a8f95755555078b392390ff13b40773331e7d68..ef8a172ccc986a4f04bc0ef7e3d812b5682e29fd 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
+import { mockOrganization } from '../../../../helpers/testMocks';
 import ManualOrganizationCreate from '../ManualOrganizationCreate';
 import { Step } from '../utils';
-import { mockOrganization } from '../../../../helpers/testMocks';
 
 it('should render and create organization', async () => {
   const createOrganization = jest.fn().mockResolvedValue({ key: 'foo' });
index 453285d15dfdeac543d4e3ec343bfac27a9acea7..046a7bf219086d1a57dcf6945a410d0b2b7cf93a 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click, submit } from 'sonar-ui-common/helpers/testUtils';
 import OrganizationDetailsForm from '../OrganizationDetailsForm';
 
index 04c8df9a20bfc2f8999f749f7396dc7f6c5ada75..a91753a37bf88a12e4b5b6d2b750381346f90b70 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import OrganizationDetailsStep from '../OrganizationDetailsStep';
 
 it('should render form', () => {
index 9b8c8659b7ed469bcdcddd8d2161ace6847e8846..5bf7032b57c5c3c45b8d97728494a95ebce3f5c3 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
-import PlanSelect, { Plan } from '../PlanSelect';
 import { mockAlmOrganization } from '../../../../helpers/testMocks';
+import PlanSelect, { Plan } from '../PlanSelect';
 
 it('should render and select', () => {
   const onChange = jest.fn();
index ad313c2abcf8fc20ba0241d36c99d8bcd4010a6c..9fb3d70f361fa6e9af3ee2bf904d38a6e8d0b1d4 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { waitAndUpdate, submit } from 'sonar-ui-common/helpers/testUtils';
-import PlanStep from '../PlanStep';
-import { Plan } from '../PlanSelect';
+import * as React from 'react';
+import { submit, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import { mockAlmOrganization } from '../../../../helpers/testMocks';
+import { Plan } from '../PlanSelect';
+import PlanStep from '../PlanStep';
 
 jest.mock('../../../../helpers/extensions', () => ({
   getExtensionStart: jest.fn().mockResolvedValue(undefined)
index d78337d0c639fde5d682f1e866fc4ae5980cbd8e..0d0d17f5717fde17ec9df6f3f139422d11b64724 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { submit } from 'sonar-ui-common/helpers/testUtils';
+import { mockAlmOrganization, mockRouter } from '../../../../helpers/testMocks';
 import { RemoteOrganizationChoose } from '../RemoteOrganizationChoose';
-import { mockRouter, mockAlmOrganization } from '../../../../helpers/testMocks';
 
 it('should render', () => {
   expect(shallowRender()).toMatchSnapshot();
index 8184ad205b2da91f8e3c7f195dd17be473c81b01..1d53505b16f29f14bbd6b5dfb10921df0faaa9bd 100644 (file)
@@ -19,8 +19,8 @@
  */
 import { Dispatch } from 'redux';
 import * as api from '../../../api/organizations';
-import * as actions from '../../../store/organizations';
 import { isGithub } from '../../../helpers/almIntegrations';
+import * as actions from '../../../store/organizations';
 
 export function createOrganization({
   alm,
index 6f51cf530e8d71fc386b3d2c9b8a3793ec330fdf..aa37b2556c990caf17a4505e7facb498c2eb3672 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { memoize } from 'lodash';
-import { parseAsOptionalString, cleanQuery, serializeString } from 'sonar-ui-common/helpers/query';
-import { decodeJwt } from 'sonar-ui-common/helpers/strings';
 import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
+import { cleanQuery, parseAsOptionalString, serializeString } from 'sonar-ui-common/helpers/query';
+import { decodeJwt } from 'sonar-ui-common/helpers/strings';
 import { isBitbucket, isGithub } from '../../../helpers/almIntegrations';
 
 export const ORGANIZATION_IMPORT_BINDING_IN_PROGRESS_TIMESTAMP =
index 71e4e458a29f5ad8652a4aee3d795e6c1ae91244..7063e40b4517245187cfe03e05cec47752d882eb 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
 import { identity } from 'lodash';
+import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { Link } from 'react-router';
+import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import CheckIcon from 'sonar-ui-common/components/icons/CheckIcon';
 import LockIcon from 'sonar-ui-common/components/icons/LockIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
 import { colors } from '../../../app/theme';
 import { getProjectUrl } from '../../../helpers/urls';
 
index 4d906242b5f9469421d7840b2629129c4fd465e8..23c22ace22dfef8162f6fe65cacb86be0b8a0bf2 100644 (file)
  */
 import * as React from 'react';
 import IdentityProviderLink from 'sonar-ui-common/components/controls/IdentityProviderLink';
-import { save } from 'sonar-ui-common/helpers/storage';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import RemoteRepositories from './RemoteRepositories';
-import OrganizationInput from './OrganizationInput';
+import { save } from 'sonar-ui-common/helpers/storage';
 import {
   ORGANIZATION_IMPORT_BINDING_IN_PROGRESS_TIMESTAMP,
   ORGANIZATION_IMPORT_REDIRECT_TO_PROJECT_TIMESTAMP
 } from '../organization/utils';
+import OrganizationInput from './OrganizationInput';
+import RemoteRepositories from './RemoteRepositories';
 
 interface Props {
   almApplication: T.AlmApplication;
index 16cb1496fb3df6ac3d0ba230005844f28ddee6d0..092992fc0b96470d078f6543faa85cbfebd757e4 100644 (file)
  */
 import * as React from 'react';
 import { WithRouterProps } from 'react-router';
-import CreateProjectPageSonarCloud from './CreateProjectPageSonarCloud';
-import CreateProjectPageSonarQube from './CreateProjectPageSonarQube';
 import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
 import { isSonarCloud } from '../../../helpers/system';
+import CreateProjectPageSonarCloud from './CreateProjectPageSonarCloud';
+import CreateProjectPageSonarQube from './CreateProjectPageSonarQube';
 
 export default function CreateProjectPage(props: WithRouterProps) {
   return (
index a80fbca019e94459885835a96019be74fa5ce691..ac23b515e8bee209190df82718729a87ee1f5b5c 100644 (file)
@@ -21,18 +21,18 @@ import * as React from 'react';
 import Helmet from 'react-helmet';
 import { connect } from 'react-redux';
 import { WithRouterProps } from 'react-router';
-import { addWhitePageClass, removeWhitePageClass } from 'sonar-ui-common/helpers/pages';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import Tabs from 'sonar-ui-common/components/controls/Tabs';
-import AutoProjectCreate from './AutoProjectCreate';
-import ManualProjectCreate from './ManualProjectCreate';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { addWhitePageClass, removeWhitePageClass } from 'sonar-ui-common/helpers/pages';
+import { getAlmAppInfo } from '../../../api/alm-integration';
 import { whenLoggedIn } from '../../../components/hoc/whenLoggedIn';
 import { withUserOrganizations } from '../../../components/hoc/withUserOrganizations';
-import { getAlmAppInfo } from '../../../api/alm-integration';
 import { hasAdvancedALMIntegration } from '../../../helpers/almIntegrations';
-import { getProjectUrl, getOrganizationUrl } from '../../../helpers/urls';
+import { getOrganizationUrl, getProjectUrl } from '../../../helpers/urls';
 import { skipOnboarding } from '../../../store/users';
+import AutoProjectCreate from './AutoProjectCreate';
+import ManualProjectCreate from './ManualProjectCreate';
 import './style.css';
 
 interface Props {
index 92befdd374d5726298473715e5ddd474d8a7f9c7..711899aa7cd8372f68db09837e1a70c93f0aa35d 100644 (file)
 import * as React from 'react';
 import Helmet from 'react-helmet';
 import { WithRouterProps } from 'react-router';
-import { addWhitePageClass, removeWhitePageClass } from 'sonar-ui-common/helpers/pages';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import ManualProjectCreate from './ManualProjectCreate';
+import { addWhitePageClass, removeWhitePageClass } from 'sonar-ui-common/helpers/pages';
 import { whenLoggedIn } from '../../../components/hoc/whenLoggedIn';
 import { getProjectUrl } from '../../../helpers/urls';
+import ManualProjectCreate from './ManualProjectCreate';
 import './style.css';
 
 interface Props {
index f1f07936b43b326367e0707244b42db7cf3480a3..40513c90d508f7766dbf22152c35376dcf1a77ea 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import { SubmitButton } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
-import OrganizationInput from './OrganizationInput';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { createProject } from '../../../api/components';
-import ProjectKeyInput from '../components/ProjectKeyInput';
 import VisibilitySelector from '../../../components/common/VisibilitySelector';
-import UpgradeOrganizationBox from '../components/UpgradeOrganizationBox';
 import { isSonarCloud } from '../../../helpers/system';
+import ProjectKeyInput from '../components/ProjectKeyInput';
+import UpgradeOrganizationBox from '../components/UpgradeOrganizationBox';
 import './ManualProjectCreate.css';
+import OrganizationInput from './OrganizationInput';
 
 interface Props {
   currentUser: T.LoggedInUser;
index 6f0c8117454be2d8b5b66f99140f21e9bbab3e15..1cec987241db92e0b69e2c26246988177e562fe6 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { WithRouterProps, withRouter } from 'react-router';
-import { save } from 'sonar-ui-common/helpers/storage';
+import { withRouter, WithRouterProps } from 'react-router';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import { save } from 'sonar-ui-common/helpers/storage';
 import OrganizationSelect from '../components/OrganizationSelect';
 import { ORGANIZATION_IMPORT_REDIRECT_TO_PROJECT_TIMESTAMP } from '../organization/utils';
 
index c714b9aca96a0d04b047f8bb1435bb1ab746e1dd..e549064c48b6cb5880df5a014610792ac5d952f1 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
 import { keyBy } from 'lodash';
-import { isDefined } from 'sonar-ui-common/helpers/types';
-import { translateWithParameters, translate } from 'sonar-ui-common/helpers/l10n';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import * as React from 'react';
 import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
 import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
-import AlmRepositoryItem from './AlmRepositoryItem';
-import SetupProjectBox from './SetupProjectBox';
-import UpgradeOrganizationBox from '../components/UpgradeOrganizationBox';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { isDefined } from 'sonar-ui-common/helpers/types';
 import { getRepositories } from '../../../api/alm-integration';
 import { isPaidOrganization } from '../../../helpers/organizations';
+import UpgradeOrganizationBox from '../components/UpgradeOrganizationBox';
+import AlmRepositoryItem from './AlmRepositoryItem';
+import SetupProjectBox from './SetupProjectBox';
 
 interface Props {
   almApplication: T.AlmApplication;
index d67fe669c87960f5d582215ae7bf6ee31607ebe9..b31275a56813e7c872a2a70710939287f840236e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
 import { partition } from 'lodash';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import { SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { provisionProject } from '../../../api/alm-integration';
 
 interface Props {
index f1c96b2b6aa89c3325fa430644cca053672f3c76..13de9bb4716e4a017284b9af20519dc0ff4749ba 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import AlmRepositoryItem from '../AlmRepositoryItem';
 
 const identityProviders = {
index ca1c9b9201c5a5368f2ae93ee52c6622e6129aa8..f0f1ccd4893a3baddc7ea09403f2fddd287aecf2 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import AutoProjectCreate from '../AutoProjectCreate';
+import * as React from 'react';
 import {
   mockOrganizationWithAdminActions,
   mockOrganizationWithAlm
 } from '../../../../helpers/testMocks';
+import AutoProjectCreate from '../AutoProjectCreate';
 
 const almApplication = {
   backgroundColor: 'blue',
index 3df094a3191253d304deefb389bdeda2d5105a25..cf66566cb0be97d1b7bcb099cf74b5b35d5ea807 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import CreateProjectPage from '../CreateProjectPage';
-import { mockLocation, mockRouter } from '../../../../helpers/testMocks';
+import * as React from 'react';
 import { isSonarCloud } from '../../../../helpers/system';
+import { mockLocation, mockRouter } from '../../../../helpers/testMocks';
+import CreateProjectPage from '../CreateProjectPage';
 
 jest.mock('../../../../helpers/system', () => ({
   isSonarCloud: jest.fn().mockReturnValue(false)
index 83c7375fc9f44f61a7955c38cfacd366e606a2f8..fe276ad948e2f4dc555cc0536148e040d5914157 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { CreateProjectPageSonarCloud } from '../CreateProjectPageSonarCloud';
 import { getAlmAppInfo } from '../../../../api/alm-integration';
 import {
-  mockRouter,
   mockOrganizationWithAdminActions,
-  mockOrganizationWithAlm
+  mockOrganizationWithAlm,
+  mockRouter
 } from '../../../../helpers/testMocks';
+import { CreateProjectPageSonarCloud } from '../CreateProjectPageSonarCloud';
 
 jest.mock('../../../../api/alm-integration', () => ({
   getAlmAppInfo: jest.fn().mockResolvedValue({
index bb290f457e1655d97f8fb894459bfaeefa753fa0..d0815b405c77720de0e6c37ae8745a74875fd866 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { change, submit, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import ManualProjectCreate from '../ManualProjectCreate';
 import { createProject } from '../../../../api/components';
+import ManualProjectCreate from '../ManualProjectCreate';
 
 jest.mock('../../../../api/components', () => ({
   createProject: jest.fn().mockResolvedValue({ project: { key: 'bar', name: 'Bar' } })
index 35ff3d1878e6a5868565a4a8189a095a45c21d01..73e9c75f67508e0a6b0dc20a25df1b32f8018e7d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { OrganizationInput } from '../OrganizationInput';
+import * as React from 'react';
 import {
-  mockRouter,
   mockOrganization,
-  mockOrganizationWithAlm
+  mockOrganizationWithAlm,
+  mockRouter
 } from '../../../../helpers/testMocks';
+import { OrganizationInput } from '../OrganizationInput';
 
 const organizations = [mockOrganization(), mockOrganizationWithAlm({ key: 'bar', name: 'Bar' })];
 
index 213ed1086a0ab90071647207d20a9ce2190a95b3..02258ea81e17efd1cd27a14bf5fe759cfc4b95c1 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
-import { times } from 'lodash';
 import { shallow } from 'enzyme';
+import { times } from 'lodash';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import RemoteRepositories from '../RemoteRepositories';
 import { getRepositories } from '../../../../api/alm-integration';
 import {
-  mockOrganizationWithAlm,
-  mockOrganizationWithAdminActions
+  mockOrganizationWithAdminActions,
+  mockOrganizationWithAlm
 } from '../../../../helpers/testMocks';
+import RemoteRepositories from '../RemoteRepositories';
 
 jest.mock('../../../../api/alm-integration', () => ({
   getRepositories: jest.fn().mockResolvedValue({
index aa0ab623ddf2487b95e806cf9445935d439c06c3..1c892e7fdb7a1e677456bdff0036fc61de9dbaca 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { waitAndUpdate, submit } from 'sonar-ui-common/helpers/testUtils';
-import SetupProjectBox from '../SetupProjectBox';
+import * as React from 'react';
+import { submit, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import { provisionProject } from '../../../../api/alm-integration';
 import { mockOrganizationWithAlm } from '../../../../helpers/testMocks';
+import SetupProjectBox from '../SetupProjectBox';
 
 jest.mock('../../../../api/alm-integration', () => ({
   provisionProject: jest
index fcbfb7f0b8d028a2c740364e0f28f24922e7c4bd..302aa9dcce74de8de69eb2f2c22014f753858b68 100644 (file)
  */
 import * as React from 'react';
 import Helmet from 'react-helmet';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
-import Header from './Header';
-import List from './List';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import {
-  getCustomMeasures,
   createCustomMeasure,
-  updateCustomMeasure,
-  deleteCustomMeasure
+  deleteCustomMeasure,
+  getCustomMeasures,
+  updateCustomMeasure
 } from '../../../api/measures';
 import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
+import Header from './Header';
+import List from './List';
 
 interface Props {
   component: { key: string };
index cb8d5309570feeda71652b64b8c14703cd9fbb3d..04d04d6a7a54c8c9b7717a84b49d19bf59a06384 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import Form from './Form';
 
 interface Props {
index 60d949bdf37e6c8945213f4a9a3c3b963423d997..24a61d666393d6aa6af16c441a327d8c88200cd0 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   measure: T.CustomMeasure;
index f6baaf7697d31caf32198a5d0eb41864d95bd284..cb4c1bb2a62285e6170a7fb07be485236444242f 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
+import Select from 'sonar-ui-common/components/controls/Select';
 import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import Select from 'sonar-ui-common/components/controls/Select';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getAllMetrics } from '../../../api/metrics';
 
 interface Props {
index 62035962e0fe1910baf64ebe8bf5c9523f519527..b0dbb44c931134b3a48520f7eb1ed6596165f7b2 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import CreateButton from './CreateButton';
 
 interface Props {
index 92ec1433518b8c1e85da2611cf3ee5f728b0b246..fd5379b7dedf519a871afa03a00be2393d421c4c 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import ActionsDropdown, {
   ActionsDropdownDivider,
   ActionsDropdownItem
 } from 'sonar-ui-common/components/controls/ActionsDropdown';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { formatMeasure } from 'sonar-ui-common/helpers/measures';
+import { isUserActive } from '../../../helpers/users';
 import DeleteForm from './DeleteForm';
 import Form from './Form';
 import MeasureDate from './MeasureDate';
-import { isUserActive } from '../../../helpers/users';
 
 interface Props {
   measure: T.CustomMeasure;
index a2ce72366e9d253a512faa047d423346aa031f46..4d299af24e695ec24fc70ba9954f07c69ae49e82 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import Item from './Item';
 
index 4c51cb2b30d941fad7f9da9f2d9b071cf082c08c..d853557dea67cb668f8ab98f7683a0200f263d74 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import App from '../App';
 
index a4b8f562bccb1f6a34784f2e1d32b78edf42aec6..05b589609891c8b7179ac759c0f29a6c85056ebc 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import CreateButton from '../CreateButton';
 
index 60d60ded1e2a996f64542beca4f18aaf2ed1a0d2..fd06820ab9c29de020ea96b12feab52f8e979fb4 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import DeleteForm from '../DeleteForm';
 
 it('should render', () => {
index 9bf5f2ef9e2bb141059615389212e98894f1fcba..4b41ec41a567a6d3114fcc1cb5829c3eb41f6875 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { change, submit, click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
+import * as React from 'react';
+import { change, click, submit, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import Form from '../Form';
 
 jest.mock('../../../../api/metrics', () => ({
index df4b754e2d93c5c37049117a3040a97f4b7e5ea1..b022fa50fbf55db152d69d77076ae9d80085d978 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Header from '../Header';
 
 it('should create new custom measure', () => {
index 667d1f38a88986dd15e7b137951bb6f8471b63bd..6565d8e46b009a17cadc384b495c6f42188ab92e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import Item from '../Item';
 
index 05ed9c230b2821b258c28d6f2cdc82d5ef7f117e..1c41fcda096ca00d23219d5a7fed41eadd6b1594 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import List from '../List';
 
 it('should render', () => {
index effde5c881a311a683a113e4c82a8ca8af373d32..01a69f22265b624108f8b004f35e3f8986cadb95 100644 (file)
  */
 import * as React from 'react';
 import { Helmet } from 'react-helmet';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
-import { MetricProps } from './Form';
-import Header from './Header';
-import List from './List';
-import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import {
+  createMetric,
+  deleteMetric,
   getMetricDomains,
-  getMetricTypes,
   getMetrics,
-  deleteMetric,
-  updateMetric,
-  createMetric,
-  MetricsResponse
+  getMetricTypes,
+  MetricsResponse,
+  updateMetric
 } from '../../../api/metrics';
+import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
+import { MetricProps } from './Form';
+import Header from './Header';
+import List from './List';
 
 interface Props {}
 
index 9ff279ed47b115bea0b92960d50fde41a7b56702..4e84fe96a426813016fd5a71fd9027dbda0ebdf3 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import Form, { MetricProps } from './Form';
 
 interface Props {
index 577be8f76f824aba1bc7a6e484b1c09e853eef37..7e5e8f3f89a95ac7b3f784f6df26682c736cf620 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   metric: T.Metric;
index 9a0632a929be7cd4c40285f151b1511e7bb306c5..4a7fdf95b6dec40da7499fcde187c401754d863e 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Select, { Creatable } from 'sonar-ui-common/components/controls/Select';
+import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 export interface MetricProps {
   description: string;
index ed13d6e2cbe1039242179c84afc33bc5f0930e45..15d2bb212205ed296bf243954773bab74f1ec997 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import CreateButton from './CreateButton';
 import { MetricProps } from './Form';
 
index 6fb601706d3c1214ec89ed70b5742bbac2a85a24..36cdbb79bf452463933ff210401da8e2d7c7372c 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ActionsDropdown, {
   ActionsDropdownDivider,
   ActionsDropdownItem
 } from 'sonar-ui-common/components/controls/ActionsDropdown';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import DeleteForm from './DeleteForm';
 import Form, { MetricProps } from './Form';
 
index e24a514969600ce412249c36b96f5ef2cb18771e..0f552d14ed366d7764a8808eed18324e1d3d3a34 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { MetricProps } from './Form';
 import Item from './Item';
index 3c561277fb540e4a1f4a7f4110f98cc09a8440a9..2085b5604969c416e1a54305b8d8a4e1a3758c13 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import App from '../App';
 
index d9280e4cfaa33fc151083bc8ccd7e6abb1fa805b..f19e845ddda869e6471c50df0047f148a3e4bd71 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import CreateButton from '../CreateButton';
 
index e321a01cb4fec6a06be6180f280b36a6764f8414..3dbb03c91996bf14bd961a3e6d7c57bf63bbd596 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import DeleteForm from '../DeleteForm';
 
 it('should render', () => {
index 1f0fb40904be47aa6df64dd9fbf39e418c794efc..75e02ecaff4874eb42a9da9f66a8adcb19845e33 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { change, submit, click } from 'sonar-ui-common/helpers/testUtils';
+import * as React from 'react';
+import { change, click, submit } from 'sonar-ui-common/helpers/testUtils';
 import Form from '../Form';
 
 it('should render form', async () => {
index 2b8c2f8bf112c9096b7452bedec9fc2267aa5808..37d7d85cccfbb06ab73a18189d5245165d8cb932 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Header from '../Header';
 
 it('should create new metric', () => {
index ec03beee3fa4ca3d25bf22c564f73c1ab9ba14a4..60a7a099eabf5fb7c05a738fecfe4a110e850453 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import Item from '../Item';
 
index e3b46f22277403c4b8af64031d4ec4733cb205ce..441c97c710834d38e97aac27b61b2438d9898609 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import List from '../List';
 
 it('should render', () => {
index b72b72e18159a9f88ed91f9754363342a681fd25..2cda70e7bb94eec8dbefff358ab4e5d0427d0d37 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as navigationTreeSonarCloud from 'Docs/../static/SonarCloudNavigationTree.json';
+import * as navigationTreeSonarQube from 'Docs/../static/SonarQubeNavigationTree.json';
+import { DocNavigationItem } from 'Docs/@types/types';
 import * as React from 'react';
 import Helmet from 'react-helmet';
 import { Link } from 'react-router';
-import { addSideBarClass, removeSideBarClass } from 'sonar-ui-common/helpers/pages';
-import { DocNavigationItem } from 'Docs/@types/types';
-import * as navigationTreeSonarQube from 'Docs/../static/SonarQubeNavigationTree.json';
-import * as navigationTreeSonarCloud from 'Docs/../static/SonarCloudNavigationTree.json';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Sidebar from './Sidebar';
-import getPages from '../pages';
+import { addSideBarClass, removeSideBarClass } from 'sonar-ui-common/helpers/pages';
 import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
 import NotFound from '../../../app/components/NotFound';
 import ScreenPositionHelper from '../../../components/common/ScreenPositionHelper';
 import DocMarkdownBlock from '../../../components/docs/DocMarkdownBlock';
 import { isSonarCloud } from '../../../helpers/system';
+import getPages from '../pages';
 import '../styles.css';
+import Sidebar from './Sidebar';
 
 interface Props {
   params: { splat?: string };
index 07e5c42e5ea286306313a3039b04109fd0ebd238..f325730844d692e8548ff87c9ea808c44e3b8377 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { DocNavigationItem } from 'Docs/@types/types';
-import MenuBlock from './MenuBlock';
-import { MenuItem } from './MenuItem';
-import { MenuExternalLink } from './MenuExternalLink';
+import * as React from 'react';
 import {
+  getOpenChainFromPath,
   isDocsNavigationBlock,
-  isDocsNavigationExternalLink,
-  getOpenChainFromPath
+  isDocsNavigationExternalLink
 } from '../navTreeUtils';
 import { DocumentationEntry, getNodeFromUrl } from '../utils';
+import MenuBlock from './MenuBlock';
+import { MenuExternalLink } from './MenuExternalLink';
+import { MenuItem } from './MenuItem';
 
 interface Props {
   navigation: DocNavigationItem[];
index 1b98a65c07fa531525a0c4b28314308e641eb034..4260384884538957318fcb56be9312659fa181d5 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
-import OpenCloseIcon from 'sonar-ui-common/components/icons/OpenCloseIcon';
 import * as classNames from 'classnames';
-import { DocsNavigationBlock, DocNavigationItem } from 'Docs/@types/types';
+import { DocNavigationItem, DocsNavigationBlock } from 'Docs/@types/types';
+import * as React from 'react';
 import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
-import { MenuItem } from './MenuItem';
+import OpenCloseIcon from 'sonar-ui-common/components/icons/OpenCloseIcon';
 import { isDocsNavigationBlock } from '../navTreeUtils';
 import { DocumentationEntry, getNodeFromUrl } from '../utils';
+import { MenuItem } from './MenuItem';
 
 interface Props {
   block: DocsNavigationBlock;
index 688175c0dc8e1380a0a6f3664c01f1fe94c0a102..efd4c96ad4107b3477ea50b56c31daef2b364bb9 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { Link } from 'react-router';
 import { testPathAgainstUrl } from '../navTreeUtils';
 import { DocumentationEntry } from '../utils';
index 613616375b1b78ea5c7f98518832e0d413f8dc80..37a4ba37c4af6c709e3e4dac474bae994c3eaa85 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { Link } from 'react-router';
-import { highlightMarks, cutWords, DocumentationEntry } from '../utils';
+import { cutWords, DocumentationEntry, highlightMarks } from '../utils';
 
 export interface SearchResult {
   exactMatch?: boolean;
index 251a3ae688cc53967a0e0aa7bebcbcefea49d38a..29f3250897ba9efeadede718f0995132dc07ecd1 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
-import lunr, { LunrBuilder, LunrIndex, LunrToken } from 'lunr';
-import { sortBy } from 'lodash';
 import { DocNavigationItem } from 'Docs/@types/types';
+import { sortBy } from 'lodash';
+import lunr, { LunrBuilder, LunrIndex, LunrToken } from 'lunr';
+import * as React from 'react';
 import { isDefined } from 'sonar-ui-common/helpers/types';
-import SearchResultEntry from './SearchResultEntry';
 import { getUrlsList } from '../navTreeUtils';
 import { DocumentationEntry } from '../utils';
+import SearchResultEntry from './SearchResultEntry';
 
 interface Props {
   navigation: DocNavigationItem[];
index f72c057f888db90017f847efaf0c99f8de11cee5..1c4d07dc5740d38d535b72d27aa87f3a8f8b8571 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { DocNavigationItem } from 'Docs/@types/types';
+import * as React from 'react';
 import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
+import { DocumentationEntry } from '../utils';
 import Menu from './Menu';
 import SearchResults from './SearchResults';
-import { DocumentationEntry } from '../utils';
 
 interface Props {
   navigation: DocNavigationItem[];
index 28c1a97d3b1ca19edce627f9149a923c7fb9442c..aca3d13d4043dfcf991ba48124e1188ef0cf0aff 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { addSideBarClass, removeSideBarClass } from 'sonar-ui-common/helpers/pages';
-import App from '../App';
 import { isSonarCloud } from '../../../../helpers/system';
+import App from '../App';
 
 jest.mock('../../../../components/common/ScreenPositionHelper', () => ({
   default: class ScreenPositionHelper extends React.Component<{
index ba3cb93e0a1671fba8b40cc096a1a8d8a39dae61..a5299bd6a3f2f75a0afc116b6e69e22229056eff 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Menu from '../Menu';
 
 function createPage(title: string, relativeName: string, text = '') {
index a1c42e7b00184931b8e0624dba7b9cb9837190b8..05b8a99440109af3546eda5fadd32e1c39200eb5 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import MenuBlock from '../MenuBlock';
 
index 8f3e327a172c64d82efbba4cd0f6912c1c03f996..66e0d23bf32c18f22b7abb1a7af52956ef7faae5 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { MenuItem } from '../MenuItem';
+import * as React from 'react';
 import { DocumentationEntry } from '../../utils';
+import { MenuItem } from '../MenuItem';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index a2a805fde199da5f28aea728feb87ceb586eebef..4884f310c899fd62691c1f3cf852e0199afe8568 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SearchResultEntry, {
   SearchResult,
   SearchResultText,
index 7a55e8c44d0d50b9901578be455512625ec1763f..13d2ee0ef2e1eeaf5845b1d748c5fd8915ac3d2d 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
 import lunr from 'lunr';
+import * as React from 'react';
 import SearchResults from '../SearchResults';
 
 jest.mock('lunr', () => ({
index a579e786b47b8026452437b4a7d0854e2b2c4394..a630d4a70f61f2a4715c073ae0663d0287c7a5cf 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Sidebar from '../Sidebar';
 
 function createPage(title: string, relativeName: string, text = '') {
index 963d8a0aeddea39b91c35f83c45b731226cac90c..eb4371c920fb2bbe68b6f4070c50fa67ddf8c28c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { flatten } from 'lodash';
+import NavigationTree from 'Docs/../static/SonarQubeNavigationTree.json';
 import {
   DocNavigationItem,
   DocsNavigationBlock,
   DocsNavigationExternalLink
 } from 'Docs/@types/types';
-import NavigationTree from 'Docs/../static/SonarQubeNavigationTree.json';
+import { flatten } from 'lodash';
 
 export function getNavTree() {
   return NavigationTree as DocNavigationItem[];
index ea6ad55a86777e5818250fa7dd0ef1e06e5b31df..b1c9c998941e9cbc1e655a22b399464263990cfd 100644 (file)
@@ -19,9 +19,9 @@
  */
 import remark from 'remark';
 import visit from 'unist-util-visit';
-import { DocumentationEntry, DocumentationEntryScope } from './utils';
+import { filterContent, separateFrontMatter } from '../../helpers/markdown';
 import * as Docs from './documentation.directory-loader';
-import { separateFrontMatter, filterContent } from '../../helpers/markdown';
+import { DocumentationEntry, DocumentationEntryScope } from './utils';
 
 export default function getPages(): DocumentationEntry[] {
   return ((Docs as unknown) as Array<{ content: string; path: string }>).map(file => {
index 822013c7415d3cc471bfb515e2f7e6680034166f..d3222a24ed98927f57fd063dbaa750c9c8be71b4 100644 (file)
  */
 import * as React from 'react';
 import { WithRouterProps } from 'react-router';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
 import { SubmitButton } from 'sonar-ui-common/components/controls/buttons';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import Radio from 'sonar-ui-common/components/controls/Radio';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
 import { giveDowngradeFeedback } from '../../../api/billing';
 import addGlobalSuccessMessage from '../../../app/utils/addGlobalSuccessMessage';
 import './DowngradeFeedback.css';
index efbaf193e6e534510d9550ea05c3260ea562e056..6ed85aa648b9de8a847436490c00fa0d4ef62999 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import DowngradeFeedback, { LocationState } from '../DowngradeFeedback';
+import * as React from 'react';
 import { giveDowngradeFeedback } from '../../../../api/billing';
 import { mockLocation, mockRouter } from '../../../../helpers/testMocks';
+import DowngradeFeedback, { LocationState } from '../DowngradeFeedback';
 
 jest.mock('../../../../api/billing', () => ({
   giveDowngradeFeedback: jest.fn()
index f37c184a35be8588258cd8e104f344a80beec1a1..67fc17502786dadbfd8bb502bab2c08b55d9c777 100644 (file)
  */
 import * as React from 'react';
 import { Helmet } from 'react-helmet';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
 import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
+import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { createGroup, deleteGroup, searchUsersGroups, updateGroup } from '../../../api/user_groups';
+import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
 import Header from './Header';
 import List from './List';
-import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
-import { searchUsersGroups, deleteGroup, updateGroup, createGroup } from '../../../api/user_groups';
 
 interface Props {
   organization?: Pick<T.Organization, 'key'>;
index 703ab3eec94939c787ff8d806dde6c30dd0cfbfd..e8daa6a4038c582ebf401471b2cb79e1447fcd0a 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   group: T.Group;
index 5cd8b19ffa8399932136dd06d8d71e66aaf19539..3d95e47b01742198e0845a168b31114913298b33 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import BulletListIcon from 'sonar-ui-common/components/icons/BulletListIcon';
 import { ButtonIcon } from 'sonar-ui-common/components/controls/buttons';
+import BulletListIcon from 'sonar-ui-common/components/icons/BulletListIcon';
 import EditMembersModal from './EditMembersModal';
 
 interface Props {
index 71ef68106b411343ccfc1f881e88a3658e600e8f..46cee0ddf2a09cac947c202581ab6e0078cc5564 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { find, without } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import { ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
 import SelectList, {
   SelectListFilter,
   SelectListSearchParams
 } from 'sonar-ui-common/components/controls/SelectList';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { addUserToGroup, getUsersInGroup, removeUserFromGroup } from '../../../api/user_groups';
 
 interface Props {
index 99c4d2ed3a1953d1e27a7dda0521ad4857db842d..634ccf7ec952265b8848c674696f4f2a76d26178 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   confirmButtonText: string;
index 1f76812b7fa2d7020786cb84ced3ad88d34e4ccf..98272aef888a49b84f6f2e3c92163fdd6b700125 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import Form from './Form';
 
 interface Props {
index 798b00fcaf096a325d1be595276381fd230cb2f2..89f04764f50618087a6ac240d0fcbb6d093aee70 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import ListItem from './ListItem';
 
index 00579625222fb5878a23aad68351fca16a2fcfa8..8638abe8b86ae2d125ba01fca250fa4d62bcd20a 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { omitNil } from 'sonar-ui-common/helpers/request';
 import ActionsDropdown, {
-  ActionsDropdownItem,
-  ActionsDropdownDivider
+  ActionsDropdownDivider,
+  ActionsDropdownItem
 } from 'sonar-ui-common/components/controls/ActionsDropdown';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { omitNil } from 'sonar-ui-common/helpers/request';
 import DeleteForm from './DeleteForm';
 import EditMembers from './EditMembers';
 import Form from './Form';
index 1b4a9b972da7ebad05d189f929798bbd7b082361..2e1f01924a898ab68cc13acb1d355cf6b3fbab80 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import App from '../App';
-import { mockOrganization } from '../../../../helpers/testMocks';
 import {
   createGroup,
   deleteGroup,
   searchUsersGroups,
   updateGroup
 } from '../../../../api/user_groups';
+import { mockOrganization } from '../../../../helpers/testMocks';
+import App from '../App';
 
 jest.mock('../../../../api/user_groups', () => ({
   createGroup: jest.fn().mockResolvedValue({
index 1b37f85883f69c318fa1c0f62c95c7e3fab7705f..bc853eb2794da40cca1f4044637d64523e5419cb 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import DeleteForm from '../DeleteForm';
 
 it('should render', () => {
index 2e69b46be3d62464682e49fcd90c350138efe764..bff23ac36551d4dbca2bfcb45e049cdd10207813 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import EditMembers from '../EditMembers';
 
index 24e6f464d85e2b5478e7ec87c1c8199ebd7bd330..57c33b1e0e5358c549b283c6149ff37462471227 100644 (file)
@@ -21,8 +21,8 @@ import { shallow } from 'enzyme';
 import * as React from 'react';
 import SelectList, { SelectListFilter } from 'sonar-ui-common/components/controls/SelectList';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
+import { addUserToGroup, getUsersInGroup, removeUserFromGroup } from '../../../../api/user_groups';
 import EditMembersModal from '../EditMembersModal';
-import { getUsersInGroup, addUserToGroup, removeUserFromGroup } from '../../../../api/user_groups';
 
 const organization = 'orga';
 const group = { id: 1, name: 'foo', membersCount: 1 };
index feca1dbee751641bafbe5d5646cb1d1aad17ef0c..0921d58681a83fd5e46bacb804d083396ed112a1 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { change, submit, click } from 'sonar-ui-common/helpers/testUtils';
+import * as React from 'react';
+import { change, click, submit } from 'sonar-ui-common/helpers/testUtils';
 import Form from '../Form';
 
 it('should render form', async () => {
index e8b7228d143b79d26224aea44001f94c63081b7c..7356cb9e36776c95ff0dc2b0a4ecfacc10623d91 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import Header from '../Header';
 
index e0295182e396b4815cd63b64329240a98a168383..60d9d76cdcf34d17be9bb4897e39bd6ad88044ef 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import List from '../List';
 
 it('should render', () => {
index e6dc9c48d20df37784566bab1eda85dbff79d5ab..24b088201ef070cb4a68f77b4f4f0f3ca26f8858 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import ListItem from '../ListItem';
 
index 7846107689a0f2ac7a373462f4ab644b977fd06f..3efdac73976380d0f15b02d78df5b946338c4362 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import AppContainer from './components/AppContainer';
-import { isSonarCloud } from '../../helpers/system';
-import { isLoggedIn } from '../../helpers/users';
 import { withCurrentUser } from '../../components/hoc/withCurrentUser';
 import { Location } from '../../components/hoc/withRouter';
+import { isSonarCloud } from '../../helpers/system';
+import { isLoggedIn } from '../../helpers/users';
+import AppContainer from './components/AppContainer';
 
 export interface Props {
   currentUser: T.CurrentUser;
index 65abdcd1186bf5f33eccae9caadb8a29cfa651b2..3a65e6b0e95f178891922a3ede372a9a0c513dea 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { IssuesPage, Props } from '../IssuesPageSelector';
-import { mockLocation, mockCurrentUser, mockLoggedInUser } from '../../../helpers/testMocks';
+import * as React from 'react';
 import { isSonarCloud } from '../../../helpers/system';
+import { mockCurrentUser, mockLocation, mockLoggedInUser } from '../../../helpers/testMocks';
+import { IssuesPage, Props } from '../IssuesPageSelector';
 
 jest.mock('../../../helpers/system', () => ({ isSonarCloud: jest.fn().mockReturnValue(false) }));
 
index bead280986a2f9d83c42996b469bd9e4ee5b9f63..6028ada5ad9ca99ea4761fa14312cf82f45cdd02 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 
-import { selectFlow, selectLocation } from '../actions';
 import { mockIssue } from '../../../helpers/testMocks';
+import { selectFlow, selectLocation } from '../actions';
 
 describe('selectFlow', () => {
   it('should select flow and enable locations navigator', () => {
index a50edcdcf1a94e41f164464fcbefdbec5925ce76..fd0cdea3b6c01a75a612790330c6b2ab789861e5 100644 (file)
  */
 import { scrollToElement } from 'sonar-ui-common/helpers/scrolling';
 import {
-  shouldOpenSeverityFacet,
-  shouldOpenStandardsFacet,
   scrollToIssue,
+  shouldOpenSeverityFacet,
+  shouldOpenSonarSourceSecurityFacet,
   shouldOpenStandardsChildFacet,
-  shouldOpenSonarSourceSecurityFacet
+  shouldOpenStandardsFacet
 } from '../utils';
 
 jest.mock('sonar-ui-common/helpers/scrolling', () => ({
index 4d3262d3fec772145653e957a5664e50092d74cc..8885d0ec8b89d41db24dcd4bb55093e96d44642c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as key from 'keymaster';
-import Helmet from 'react-helmet';
 import { keyBy, omit, without } from 'lodash';
+import * as React from 'react';
+import Helmet from 'react-helmet';
 import { FormattedMessage } from 'react-intl';
 import { connect } from 'react-redux';
+import { Button } from 'sonar-ui-common/components/controls/buttons';
+import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
+import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import handleRequiredAuthentication from 'sonar-ui-common/helpers/handleRequiredAuthentication';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import {
   addSideBarClass,
   addWhitePageClass,
   removeSideBarClass,
   removeWhitePageClass
 } from 'sonar-ui-common/helpers/pages';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import handleRequiredAuthentication from 'sonar-ui-common/helpers/handleRequiredAuthentication';
-import { Button } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
-import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
-import BulkChangeModal, { MAX_PAGE_SIZE } from './BulkChangeModal';
-import IssuesList from './IssuesList';
-import IssuesSourceViewer from './IssuesSourceViewer';
-import MyIssuesFilter from './MyIssuesFilter';
-import NoIssues from './NoIssues';
-import NoMyIssues from './NoMyIssues';
-import PageActions from './PageActions';
-import ConciseIssuesList from '../conciseIssuesList/ConciseIssuesList';
-import ConciseIssuesListHeader from '../conciseIssuesList/ConciseIssuesListHeader';
-import Sidebar from '../sidebar/Sidebar';
+import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
+import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
 import EmptySearch from '../../../components/common/EmptySearch';
 import FiltersHeader from '../../../components/common/FiltersHeader';
 import ScreenPositionHelper from '../../../components/common/ScreenPositionHelper';
-import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
-import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
-import { withRouter, Location, Router } from '../../../components/hoc/withRouter';
+import { Location, Router, withRouter } from '../../../components/hoc/withRouter';
+import '../../../components/search-navigator.css';
+import {
+  fillBranchLike,
+  getBranchLikeQuery,
+  isPullRequest,
+  isSameBranchLike,
+  isShortLivingBranch
+} from '../../../helpers/branches';
+import { isSonarCloud } from '../../../helpers/system';
+import { fetchBranchStatus } from '../../../store/rootActions';
 import * as actions from '../actions';
+import ConciseIssuesList from '../conciseIssuesList/ConciseIssuesList';
+import ConciseIssuesListHeader from '../conciseIssuesList/ConciseIssuesListHeader';
+import Sidebar from '../sidebar/Sidebar';
+import '../styles.css';
 import {
   areMyIssuesSelected,
   areQueriesEqual,
@@ -67,25 +71,21 @@ import {
   ReferencedLanguage,
   ReferencedRule,
   saveMyIssues,
-  serializeQuery,
-  STANDARDS,
   scrollToIssue,
+  serializeQuery,
   shouldOpenSeverityFacet,
   shouldOpenSonarSourceSecurityFacet,
+  shouldOpenStandardsChildFacet,
   shouldOpenStandardsFacet,
-  shouldOpenStandardsChildFacet
+  STANDARDS
 } from '../utils';
-import {
-  isShortLivingBranch,
-  isSameBranchLike,
-  getBranchLikeQuery,
-  isPullRequest,
-  fillBranchLike
-} from '../../../helpers/branches';
-import { isSonarCloud } from '../../../helpers/system';
-import { fetchBranchStatus } from '../../../store/rootActions';
-import '../../../components/search-navigator.css';
-import '../styles.css';
+import BulkChangeModal, { MAX_PAGE_SIZE } from './BulkChangeModal';
+import IssuesList from './IssuesList';
+import IssuesSourceViewer from './IssuesSourceViewer';
+import MyIssuesFilter from './MyIssuesFilter';
+import NoIssues from './NoIssues';
+import NoMyIssues from './NoMyIssues';
+import PageActions from './PageActions';
 
 interface FetchIssuesPromise {
   components: ReferencedComponent[];
index 7e806e7fe0fe727c582f68ee96608deefe5c7b5e..993cf95968772c724beaea4af4c202df83ee80e6 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { uniq } from 'lodash';
 import { connect } from 'react-redux';
 import { Dispatch } from 'redux';
-import { uniq } from 'lodash';
 import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
 import { searchIssues } from '../../../api/issues';
 import { getOrganizations } from '../../../api/organizations';
 import throwGlobalError from '../../../app/utils/throwGlobalError';
+import { parseIssueFromResponse } from '../../../helpers/issues';
+import { receiveOrganizations } from '../../../store/organizations';
 import {
-  getCurrentUser,
   areThereCustomOrganizations,
+  getCurrentUser,
   getMyOrganizations,
   Store
 } from '../../../store/rootReducer';
-import { parseIssueFromResponse } from '../../../helpers/issues';
-import { receiveOrganizations } from '../../../store/organizations';
 
 interface StateProps {
   currentUser: T.CurrentUser;
index ae679fb59f5f1a14caf0f03768d92a301b1a7fdb..6ed30634422f68b706caf4e27dd15427e9919186 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { pickBy, sortBy } from 'lodash';
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { pickBy, sortBy } from 'lodash';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
-import Modal from 'sonar-ui-common/components/controls/Modal';
-import IssueTypeIcon from 'sonar-ui-common/components/icons/IssueTypeIcon';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
+import Modal from 'sonar-ui-common/components/controls/Modal';
 import Radio from 'sonar-ui-common/components/controls/Radio';
-import Select from 'sonar-ui-common/components/controls/Select';
 import SearchSelect from 'sonar-ui-common/components/controls/SearchSelect';
-import { searchAssignees } from '../utils';
-import Avatar from '../../../components/ui/Avatar';
+import Select from 'sonar-ui-common/components/controls/Select';
+import IssueTypeIcon from 'sonar-ui-common/components/icons/IssueTypeIcon';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { bulkChangeIssues, searchIssueTags } from '../../../api/issues';
+import throwGlobalError from '../../../app/utils/throwGlobalError';
 import MarkdownTips from '../../../components/common/MarkdownTips';
 import SeverityHelper from '../../../components/shared/SeverityHelper';
-import throwGlobalError from '../../../app/utils/throwGlobalError';
-import { searchIssueTags, bulkChangeIssues } from '../../../api/issues';
+import Avatar from '../../../components/ui/Avatar';
 import { isLoggedIn, isUserActive } from '../../../helpers/users';
+import { searchAssignees } from '../utils';
 
 interface AssigneeOption {
   avatar?: string;
index 1956aec159508858f8871c11643c1485c91b962c..314e61b6594480d9721669b68e94cf2b8d84112c 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { collapsePath, limitComponentName } from 'sonar-ui-common/helpers/path';
-import { getSelectedLocation } from '../utils';
 import Organization from '../../../components/shared/Organization';
+import { getSelectedLocation } from '../utils';
 
 interface Props {
   component?: T.Component;
index 66fec76a00002bc7d71d2b065dd1639c10878684..ed378927511ec80ca1fd26b56d75970bab82394b 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import ListItem from './ListItem';
 import { Query, scrollToIssue } from '../utils';
+import ListItem from './ListItem';
 
 interface Props {
   branchLike: T.BranchLike | undefined;
index ec5f83e84004b49e12c474c3f5dbd4b3c86918dc..81f3f2621bca094abd4bef6d42480952e9055f4e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { uniq } from 'lodash';
+import * as React from 'react';
 import { scrollToElement } from 'sonar-ui-common/helpers/scrolling';
-import { getLocations, getSelectedLocation } from '../utils';
-import CrossComponentSourceViewer from '../crossComponentSourceViewer/CrossComponentSourceViewer';
 import SourceViewer from '../../../components/SourceViewer/SourceViewer';
+import CrossComponentSourceViewer from '../crossComponentSourceViewer/CrossComponentSourceViewer';
+import { getLocations, getSelectedLocation } from '../utils';
 
 interface Props {
   branchLike: T.BranchLike | undefined;
index 91cbcd95e151917f3145c1db1a97ef4d9579eb96..d8aa538005357bdff0a9093501c9e45e50cbd577 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import ComponentBreadcrumbs from './ComponentBreadcrumbs';
-import { Query } from '../utils';
 import Issue from '../../../components/issue/Issue';
+import { Query } from '../utils';
+import ComponentBreadcrumbs from './ComponentBreadcrumbs';
 
 interface Props {
   branchLike: T.BranchLike | undefined;
index 82dc0989d093ef16767c350044d05da1cf6f37e3..353fa7b1489952c7ba29f216aa1667825ff9c061 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   myIssues: boolean;
index d5eabf5aa3ae941bfd13e79ca06e862444057c19..0ca13c98a644bf492d6026da1937c40a0c6c5fc1 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ReloadButton from 'sonar-ui-common/components/controls/ReloadButton';
-import IssuesCounter from './IssuesCounter';
-import TotalEffort from './TotalEffort';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import HomePageSelect from '../../../components/controls/HomePageSelect';
 import { isSonarCloud } from '../../../helpers/system';
+import IssuesCounter from './IssuesCounter';
+import TotalEffort from './TotalEffort';
 
 interface Props {
   canSetHome: boolean;
index 8909ef98427a678c77fa7cdb0ebef88bebc3193c..f3edf2be346848909db6935d17f0bdb496b9c80d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import handleRequiredAuthentication from 'sonar-ui-common/helpers/handleRequiredAuthentication';
-import { waitAndUpdate, KEYCODE_MAP, keydown } from 'sonar-ui-common/helpers/testUtils';
-import { App } from '../App';
+import { KEYCODE_MAP, keydown, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import {
-  mockLoggedInUser,
-  mockRouter,
+  mockComponent,
+  mockCurrentUser,
+  mockEvent,
   mockIssue,
   mockLocation,
-  mockEvent,
-  mockCurrentUser,
+  mockLoggedInUser,
   mockPullRequest,
-  mockComponent
+  mockRouter
 } from '../../../../helpers/testMocks';
 import {
   enableLocationsNavigator,
-  selectNextLocation,
-  selectPreviousLocation,
   selectNextFlow,
-  selectPreviousFlow
+  selectNextLocation,
+  selectPreviousFlow,
+  selectPreviousLocation
 } from '../../actions';
+import { App } from '../App';
 
 jest.mock('sonar-ui-common/helpers/handleRequiredAuthentication', () => ({
   default: jest.fn()
index 67d198184680f5b091df927e497cc2fc9059ea6e..3803de3e021a39a193a321b37dd548107b0f9aba 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import BulkChangeModal, { MAX_PAGE_SIZE } from '../BulkChangeModal';
 import { mockIssue } from '../../../../helpers/testMocks';
+import BulkChangeModal, { MAX_PAGE_SIZE } from '../BulkChangeModal';
 
 jest.mock('../../../../api/issues', () => ({
   searchIssueTags: () => Promise.resolve([undefined, []])
index c5500568c95afbb33646a8fbc5f35c2d133b14ca..a17b886a846de358cdbcd0720f6a80f14cc3afd0 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ComponentBreadcrumbs from '../ComponentBreadcrumbs';
 
 const baseIssue = {
index 6582bbc41d8eb1204ca80d1a88b2cf69086196a3..38030a9532a8875e8a834e8ec867deaca4f8cbb4 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import IssuesCounter from '../IssuesCounter';
 
 it('formats numbers', () => {
index 6311073e38b34d15ebbdd40f69525196cb95f4b6..5ed72f1b851ed141532cbd3edbe489479cf48ec7 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import IssuesList from '../IssuesList';
 import { mockIssue } from '../../../../helpers/testMocks';
+import IssuesList from '../IssuesList';
 
 it('should render correctly', async () => {
   jest.useFakeTimers();
index 47580bcf048a8d58d74e53929cbd88f6869b6fcd..9e96ee51066083e36e49c778d9f64b7f64761a27 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { mockIssue, mockMainBranch } from '../../../../helpers/testMocks';
 import IssuesSourceViewer from '../IssuesSourceViewer';
-import { mockMainBranch, mockIssue } from '../../../../helpers/testMocks';
 
 it('should render SourceViewer correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 75d37689718f5558e7f5e1fb89abd7c9c163fde8..0da2efe7ae96927f6e9f4e4fafef5e6cba0b21cf 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import LocationNavigationKeyboardShortcuts, { Props } from '../LocationNavigationKeyboardShortcuts';
+import * as React from 'react';
 import { mockFlowLocation } from '../../../../helpers/testMocks';
+import LocationNavigationKeyboardShortcuts, { Props } from '../LocationNavigationKeyboardShortcuts';
 
 it('should render correctly', () => {
   expect(shallowRender().type()).toBeNull();
index e6040cd2e92ce9697f06e1f981fd2e3402128d4f..1e3d8c7bbb7e168c2400c75f4c3cf509c117b7bd 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import PageActions from '../PageActions';
 
 it('should render', () => {
index c0974942095f906a843c3a4bf629757fd1595069..7be044ee0d6f77de2cf57fa0271b2b0f0c39bd98 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import TotalEffort from '../TotalEffort';
 
 it('should render', () => {
index 7ac678ccca1a8a47bcfa65153d97bd8878f1a012..98c9117fca8fd15c696b6dc65f56cdda97de1fd1 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
+import TypeHelper from '../../../components/shared/TypeHelper';
+import LocationNavigationKeyboardShortcuts from '../components/LocationNavigationKeyboardShortcuts';
 import ConciseIssueLocations from './ConciseIssueLocations';
 import ConciseIssueLocationsNavigator from './ConciseIssueLocationsNavigator';
-import LocationNavigationKeyboardShortcuts from '../components/LocationNavigationKeyboardShortcuts';
-import TypeHelper from '../../../components/shared/TypeHelper';
 
 interface Props {
   issue: T.Issue;
index 29610ab6b1c1d670078a44ef7750f6c6409dedd4..2d850d4097a9153d0f72cd5f5f6a41761cda1d42 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import LocationIndex from '../../../components/common/LocationIndex';
 
index 0def805f2fa68553a4f0d8b6ad643a3f631ed127..c62edc05a8276fbec99ef38ff2cc3b5e6b4aeffc 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { uniq } from 'lodash';
+import * as React from 'react';
+import { getLocations } from '../utils';
 import ConciseIssueLocationsNavigatorLocation from './ConciseIssueLocationsNavigatorLocation';
 import CrossFileLocationsNavigator from './CrossFileLocationsNavigator';
-import { getLocations } from '../utils';
 
 interface Props {
   issue: Pick<T.Issue, 'component' | 'key' | 'flows' | 'secondaryLocations' | 'type'>;
index 75a40d84b7139049eae6872f575325da192b4bd5..20697df830c75c445c149d3b7cb8b2f7f4847ad6 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { collapsePath } from 'sonar-ui-common/helpers/path';
 import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { collapsePath } from 'sonar-ui-common/helpers/path';
 import ConciseIssueLocationsNavigatorLocation from './ConciseIssueLocationsNavigatorLocation';
 
 interface Props {
index 0bde1677151d80fcc70bfa4eabd7ffe50394102f..9305f3a8d916faf072145b1d5ea2cc472e2215d8 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ConciseIssue from '../ConciseIssue';
 
 const issue: T.Issue = {
index 3bd98700da9bbb2947e50cabd84a12ee5bbbb43f..404dcd39c455a7edc78d636437df4d4804b1653f 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { waitAndUpdate, click } from 'sonar-ui-common/helpers/testUtils';
-import ConciseIssueBox from '../ConciseIssueBox';
+import * as React from 'react';
+import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import { mockIssue } from '../../../../helpers/testMocks';
+import ConciseIssueBox from '../ConciseIssueBox';
 
 it('should render correctly', async () => {
   const onClick = jest.fn();
index 778abc0614d9b7606eb52164523207d73391c2c2..a097ede876edb3f666832c3e02ca50abecef6e74 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ConciseIssueComponent from '../ConciseIssueComponent';
 
 it('should render', () => {
index 7a3931c2958a447ac40a6e835288bed26955b10d..644796dea35985115e282dbe73568679ef52d4b8 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ConciseIssueLocationBadge from '../ConciseIssueLocationBadge';
 
 it('should render', () => {
index 4f4ac18173006e0d2d5b9bc6da555d86567e915f..6cc8b07c1b197b27e12e5025e07028d2ab4bc2ea 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ConciseIssueLocations from '../ConciseIssueLocations';
 
 const textRange = { startLine: 1, startOffset: 1, endLine: 1, endOffset: 1 };
index 28da9ead72bbdff87aa1d443f1ff4893dd6114f0..e07123b73ae9b33b0f4485cb59a0a1d64b6e5a38 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ConciseIssueLocationsNavigator from '../ConciseIssueLocationsNavigator';
+import * as React from 'react';
 import { mockIssue } from '../../../../helpers/testMocks';
+import ConciseIssueLocationsNavigator from '../ConciseIssueLocationsNavigator';
 
 const location1: T.FlowLocation = {
   component: 'foo',
index c95ff1112e9adad132525274dcdfad8c992cedd2..677dd2f99df41167e65ee21f85bbc2de3585698d 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ConciseIssueLocationsNavigatorLocation from '../ConciseIssueLocationsNavigatorLocation';
 
 it('should render correctly', () => {
index 0dd6975f6a8c7e7fda1f429ab6e70444a652ea88..228b57152fe400733cbf65dcc02c37b7b5c795e8 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ConciseIssuesList from '../ConciseIssuesList';
 
 it('should render', () => {
index e1b9ec81dd8bd1b93338afeca971fd2a6b1477ee..451c76ee1977efd4f05e338f0099d03625fb0e31 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import CrossFileLocationsNavigator from '../CrossFileLocationsNavigator';
 
index 90332683273c4c2e7f7437d904d1c288c909d69e..0093e08ea024a68e3e1f637853dbfd738fedf213 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
+import { getSources } from '../../../api/components';
+import getCoverageStatus from '../../../components/SourceViewer/helpers/getCoverageStatus';
+import { locationsByLine } from '../../../components/SourceViewer/helpers/indexing';
+import SourceViewerHeaderSlim from '../../../components/SourceViewer/SourceViewerHeaderSlim';
+import { getBranchLikeQuery } from '../../../helpers/branches';
+import SnippetViewer from './SnippetViewer';
 import {
   createSnippets,
   expandSnippet,
   EXPAND_BY_LINES,
-  MERGE_DISTANCE,
-  linesForSnippets
+  linesForSnippets,
+  MERGE_DISTANCE
 } from './utils';
-import SnippetViewer from './SnippetViewer';
-import SourceViewerHeaderSlim from '../../../components/SourceViewer/SourceViewerHeaderSlim';
-import getCoverageStatus from '../../../components/SourceViewer/helpers/getCoverageStatus';
-import { getSources } from '../../../api/components';
-import { locationsByLine } from '../../../components/SourceViewer/helpers/indexing';
-import { getBranchLikeQuery } from '../../../helpers/branches';
 
 interface Props {
   branchLike: T.BranchLike | undefined;
index 49376aafc483f4f9198d7a29d132e2698e25c2f1..41bcaf7335a2054cd6d35ddfee8675c2b062da7c 100644 (file)
  */
 import * as React from 'react';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import ComponentSourceSnippetViewer from './ComponentSourceSnippetViewer';
-import { groupLocationsByComponent } from './utils';
-import DuplicationPopup from '../../../components/SourceViewer/components/DuplicationPopup';
-import { SourceViewerContext } from '../../../components/SourceViewer/SourceViewerContext';
-import { WorkspaceContext } from '../../../components/workspace/context';
+import { getDuplications } from '../../../api/components';
 import { getIssueFlowSnippets } from '../../../api/issues';
+import DuplicationPopup from '../../../components/SourceViewer/components/DuplicationPopup';
 import {
   filterDuplicationBlocksByLine,
-  isDuplicationBlockInRemovedComponent,
-  getDuplicationBlocksForIndex
+  getDuplicationBlocksForIndex,
+  isDuplicationBlockInRemovedComponent
 } from '../../../components/SourceViewer/helpers/duplications';
 import {
   duplicationsByLine,
   issuesByComponentAndLine
 } from '../../../components/SourceViewer/helpers/indexing';
-import { getDuplications } from '../../../api/components';
+import { SourceViewerContext } from '../../../components/SourceViewer/SourceViewerContext';
+import { WorkspaceContext } from '../../../components/workspace/context';
 import { getBranchLikeQuery } from '../../../helpers/branches';
+import ComponentSourceSnippetViewer from './ComponentSourceSnippetViewer';
+import { groupLocationsByComponent } from './utils';
 
 interface Props {
   branchLike: T.Branch | T.PullRequest | undefined;
index 91ded7f72fd57bbdd3263115c334161f528eb6ab..a932293f62b2b0ecb15ae295b7010820d14689eb 100644 (file)
 import * as React from 'react';
 import classNames from 'classnames';
 import ExpandSnippetIcon from 'sonar-ui-common/components/icons/ExpandSnippetIcon';
-import { scrollHorizontally } from 'sonar-ui-common/helpers/scrolling';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { inSnippet, LINES_BELOW_LAST } from './utils';
+import { scrollHorizontally } from 'sonar-ui-common/helpers/scrolling';
 import Line from '../../../components/SourceViewer/components/Line';
 import { symbolsByLine } from '../../../components/SourceViewer/helpers/indexing';
 import { getSecondaryIssueLocationsForLine } from '../../../components/SourceViewer/helpers/issueLocations';
 import {
-  optimizeLocationMessage,
   optimizeHighlightedSymbols,
+  optimizeLocationMessage,
   optimizeSelectedIssue
 } from '../../../components/SourceViewer/helpers/lines';
+import { inSnippet, LINES_BELOW_LAST } from './utils';
 
 interface Props {
   branchLike: T.BranchLike | undefined;
index 0b78f105f23471fcbd5e9c418f436a3217b52299..b4c433d478be8d6f0e8f564f9d5e813c377ee0c8 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
-import { shallow, mount, ReactWrapper } from 'enzyme';
+import { mount, ReactWrapper, shallow } from 'enzyme';
 import { times } from 'lodash';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import ComponentSourceSnippetViewer from '../ComponentSourceSnippetViewer';
+import { getSources } from '../../../../api/components';
 import {
-  mockMainBranch,
-  mockIssue,
-  mockSourceViewerFile,
   mockFlowLocation,
+  mockIssue,
+  mockMainBranch,
+  mockShortLivingBranch,
   mockSnippetsByComponent,
   mockSourceLine,
-  mockShortLivingBranch
+  mockSourceViewerFile
 } from '../../../../helpers/testMocks';
-import { getSources } from '../../../../api/components';
+import ComponentSourceSnippetViewer from '../ComponentSourceSnippetViewer';
 
 jest.mock('../../../../api/components', () => ({
   getSources: jest.fn().mockResolvedValue([])
index d0032b09b4b2145d3c3855255a4611794300ba63..d3942849c75b93e24ee77ecbc34929e9670d7e9d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import CrossComponentSourceViewerWrapper from '../CrossComponentSourceViewerWrapper';
+import { getDuplications } from '../../../../api/components';
+import { getIssueFlowSnippets } from '../../../../api/issues';
 import {
   mockFlowLocation,
   mockIssue,
@@ -28,8 +29,7 @@ import {
   mockSourceLine,
   mockSourceViewerFile
 } from '../../../../helpers/testMocks';
-import { getIssueFlowSnippets } from '../../../../api/issues';
-import { getDuplications } from '../../../../api/components';
+import CrossComponentSourceViewerWrapper from '../CrossComponentSourceViewerWrapper';
 
 jest.mock('../../../../api/issues', () => {
   const { mockSnippetsByComponent } = require.requireActual('../../../../helpers/testMocks');
index 2424539c41aa975fb7f9dad64aa618d48612d09d..ef8e495d61fa9c66b2f1740a94ec48ed2dbd2adc 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
-import { range } from 'lodash';
 import { shallow } from 'enzyme';
-import SnippetViewer from '../SnippetViewer';
+import { range } from 'lodash';
+import * as React from 'react';
 import {
-  mockSourceViewerFile,
-  mockMainBranch,
   mockIssue,
-  mockSourceLine
+  mockMainBranch,
+  mockSourceLine,
+  mockSourceViewerFile
 } from '../../../../helpers/testMocks';
+import SnippetViewer from '../SnippetViewer';
 
 it('should render correctly', () => {
   const snippet = range(5, 8).map(line => mockSourceLine({ line }));
index 7f93c687f3ab2f73822367ac3cbb90153ada4fba..7d17cb3d81c12e3a3be630d78377df0732ac7570 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { groupLocationsByComponent, createSnippets, expandSnippet } from '../utils';
 import { mockFlowLocation, mockSnippetsByComponent } from '../../../../helpers/testMocks';
+import { createSnippets, expandSnippet, groupLocationsByComponent } from '../utils';
 
 describe('groupLocationsByComponent', () => {
   it('should handle empty args', () => {
index 6c5a23251255bd735e9a0410dc46c0364f5cf91b..e79d6e47685f85c64c95664fb8c1d3031b444945 100644 (file)
@@ -18,7 +18,7 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { Location } from 'sonar-ui-common/helpers/urls';
-import { parseQuery, areMyIssuesSelected, serializeQuery } from './utils';
+import { areMyIssuesSelected, parseQuery, serializeQuery } from './utils';
 
 function parseHash(hash: string) {
   const query: T.RawQuery = {};
index 95c4446ff8d23cc91acbe630a3f472a842188870..76c93284a5fb73cc93877c428ee818c9f82bacd4 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { omit, sortBy, without } from 'lodash';
-import { highlightTerm } from 'sonar-ui-common/helpers/search';
+import * as React from 'react';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { searchAssignees, Query, Facet } from '../utils';
-import Avatar from '../../../components/ui/Avatar';
+import { highlightTerm } from 'sonar-ui-common/helpers/search';
 import ListStyleFacet from '../../../components/facet/ListStyleFacet';
+import Avatar from '../../../components/ui/Avatar';
 import { isUserActive } from '../../../helpers/users';
+import { Facet, Query, searchAssignees } from '../utils';
 
 interface Props {
   assigned: boolean;
index 461e19f38fbcc82292dbfed82e83f1d6cbe66241..278112aab83c6f19b30932c44e00e6af6cb2aef0 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { omit } from 'lodash';
-import { highlightTerm } from 'sonar-ui-common/helpers/search';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Query, Facet } from '../utils';
-import ListStyleFacet from '../../../components/facet/ListStyleFacet';
+import { highlightTerm } from 'sonar-ui-common/helpers/search';
 import { searchIssueAuthors } from '../../../api/issues';
+import ListStyleFacet from '../../../components/facet/ListStyleFacet';
+import { Facet, Query } from '../utils';
 
 interface Props {
   component: T.Component | undefined;
index c390a1ce08a8a5eba9ccbbae602b528060e44083..024ffc8b6fcdc537868975270c164e1d8cc3d775 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as isSameDay from 'date-fns/is_same_day';
 import { max } from 'lodash';
-import { injectIntl, InjectedIntlProps } from 'react-intl';
+import * as React from 'react';
+import { InjectedIntlProps, injectIntl } from 'react-intl';
 import BarChart from 'sonar-ui-common/components/charts/BarChart';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import { Query } from '../utils';
+import DateRangeInput from '../../../components/controls/DateRangeInput';
 import FacetBox from '../../../components/facet/FacetBox';
 import FacetHeader from '../../../components/facet/FacetHeader';
 import FacetItem from '../../../components/facet/FacetItem';
 import { longFormatterOption } from '../../../components/intl/DateFormatter';
 import DateFromNow from '../../../components/intl/DateFromNow';
 import DateTimeFormatter from '../../../components/intl/DateTimeFormatter';
-import DateRangeInput from '../../../components/controls/DateRangeInput';
+import { Query } from '../utils';
 
 interface Props {
   component: T.Component | undefined;
index a6818b86abcbbca2ef8c97ebbb7adf717db95b50..3eb7246ae1fb211036b85168de406952d8c1bb99 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { omit } from 'lodash';
+import * as React from 'react';
 import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { collapsePath } from 'sonar-ui-common/helpers/path';
 import { highlightTerm } from 'sonar-ui-common/helpers/search';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Query, Facet } from '../utils';
-import ListStyleFacet from '../../../components/facet/ListStyleFacet';
 import { getTree, TreeComponent } from '../../../api/components';
+import ListStyleFacet from '../../../components/facet/ListStyleFacet';
+import { Facet, Query } from '../utils';
 
 interface Props {
   componentKey: string;
index 0ed7b7e3df6973ca6363ec1c5d94159a07bea9fc..6b3a11ba3832ec56656cfafdbe270cd5a7750eed 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { omit } from 'lodash';
+import * as React from 'react';
 import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { collapsePath } from 'sonar-ui-common/helpers/path';
 import { highlightTerm } from 'sonar-ui-common/helpers/search';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Query, ReferencedComponent, Facet } from '../utils';
-import { TreeComponent, getTree } from '../../../api/components';
+import { getTree, TreeComponent } from '../../../api/components';
 import ListStyleFacet from '../../../components/facet/ListStyleFacet';
+import { Facet, Query, ReferencedComponent } from '../utils';
 
 interface Props {
   componentKey: string;
index 09c7fb58203834afa4e09fa9d2e27620bed89531..f6ff1cd98498b0968fb7769c788a6e3fc7a3b359 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { omit, uniqBy } from 'lodash';
 import * as React from 'react';
-import { uniqBy, omit } from 'lodash';
 import { connect } from 'react-redux';
-import { highlightTerm } from 'sonar-ui-common/helpers/search';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import { highlightTerm } from 'sonar-ui-common/helpers/search';
 import ListStyleFacet from '../../../components/facet/ListStyleFacet';
-import { Query, ReferencedLanguage, Facet } from '../utils';
 import { getLanguages, Store } from '../../../store/rootReducer';
+import { Facet, Query, ReferencedLanguage } from '../utils';
 
 interface InstalledLanguage {
   key: string;
index d850aa896e5bf73d4f05a0d07f49ef9cfb92b39f..b14b6052b602c0a3a328756212b742de1c3e6ed5 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { omit } from 'lodash';
 import * as React from 'react';
 import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
-import { omit } from 'lodash';
-import { highlightTerm } from 'sonar-ui-common/helpers/search';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import { highlightTerm } from 'sonar-ui-common/helpers/search';
+import { getTree, searchProjects } from '../../../api/components';
 import ListStyleFacet from '../../../components/facet/ListStyleFacet';
-import { Query, ReferencedComponent, Facet } from '../utils';
-import { searchProjects, getTree } from '../../../api/components';
 import Organization from '../../../components/shared/Organization';
+import { Facet, Query, ReferencedComponent } from '../utils';
 
 interface Props {
   component: T.Component | undefined;
index d57abd81a698ee5b23178fdfb833689b92561247..d59d70f4dd94f696cef8a3e8a49ca1d700375662 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { orderBy, without } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { formatFacetStat, Query } from '../utils';
 import FacetBox from '../../../components/facet/FacetBox';
 import FacetHeader from '../../../components/facet/FacetHeader';
 import FacetItem from '../../../components/facet/FacetItem';
 import FacetItemsList from '../../../components/facet/FacetItemsList';
 import MultipleSelectionHint from '../../../components/facet/MultipleSelectionHint';
+import { formatFacetStat, Query } from '../utils';
 
 interface Props {
   fetching: boolean;
index 1732e5270cadd98398319d509acda7f66557ef77..4a28e7708596d2ba2455a7cbb9d12c2ab95fde6e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { omit } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import ListStyleFacet from '../../../components/facet/ListStyleFacet';
-import { Query, ReferencedRule, Facet } from '../utils';
 import { searchRules } from '../../../api/rules';
+import ListStyleFacet from '../../../components/facet/ListStyleFacet';
+import { Facet, Query, ReferencedRule } from '../utils';
 
 interface Props {
   fetching: boolean;
index bbd1920b9dfc9a879deecb224ae6d9ca39440b7e..ea46dab51dd344beb525f0521cfc7e372d0c2a9a 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { orderBy, without } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { formatFacetStat, Query } from '../utils';
 import FacetBox from '../../../components/facet/FacetBox';
 import FacetHeader from '../../../components/facet/FacetHeader';
 import FacetItem from '../../../components/facet/FacetItem';
 import FacetItemsList from '../../../components/facet/FacetItemsList';
-import SeverityHelper from '../../../components/shared/SeverityHelper';
 import MultipleSelectionHint from '../../../components/facet/MultipleSelectionHint';
+import SeverityHelper from '../../../components/shared/SeverityHelper';
+import { formatFacetStat, Query } from '../utils';
 
 interface Props {
   fetching: boolean;
index ade6f7080b855666dc278b2ff2da72bb04745c80..ba3e4c6c88c3190399b7eb35c3408d877a80f64d 100644 (file)
@@ -18,6 +18,7 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { Facet, Query, ReferencedComponent, ReferencedLanguage, ReferencedRule } from '../utils';
 import AssigneeFacet from './AssigneeFacet';
 import AuthorFacet from './AuthorFacet';
 import CreationDateFacet from './CreationDateFacet';
@@ -32,7 +33,6 @@ import StandardFacet from './StandardFacet';
 import StatusFacet from './StatusFacet';
 import TagFacet from './TagFacet';
 import TypeFacet from './TypeFacet';
-import { Query, Facet, ReferencedComponent, ReferencedLanguage, ReferencedRule } from '../utils';
 
 export interface Props {
   component: T.Component | undefined;
index ead348437112ca8883168f55a463b63ba85fb623..c00e5329e16d04a667bf3f650601e66637b20a46 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { omit, sortBy, without } from 'lodash';
 import * as React from 'react';
-import { sortBy, without, omit } from 'lodash';
-import { highlightTerm } from 'sonar-ui-common/helpers/search';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import { highlightTerm } from 'sonar-ui-common/helpers/search';
 import FacetBox from '../../../components/facet/FacetBox';
 import FacetHeader from '../../../components/facet/FacetHeader';
 import FacetItem from '../../../components/facet/FacetItem';
@@ -34,7 +34,7 @@ import {
   renderSansTop25Category,
   renderSonarSourceSecurityCategory
 } from '../../../helpers/security-standard';
-import { Query, STANDARDS, formatFacetStat, Facet } from '../utils';
+import { Facet, formatFacetStat, Query, STANDARDS } from '../utils';
 
 interface Props {
   cwe: string[];
index dda16cd42900e8e02728f44694c3e1b6b5c9060e..47a9264b055236ebee69cad911ce238d0c518bb4 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { orderBy, without } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { formatFacetStat, Query } from '../utils';
 import FacetBox from '../../../components/facet/FacetBox';
 import FacetHeader from '../../../components/facet/FacetHeader';
 import FacetItem from '../../../components/facet/FacetItem';
 import FacetItemsList from '../../../components/facet/FacetItemsList';
-import StatusHelper from '../../../components/shared/StatusHelper';
 import MultipleSelectionHint from '../../../components/facet/MultipleSelectionHint';
+import StatusHelper from '../../../components/shared/StatusHelper';
+import { formatFacetStat, Query } from '../utils';
 
 interface Props {
   fetching: boolean;
index 4907edc42a22cd74ac5204cda433c2fdb6c804aa..209e606ade9513e6c4dab8a6550d1605c64915b0 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { omit } from 'lodash';
 import * as React from 'react';
 import TagsIcon from 'sonar-ui-common/components/icons/TagsIcon';
-import { omit } from 'lodash';
-import { highlightTerm } from 'sonar-ui-common/helpers/search';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Query, Facet } from '../utils';
+import { highlightTerm } from 'sonar-ui-common/helpers/search';
 import { searchIssueTags } from '../../../api/issues';
 import { colors } from '../../../app/theme';
 import ListStyleFacet from '../../../components/facet/ListStyleFacet';
+import { Facet, Query } from '../utils';
 
 interface Props {
   component: T.Component | undefined;
index e10e8ed51b51f7beffaa526d38a333030c55d7d5..ff4885ad4ea26b68f69709c57105500682e2b47d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { orderBy, without } from 'lodash';
 import * as React from 'react';
 import { connect } from 'react-redux';
 import { Link } from 'react-router';
-import { orderBy, without } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import IssueTypeIcon from 'sonar-ui-common/components/icons/IssueTypeIcon';
 import NewsBox from 'sonar-ui-common/components/ui/NewsBox';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import FacetBox from '../../../components/facet/FacetBox';
 import FacetHeader from '../../../components/facet/FacetHeader';
 import FacetItem from '../../../components/facet/FacetItem';
 import FacetItemsList from '../../../components/facet/FacetItemsList';
 import MultipleSelectionHint from '../../../components/facet/MultipleSelectionHint';
-import { formatFacetStat, Query } from '../utils';
+import { ISSUE_TYPES } from '../../../helpers/constants';
 import { getCurrentUser, getCurrentUserSetting, Store } from '../../../store/rootReducer';
 import { setCurrentUserSetting } from '../../../store/users';
-import { ISSUE_TYPES } from '../../../helpers/constants';
+import { formatFacetStat, Query } from '../utils';
 
 interface Props {
   fetching: boolean;
index 4ce377cd1be6e84d54b591ab4c97652024293241..6529d30e5292cd55e4714a30628d33f84133e2a2 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import AssigneeFacet from '../AssigneeFacet';
+import * as React from 'react';
 import { Query } from '../../utils';
+import AssigneeFacet from '../AssigneeFacet';
 
 jest.mock('../../../../store/rootReducer', () => ({}));
 
index aaacb3ecc80aa0e89d7b75513cd4d8d06a29fdc6..49997922475a58bf295d02bef83ab12640860a93 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow, ShallowWrapper } from 'enzyme';
 import { flatten } from 'lodash';
-import Sidebar, { Props } from '../Sidebar';
+import * as React from 'react';
 import { Query } from '../../utils';
+import Sidebar, { Props } from '../Sidebar';
 
 jest.mock('../../../../store/rootReducer', () => ({}));
 
index c63b7e1674384aaa1d90877c194d9d52bb4392da..090aa647fed435c1c08c64746e624074f72f0a1b 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
-import StandardFacet from '../StandardFacet';
-import { Query } from '../../utils';
 import { getStandards } from '../../../../helpers/security-standard';
+import { Query } from '../../utils';
+import StandardFacet from '../StandardFacet';
 
 jest.mock('../../../../helpers/security-standard', () => ({
   ...require.requireActual('../../../../helpers/security-standard'),
index 73fe8ca3029fbabb181c2a9a7dd9e72885237443..a9d5beadcb1c1b32168ce70cf8e1d84a7383c76c 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import StatusFacet from '../StatusFacet';
 
index 52344512ea97393a66ef58fba4d280ea543c1ad1..1fe75f2c67dba0fbc56d4de9936f45b50dc907f1 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import { TypeFacet } from '../TypeFacet';
 
index 8e98b7919cb0e30ea0c96e28d22711a66e73add5..2b8cf29ed890de8762baa67f7d10a3c16d23e0a2 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import {
-  queriesEqual,
   cleanQuery,
-  parseAsBoolean,
   parseAsArray,
+  parseAsBoolean,
+  parseAsDate,
   parseAsString,
+  queriesEqual,
+  serializeDateShort,
   serializeString,
-  serializeStringArray,
-  parseAsDate,
-  serializeDateShort
+  serializeStringArray
 } from 'sonar-ui-common/helpers/query';
-import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import { scrollToElement } from 'sonar-ui-common/helpers/scrolling';
 import { get, save } from 'sonar-ui-common/helpers/storage';
 import { searchMembers } from '../../api/organizations';
index 75a83ccc1763ad9800dc11294269f333865ffdec..8a5b462d0a4b0f21b6f88a632d2e37bb9a9c5853 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import Helmet from 'react-helmet';
 import { FormattedMessage } from 'react-intl';
+import { Button } from 'sonar-ui-common/components/controls/buttons';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getBaseUrl, getReturnUrl } from 'sonar-ui-common/helpers/urls';
-import { Button } from 'sonar-ui-common/components/controls/buttons';
 import { getMigrationStatus, getSystemStatus, migrateDatabase } from '../../../api/system';
+import InstanceMessage from '../../../components/common/InstanceMessage';
 import DateFromNow from '../../../components/intl/DateFromNow';
 import TimeFormatter from '../../../components/intl/TimeFormatter';
-import InstanceMessage from '../../../components/common/InstanceMessage';
 import { isSonarCloud } from '../../../helpers/system';
 import '../styles.css';
 
index 2a6e2636c1cfe27b8ad5687ce81548effdde0472..af233c795b891e12b1792b6a5012743841147062 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable import/order */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import App from '../App';
+import * as React from 'react';
 import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
+import App from '../App';
 
 jest.mock('../../../../api/system', () => ({
   getMigrationStatus: jest.fn(),
index 78aea8ccad8f58eee0cb0897168e66ee249ecf3b..a21f283ed6988c718c0093de3a7f3151eafcc313 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy, uniqBy } from 'lodash';
+import * as React from 'react';
 import Helmet from 'react-helmet';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Header from './Header';
-import EditionBoxes from './EditionBoxes';
-import Footer from './Footer';
-import PluginsList from './PluginsList';
-import Search from './Search';
-import { filterPlugins, parseQuery, Query, serializeQuery } from './utils';
-import Suggestions from '../../app/components/embed-docs-modal/Suggestions';
 import {
   getAvailablePlugins,
+  getInstalledPlugins,
   getInstalledPluginsWithUpdates,
   getPluginUpdates,
   Plugin,
-  PluginPendingResult,
-  getInstalledPlugins
+  PluginPendingResult
 } from '../../api/plugins';
-import { withRouter, Location, Router } from '../../components/hoc/withRouter';
+import Suggestions from '../../app/components/embed-docs-modal/Suggestions';
+import { Location, Router, withRouter } from '../../components/hoc/withRouter';
+import EditionBoxes from './EditionBoxes';
+import Footer from './Footer';
+import Header from './Header';
+import PluginsList from './PluginsList';
+import Search from './Search';
 import './style.css';
+import { filterPlugins, parseQuery, Query, serializeQuery } from './utils';
 
 export interface Props {
   currentEdition?: T.EditionKey;
index df33131b6ae807c33fc7417f635ce80686c060a2..bf9d761eed933c9ba7836bb7dbc2094c8d76b5d1 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import { connect } from 'react-redux';
-import App from './App';
-import { getAppState, getGlobalSettingValue, Store } from '../../store/rootReducer';
 import AdminContext from '../../app/components/AdminContext';
+import { getAppState, getGlobalSettingValue, Store } from '../../store/rootReducer';
+import App from './App';
 
 interface OwnProps {
   location: { pathname: string; query: T.RawQuery };
index 0f3886069821a2cf30605054d385fef20309b6f4..0f0cf9c21a7b22e65fc63f2a45d1bb85fb5d3fb2 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { getMarketplaceNavigation } from '../../api/nav';
 import EditionBox from './components/EditionBox';
 import { EDITIONS } from './utils';
-import { getMarketplaceNavigation } from '../../api/nav';
 
 export interface Props {
   currentEdition?: T.EditionKey;
index e32c877e4f08a9d4e27927c2c6d069cdb5369ef2..b94c5336380634f6f1e1db7e01c392cf79a2b6b2 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { Plugin, PluginPending } from '../../api/plugins';
 import PluginAvailable from './components/PluginAvailable';
 import PluginInstalled from './components/PluginInstalled';
 import { isPluginAvailable, isPluginInstalled } from './utils';
-import { Plugin, PluginPending } from '../../api/plugins';
 
 interface Props {
   plugins: Plugin[];
index 2d7a885cdfc0c4141780e18c1deacaad703ca74a..dd8bc9310c46790ee3e55015f24673907e3b4acb 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
 import RadioToggle from 'sonar-ui-common/components/controls/RadioToggle';
+import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Query } from './utils';
 
 interface Props {
index b7134779e7ebc6d8515aa4ab9e9d8c16f6b1a49b..5a3091c86701bc8549394177efa041b0ed0a1b81 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import EditionBoxes from '../EditionBoxes';
 import { EditionKey } from '../utils';
 
index aff89ab8283ae3b887bda2b0f2ec6315b43dec1f..e17ca61c541ac60aff74940657e019193935ba36 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Footer from '../Footer';
 
 it('should display the number of plugins', () => {
index 998228ca90edbc5b86a3a83209f612adac80fe6b..9c2a970045442fdfb369bebe4fd80b53ca7f0378 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Header from '../Header';
 import { EditionKey } from '../utils';
 
index bf90ce5a9174301903429ce11389e83fc9faec18..a4cd935eca9425c271bcce271a95670ce2a37fc2 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import tooltipDCE from 'Docs/tooltips/editions/datacenter.md';
 import tooltipDE from 'Docs/tooltips/editions/developer.md';
 import tooltipEE from 'Docs/tooltips/editions/enterprise.md';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Edition, getEditionUrl } from '../utils';
 
 const DocMarkdownBlock = lazyLoad(() => import('../../../components/docs/DocMarkdownBlock'));
index d01fb6af0741f66a6db8a7e0bac24a94b715191b..f3a104628cdaf6e4aef29a8c8972b7d7530466b9 100644 (file)
@@ -20,9 +20,9 @@
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { Link } from 'react-router';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   onClose: () => void;
index 5ed93ff0ac55f5c375faadc1ec994b82d7910146..8697d29d5ea977ae4eb0705b0e37595252e5fcd8 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import CheckIcon from 'sonar-ui-common/components/icons/CheckIcon';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
-import PluginUpdateButton from './PluginUpdateButton';
+import CheckIcon from 'sonar-ui-common/components/icons/CheckIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { installPlugin, Plugin, uninstallPlugin, updatePlugin } from '../../../api/plugins';
 import { isPluginAvailable, isPluginInstalled } from '../utils';
-import { Plugin, installPlugin, updatePlugin, uninstallPlugin } from '../../../api/plugins';
+import PluginUpdateButton from './PluginUpdateButton';
 
 interface Props {
   plugin: Plugin;
index f14283e3ff0c0605db562efef9d4a892d79b6289..289bfb46efab1386bcff6f046f9f78f31f2ace10 100644 (file)
  */
 import * as React from 'react';
 import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { PluginAvailable as IPluginAvailable } from '../../../api/plugins';
 import PluginChangeLogButton from './PluginChangeLogButton';
 import PluginDescription from './PluginDescription';
 import PluginLicense from './PluginLicense';
 import PluginOrganization from './PluginOrganization';
 import PluginStatus from './PluginStatus';
 import PluginUrls from './PluginUrls';
-import { PluginAvailable as IPluginAvailable } from '../../../api/plugins';
 
 interface Props {
   plugin: IPluginAvailable;
index db5c5e47995cf952880e54e34d351936410b3218..fa350e3c5324d587b9032d4f3c1f030a82bd8d65 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import PluginChangeLogItem from './PluginChangeLogItem';
 import { Release, Update } from '../../../api/plugins';
+import PluginChangeLogItem from './PluginChangeLogItem';
 
 export interface Props {
   release: Release;
index 76149ba2f36d7df7c4adf39b67d08690f67b103c..c4283eb656e1d9b5d3f327f7bda23269e4bb5c02 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import EllipsisIcon from 'sonar-ui-common/components/icons/EllipsisIcon';
 import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
-import PluginChangeLog from './PluginChangeLog';
+import EllipsisIcon from 'sonar-ui-common/components/icons/EllipsisIcon';
 import { Release, Update } from '../../../api/plugins';
+import PluginChangeLog from './PluginChangeLog';
 
 interface Props {
   release: Release;
index 63be648be040ebcb4a4069c0d67cb5139a516381..78a2249c52974b70dc5c18919a8c20c9959baea1 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import DateFormatter from '../../../components/intl/DateFormatter';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Release, Update } from '../../../api/plugins';
+import DateFormatter from '../../../components/intl/DateFormatter';
 
 interface Props {
   release: Release;
index a13b8c2d37eaeed6d5e8aa0ef1df1bb2f252d942..60d9e1938159eead93dbfe8a879b1cb0ee07cdcc 100644 (file)
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import { PluginInstalled as IPluginInstalled } from '../../../api/plugins';
 import PluginDescription from './PluginDescription';
 import PluginLicense from './PluginLicense';
 import PluginOrganization from './PluginOrganization';
 import PluginStatus from './PluginStatus';
 import PluginUpdates from './PluginUpdates';
 import PluginUrls from './PluginUrls';
-import { PluginInstalled as IPluginInstalled } from '../../../api/plugins';
 
 interface Props {
   plugin: IPluginInstalled;
index f2898f44d5174efa3c88b9916b77d526c42043fa..d90e13f15658be2af4c755f65a5219991b1221d8 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   license?: string;
index 5ea763109f8abe89948c77d75a7d42c346369d67..aed787040a49fc6a483c622ee540b78ba24c3bdd 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import PluginActions from './PluginActions';
 import { Plugin } from '../../../api/plugins';
+import PluginActions from './PluginActions';
 
 interface Props {
   plugin: Plugin;
index 8be60fa667871bba10fd88c5a3f11e00e217afeb..6a1cd72bed1a9921b7579fd09280203e98efe6c8 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Update } from '../../../api/plugins';
 
 interface Props {
index c5e69f6b9c4c49824d369a6cf6c0feb81a7e89ef..dc96d653cb951f8255dfe09db1b89d720a187532 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import PluginChangeLogButton from './PluginChangeLogButton';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Release, Update } from '../../../api/plugins';
+import PluginChangeLogButton from './PluginChangeLogButton';
 
 interface Props {
   update: Update;
index 8516ac00539353556d6afe318defb2317b5a4f05..97c1912f22a5bc45cedb9bf755aed325032850e8 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import PluginUpdateItem from './PluginUpdateItem';
 import { Update } from '../../../api/plugins';
+import PluginUpdateItem from './PluginUpdateItem';
 
 interface Props {
   updates?: Update[];
index c101f2fcf4d3724d4de086ce4c42f502a9343053..a774f10d0bee781a7955c8e2ae199ef832b4c455 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import EditionBox from '../EditionBox';
+import * as React from 'react';
 import { EditionKey } from '../../utils';
+import EditionBox from '../EditionBox';
 
 const DEFAULT_EDITION = {
   key: EditionKey.developer,
index 646d5b849aeddef5f49157d1116772719e6c5ad4..bf71ab0362db1b72997f6b8d670d009983cddb53 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { PluginAvailable, PluginInstalled } from '../../../../api/plugins';
 import PluginActions from '../PluginActions';
-import { PluginInstalled, PluginAvailable } from '../../../../api/plugins';
 
 const installedPlugin: PluginInstalled = {
   key: 'foo',
index 30a3dacd6daafa717241948570458d07eb3f1868..b35267fda6110fb0d592488f02ddfa18068debeb 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import PluginChangeLog, { Props } from '../PluginChangeLog';
 
 it('should render correctly', () => {
index 1cf11a70b1169cbfdbde9234099c4c54c60bd4e4..021bdacf436b999716910906b634d5b29f8664a3 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import PluginDescription from '../PluginDescription';
 
 it('should display the description and category', () => {
index 3bb48de42e2cbca6e807e0350665032176cef3a7..c7439809f80e663163aa22c3e7d6b388003dad9f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import PluginLicense from '../PluginLicense';
 
 it('should display the license field', () => {
index 924f6c60c3d1ee2377542a9fd932434b528c6a4f..c40ee4b1c798826a257aeac0febad730c28c53e0 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import PluginUrls from '../PluginUrls';
 
 it('should display the urls', () => {
index d2e5cbc1f040594bcc781c095a0253bf5dde1784..f1f2f939fa22eb3a13ffe52f4a35fe5420e0c91e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { stringify } from 'querystring';
 import { memoize } from 'lodash';
+import { stringify } from 'querystring';
 import { cleanQuery, parseAsString, serializeString } from 'sonar-ui-common/helpers/query';
 import { omitNil } from 'sonar-ui-common/helpers/request';
 import { Plugin, PluginAvailable, PluginInstalled, PluginPending } from '../../api/plugins';
index e4161058978a324012c0536b4b2ce05e7997e643..70c00e84390faa8bb2ccf3c3538dadf4d39cf810 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink, Button } from 'sonar-ui-common/components/controls/buttons';
+import { Button, ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
-import UsersSelectSearch from '../users/components/UsersSelectSearch';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { searchMembers } from '../../api/organizations';
+import UsersSelectSearch from '../users/components/UsersSelectSearch';
 
 interface Props {
   addMember: (member: T.OrganizationMember) => void;
index 3fa085f956274842545aba5ca32ccf0db05b7ba5..189b0c72efa582cd25baa314d21a2fea84e83f91 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { keyBy, pickBy, some } from 'lodash';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import * as React from 'react';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import OrganizationGroupCheckbox from '../organizations/components/OrganizationGroupCheckbox';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { getUserGroups, UserGroup } from '../../api/users';
+import OrganizationGroupCheckbox from '../organizations/components/OrganizationGroupCheckbox';
 
 interface Props {
   onClose: () => void;
index d42ee0115623f69f06160ba8da64aa352fb7d0f5..f20de765cb267215c3b777d2886c9adcdbd8a76c 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import MembersListItem from './MembersListItem';
 
index 1945857d66f36d68e591ec7d2aabbeee1ef49ad4..10bb78f9570f95727c01dba494c1f1274de4a6eb 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import { getAlmMembersUrl, sanitizeAlmId } from '../../helpers/almIntegrations';
 
 export interface Props {
index e5a148a232103316539726aac3bad1c585899494..0746555b32833fe454c335d75ed941596f61f888 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import ActionsDropdown, {
   ActionsDropdownDivider,
   ActionsDropdownItem
 } from 'sonar-ui-common/components/controls/ActionsDropdown';
-import RemoveMemberForm from './RemoveMemberForm';
-import ManageMemberGroupsForm from './ManageMemberGroupsForm';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import Avatar from '../../components/ui/Avatar';
+import ManageMemberGroupsForm from './ManageMemberGroupsForm';
+import RemoveMemberForm from './RemoveMemberForm';
 
 interface Props {
   member: T.OrganizationMember;
index bedc92b8cbb59863f037a94e0a80acf3ebd42881..0b6978e4590436beee053595d1f3cdda455534b9 100644 (file)
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { Link } from 'react-router';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import DocTooltip from '../../components/docs/DocTooltip';
+import { isGithub, sanitizeAlmId } from '../../helpers/almIntegrations';
 import AddMemberForm from './AddMemberForm';
 import SyncMemberForm from './SyncMemberForm';
-import DocTooltip from '../../components/docs/DocTooltip';
-import { sanitizeAlmId, isGithub } from '../../helpers/almIntegrations';
 
 export interface Props {
   handleAddMember: (member: T.OrganizationMember) => void;
index 95d53640e0951b75481c7ffdea4d528404aadac8..517b21fd2659aa5570bec51ea0f627faff754d4a 100644 (file)
  */
 import * as React from 'react';
 import Helmet from 'react-helmet';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
-import MembersPageHeader from './MembersPageHeader';
-import MembersListHeader from './MembersListHeader';
-import MembersList from './MembersList';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { addMember, removeMember, searchMembers } from '../../api/organizations';
+import { addUserToGroup, removeUserFromGroup, searchUsersGroups } from '../../api/user_groups';
 import A11ySkipTarget from '../../app/components/a11y/A11ySkipTarget';
 import Suggestions from '../../app/components/embed-docs-modal/Suggestions';
-import { searchMembers, addMember, removeMember } from '../../api/organizations';
-import { searchUsersGroups, addUserToGroup, removeUserFromGroup } from '../../api/user_groups';
+import MembersList from './MembersList';
+import MembersListHeader from './MembersListHeader';
+import MembersPageHeader from './MembersPageHeader';
 
 interface Props {
   currentUser: T.LoggedInUser;
index 05c709f39209ab310861ee16d2231e4aef3cbdcc..8fe0df6ba083b16db7d6469521fc6df9a4412525 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { connect } from 'react-redux';
-import OrganizationMembers from './OrganizationMembers';
-import { getOrganizationByKey, Store } from '../../store/rootReducer';
 import { withCurrentUser } from '../../components/hoc/withCurrentUser';
+import { getOrganizationByKey, Store } from '../../store/rootReducer';
+import OrganizationMembers from './OrganizationMembers';
 
 interface OwnProps {
   params: { organizationKey: string };
index 905f5056bd5664314450ff2fba421a14b13a658d..8093cd17908a312f3f8ababdb0a3dfcb4ffec28c 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   onClose: () => void;
index bcde5a4acb864fc9b8dd3fc810f603cdf031d678..beca324f2646bbedaf2f7aeb94e0055042f5173f 100644 (file)
 import * as React from 'react';
 import { connect } from 'react-redux';
 import { Link } from 'react-router';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import RadioCard from 'sonar-ui-common/components/controls/RadioCard';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { setOrganizationMemberSync, syncMembers } from '../../api/organizations';
 import { sanitizeAlmId } from '../../helpers/almIntegrations';
 import { fetchOrganization } from '../../store/rootActions';
index 08a930d9aee1c7e96b6b4c9dccf2dc7f37056b38..dd5e550a2ceed90f3b528b0b9b773784a285ee47 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click, submit } from 'sonar-ui-common/helpers/testUtils';
-import AddMemberForm from '../AddMemberForm';
 import { searchMembers } from '../../../api/organizations';
+import AddMemberForm from '../AddMemberForm';
 
 jest.mock('../../../api/organizations', () => ({
   searchMembers: jest.fn().mockResolvedValue({ paging: {}, users: [] })
index 30b2f90697462160abb63ebc77a0f0d9c96590e0..dbce6af013137535a89ab88aa44b786c3e8bd08e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ManageMemberGroupsForm from '../ManageMemberGroupsForm';
 
 const member = { login: 'admin', name: 'Admin Istrator', avatar: '', groupCount: 3 };
index b04b6978982a92ae92d8563ff5e15cf5d79f084d..19ad57b975ac6df516d517369548c97548954688 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import MembersList from '../MembersList';
+import * as React from 'react';
 import { mockLoggedInUser, mockOrganization } from '../../../helpers/testMocks';
+import MembersList from '../MembersList';
 
 const members = [
   { login: 'admin', name: 'Admin Istrator', avatar: '', groupCount: 3 },
index 5c2d17ddc1db7380e36ffef2e82eb567afcab43f..9a54ce60ebe004271f311053dff4ec08055a475a 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import MembersListHeader, { Props } from '../MembersListHeader';
+import * as React from 'react';
 import { mockOrganization, mockOrganizationWithAlm } from '../../../helpers/testMocks';
+import MembersListHeader, { Props } from '../MembersListHeader';
 
 it('should render without the total', () => {
   expect(shallowRender({ total: undefined })).toMatchSnapshot();
index 88d8c7e2d9f9c491fc66cb13ccd539dd308ecbac..857aee1488eec2cc95d8c137053ad06794919172 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
+import { mockOrganization, mockOrganizationWithAdminActions } from '../../../helpers/testMocks';
 import MembersListItem from '../MembersListItem';
-import { mockOrganizationWithAdminActions, mockOrganization } from '../../../helpers/testMocks';
 
 it('should not render actions and groups for non admin', () => {
   expect(shallowRender({ organization: mockOrganization() })).toMatchSnapshot();
index 98cae6d4a6922fbed5c6f968e06009651735bf13..a2ce15d4c401b89161e776712be22240623f64f7 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import MembersPageHeader, { Props } from '../MembersPageHeader';
+import * as React from 'react';
 import {
   mockOrganization,
-  mockOrganizationWithAlm,
-  mockOrganizationWithAdminActions
+  mockOrganizationWithAdminActions,
+  mockOrganizationWithAlm
 } from '../../../helpers/testMocks';
+import MembersPageHeader, { Props } from '../MembersPageHeader';
 
 it('should render correctly', () => {
   expect(shallowRender({ loading: true })).toMatchSnapshot();
index 0eeb0e9ba9d71db4d67d3ff3c2ee05518c89275a..3f8e8c1d99742d839bf1fb414db0e1999121cb20 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import OrganizationMembers from '../OrganizationMembers';
-import { searchMembers, addMember, removeMember } from '../../../api/organizations';
-import { searchUsersGroups, addUserToGroup, removeUserFromGroup } from '../../../api/user_groups';
+import { addMember, removeMember, searchMembers } from '../../../api/organizations';
+import { addUserToGroup, removeUserFromGroup, searchUsersGroups } from '../../../api/user_groups';
 import {
   mockLoggedInUser,
   mockOrganization,
   mockOrganizationWithAdminActions,
   mockOrganizationWithAlm
 } from '../../../helpers/testMocks';
+import OrganizationMembers from '../OrganizationMembers';
 
 jest.mock('../../../api/organizations', () => ({
   addMember: jest.fn().mockResolvedValue({ login: 'bar', name: 'Bar', groupCount: 1 }),
index 6e7caf42f18b19d8016f99ab986ee0513672db20..684f4abdfd68567a900e5536352cabe797008b18 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import RemoveMemberForm from '../RemoveMemberForm';
+import * as React from 'react';
 import { mockEvent } from '../../../helpers/testMocks';
+import RemoveMemberForm from '../RemoveMemberForm';
 
 const member = { login: 'admin', name: 'Admin Istrator', avatar: '', groupCount: 3 };
 const organization = { key: 'myorg', name: 'MyOrg' };
index e56a96348eb0696f67e5daed6845e4afe2b36743..9116ec241ed3606e999ce254ac6325d9ea60ac2d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { SyncMemberForm } from '../SyncMemberForm';
 import { setOrganizationMemberSync, syncMembers } from '../../../api/organizations';
 import { mockOrganizationWithAlm } from '../../../helpers/testMocks';
+import { SyncMemberForm } from '../SyncMemberForm';
 
 jest.mock('../../../api/organizations', () => ({
   setOrganizationMemberSync: jest.fn().mockResolvedValue(undefined),
index dcf0b9d33277298ee9f8bbb6b97848f609c8ee06..2888d939f2674d6aaed30947529bdcafdbd2ad54 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as actions from '../actions';
-import { mockOrganization } from '../../../helpers/testMocks';
 import { deleteOrganization, updateOrganization } from '../../../api/organizations';
+import { mockOrganization } from '../../../helpers/testMocks';
+import * as actions from '../actions';
 
 jest.mock('../../../api/organizations', () => ({
   deleteOrganization: jest.fn().mockResolvedValue({}),
index 0bc1166bfafc2492543d54f97d19abe8a818be48..b6cd0db81665d1bd18e26d39d1fa6c5bed69b732 100644 (file)
@@ -20,8 +20,8 @@
 import { Dispatch } from 'redux';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import * as api from '../../api/organizations';
-import * as actions from '../../store/organizations';
 import { addGlobalSuccessMessage } from '../../store/globalMessages';
+import * as actions from '../../store/organizations';
 
 export function updateOrganization(key: string, changes: T.OrganizationBase) {
   return (dispatch: Dispatch<any>) => {
index 09cc660109c31a41f1b0446b710337a6fd21d736..7bd96ed2e9371862ab3fe7a20be68647bd65d307 100644 (file)
@@ -20,9 +20,9 @@
 import * as React from 'react';
 import { connect } from 'react-redux';
 import { RouterState } from 'react-router';
-import { getCurrentUser, getOrganizationByKey, Store } from '../../../store/rootReducer';
 import handleRequiredAuthorization from '../../../app/utils/handleRequiredAuthorization';
 import { isLoggedIn } from '../../../helpers/users';
+import { getCurrentUser, getOrganizationByKey, Store } from '../../../store/rootReducer';
 
 interface StateToProps {
   currentUser: T.CurrentUser;
index b7748f2011c9cde27526645ffde778f372fb925b..c881445bc6a0740eea1caeac95040987b6b7405b 100644 (file)
  */
 import * as React from 'react';
 import IdentityProviderLink from 'sonar-ui-common/components/controls/IdentityProviderLink';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { save } from 'sonar-ui-common/helpers/storage';
-import { translateWithParameters, translate } from 'sonar-ui-common/helpers/l10n';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import {
-  BIND_ORGANIZATION_REDIRECT_TO_ORG_TIMESTAMP,
-  BIND_ORGANIZATION_KEY
-} from '../../create/organization/utils';
 import { getAlmAppInfo } from '../../../api/alm-integration';
 import { sanitizeAlmId } from '../../../helpers/almIntegrations';
+import {
+  BIND_ORGANIZATION_KEY,
+  BIND_ORGANIZATION_REDIRECT_TO_ORG_TIMESTAMP
+} from '../../create/organization/utils';
 
 interface Props {
   currentUser: T.LoggedInUser;
index 24545ac72499f2734ec36155760a1a0b3cbcef4e..97ae9e70640827158b7ab35f647205d1608403ec 100644 (file)
  */
 import * as React from 'react';
 import { connect } from 'react-redux';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import InstanceMessage from '../../../components/common/InstanceMessage';
-import { deleteOrganization } from '../actions';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { getOrganizationBilling } from '../../../api/organizations';
-import { isSonarCloud } from '../../../helpers/system';
-import { withRouter, Router } from '../../../components/hoc/withRouter';
 import addGlobalSuccessMessage from '../../../app/utils/addGlobalSuccessMessage';
+import InstanceMessage from '../../../components/common/InstanceMessage';
+import { Router, withRouter } from '../../../components/hoc/withRouter';
+import { isSonarCloud } from '../../../helpers/system';
+import { deleteOrganization } from '../actions';
 
 interface DispatchToProps {
   deleteOrganization: (key: string) => Promise<void>;
index 8c8d98d9c677e3bc3a38be024affc85a0f31f145..993f14040b93a363d85fe585818b903176332abc 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { debounce } from 'lodash';
 import * as React from 'react';
 import Helmet from 'react-helmet';
 import { connect } from 'react-redux';
-import { debounce } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { SubmitButton } from 'sonar-ui-common/components/controls/buttons';
-import OrganizationBind from './OrganizationBind';
-import OrganizationDelete from './OrganizationDelete';
-import { updateOrganization } from '../actions';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import OrganizationAvatar from '../../../components/common/OrganizationAvatar';
 import { whenLoggedIn } from '../../../components/hoc/whenLoggedIn';
 import { hasAdvancedALMIntegration } from '../../../helpers/almIntegrations';
+import { updateOrganization } from '../actions';
+import OrganizationBind from './OrganizationBind';
+import OrganizationDelete from './OrganizationDelete';
 
 interface DispatchProps {
   updateOrganization: (organization: string, changes: T.OrganizationBase) => Promise<any>;
index 43c0a6a434e03bbb8521a83e7b7d03286ed9a044..07df070635e1610ae4b49100ed9cbbd7fd08186d 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { Button } from 'sonar-ui-common/components/controls/buttons';
 import OnboardingAddMembersIcon from 'sonar-ui-common/components/icons/OnboardingAddMembersIcon';
 import OnboardingProjectIcon from 'sonar-ui-common/components/icons/OnboardingProjectIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Button } from 'sonar-ui-common/components/controls/buttons';
 import { OnboardingContextShape } from '../../../app/components/OnboardingContext';
-import { withRouter, Router } from '../../../components/hoc/withRouter';
+import { Router, withRouter } from '../../../components/hoc/withRouter';
 import '../../tutorials/styles.css';
 import './OrganizationEmpty.css';
 
index 07e4450e8aa663ab4c4f92be3fc75908869def8a..5ea47e0c0bf7ab437891b6f55069acb801246945 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
 
 interface Props {
index 18ebcc78c521f47567331eb4e37f94c99431ca72..9422be09cd4af8b483d6f8bb02584b9487d49e38 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { Location } from 'history';
 import * as React from 'react';
 import Helmet from 'react-helmet';
 import { connect } from 'react-redux';
-import { Location } from 'history';
-import OrganizationNavigation from '../navigation/OrganizationNavigation';
-import NotFound from '../../../app/components/NotFound';
 import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
+import NotFound from '../../../app/components/NotFound';
+import { fetchOrganization } from '../../../store/rootActions';
 import {
-  getOrganizationByKey,
   getCurrentUser,
   getMyOrganizations,
+  getOrganizationByKey,
   Store
 } from '../../../store/rootReducer';
-import { fetchOrganization } from '../../../store/rootActions';
+import OrganizationNavigation from '../navigation/OrganizationNavigation';
 
 interface OwnProps {
   children?: React.ReactNode;
index 4eab0d0de2b29f9af222e6ba85a0cb3b28278378..865fe08da40d343e1a3bc051e405fce49a360070 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import AllProjectsContainer from '../../projects/components/AllProjectsContainer';
 import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
+import AllProjectsContainer from '../../projects/components/AllProjectsContainer';
 
 interface Props {
   location: { pathname: string; query: T.Dict<string> };
index e7aac456f71bb6390cb8c49a410608905bf89916..8ece0679d4d65f4bd1eb552b64a9b5a08a1caffd 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
 import { Location } from 'history';
+import * as React from 'react';
 import { hasAdminAccess, OrganizationAccess } from '../OrganizationAccessContainer';
 
 jest.mock('../../../../app/utils/handleRequiredAuthorization', () => ({ default: jest.fn() }));
index c42dea7a07a945834f62f248054647c3b29c71d5..f8c1ff8eb29ef30aec6c282dbe1115acbfdf146c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { save } from 'sonar-ui-common/helpers/storage';
-import OrganizationBind from '../OrganizationBind';
-import {
-  BIND_ORGANIZATION_REDIRECT_TO_ORG_TIMESTAMP,
-  BIND_ORGANIZATION_KEY
-} from '../../../create/organization/utils';
 import { getAlmAppInfo } from '../../../../api/alm-integration';
 import {
   mockAlmApplication,
   mockLoggedInUser,
   mockOrganization
 } from '../../../../helpers/testMocks';
+import {
+  BIND_ORGANIZATION_KEY,
+  BIND_ORGANIZATION_REDIRECT_TO_ORG_TIMESTAMP
+} from '../../../create/organization/utils';
+import OrganizationBind from '../OrganizationBind';
 
 jest.mock('../../../../api/alm-integration', () => ({
   getAlmAppInfo: jest.fn(() => Promise.resolve({ application: mockAlmApplication() }))
index 29d1d6f8bba2d0fabb240d875e61f6dba0e5d616..2a51b22c354062070d9f4f7d3da9e10b8d905b1e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { OrganizationDelete } from '../OrganizationDelete';
 import { getOrganizationBilling } from '../../../../api/organizations';
 import { isSonarCloud } from '../../../../helpers/system';
+import { OrganizationDelete } from '../OrganizationDelete';
 
 jest.mock('../../../../api/organizations', () => ({
   getOrganizationBilling: jest.fn(() =>
index 357786f3d9be19c4918bbd5aa2e67f3023795f70..7713247185a10c76121d9cc3979f3d25f0b70531 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { OrganizationEdit } from '../OrganizationEdit';
+import * as React from 'react';
 import { mockLoggedInUser } from '../../../../helpers/testMocks';
+import { OrganizationEdit } from '../OrganizationEdit';
 
 it('smoke test', () => {
   const organization = { key: 'foo', name: 'Foo' };
index b40a3cb48424ae962ed56b12b0e11f3fd4453e9a..75e0c52f311793e203dd168fcde181c8ad6ffceb 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
-import { OrganizationEmpty } from '../OrganizationEmpty';
 import {
-  mockRouter,
   mockOrganization,
-  mockOrganizationWithAlm
+  mockOrganizationWithAlm,
+  mockRouter
 } from '../../../../helpers/testMocks';
+import { OrganizationEmpty } from '../OrganizationEmpty';
 
 const organization: T.Organization = mockOrganization();
 
index 7289fe42775eb26a9b22d338f8f2065a6020bf34..477092056ce0990c496e9f865349d0f4127bb164 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import OrganizationGroupCheckbox from '../OrganizationGroupCheckbox';
 
 const group = {
index 7adf2005c88166654738a26b86665b15192364d3..abd4b3a79640357e296d5ae42e8c04639c5f0f04 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
 import { Location } from 'history';
+import * as React from 'react';
 import { OrganizationPage } from '../OrganizationPage';
 
 const fetchOrganization = jest.fn().mockResolvedValue(undefined);
index a2f791bdc0f0d147e18ad7010527b53195d623d0..9491503f9ff3573975c9e73e3c59be0427e7cfdb 100644 (file)
  */
 import * as React from 'react';
 import ContextNavBar from 'sonar-ui-common/components/ui/ContextNavBar';
+import { rawSizes } from '../../../app/theme';
 import OrganizationNavigationHeader from './OrganizationNavigationHeader';
-import OrganizationNavigationMeta from './OrganizationNavigationMeta';
 import OrganizationNavigationMenuContainer from './OrganizationNavigationMenuContainer';
-import { rawSizes } from '../../../app/theme';
+import OrganizationNavigationMeta from './OrganizationNavigationMeta';
 
 interface Props {
   currentUser: T.CurrentUser;
index 9f585ca8beeaa8fa6c72ad581f5748bed281ebb8..abe16bfa896d339fdf4af873099449a3226857d7 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as classNames from 'classnames';
 import * as React from 'react';
-import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import { Link } from 'react-router';
-import * as classNames from 'classnames';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
+import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   location: { pathname: string };
index 25f11add26650f691e891ea4c3d5d692d2e1eae0..187a2e648164b1ec8775f0bdd69e464cd0e8c6e6 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as classNames from 'classnames';
 import * as React from 'react';
-import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import { Link } from 'react-router';
-import * as classNames from 'classnames';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
+import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   location: { pathname: string };
index 9c5ecf259c52f701ffbcd34cd69c00ed97b270fc..0dfceb1a3c76c2f26049ad6053ece99be7f349b0 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { sortBy } from 'lodash';
 import * as React from 'react';
-import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import { Link } from 'react-router';
-import { sortBy } from 'lodash';
+import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
 import OrganizationAvatar from '../../../components/common/OrganizationAvatar';
 import OrganizationListItem from '../../../components/ui/OrganizationListItem';
 import {
-  sanitizeAlmId,
+  getUserAlmKey,
   hasAdvancedALMIntegration,
-  getUserAlmKey
+  sanitizeAlmId
 } from '../../../helpers/almIntegrations';
 
 export interface Props {
index 4c8e786326ab444b60f80f4405cc4870dc859dd5..a4cc60b8daadd8faa8f6f391fb1368931f38aa62 100644 (file)
@@ -22,11 +22,11 @@ import { connect } from 'react-redux';
 import { Link } from 'react-router';
 import NavBarTabs from 'sonar-ui-common/components/ui/NavBarTabs';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import OrganizationNavigationExtensions from './OrganizationNavigationExtensions';
-import OrganizationNavigationAdministration from './OrganizationNavigationAdministration';
-import { getQualityGatesUrl } from '../../../helpers/urls';
 import { hasPrivateAccess, isCurrentUserMemberOf } from '../../../helpers/organizations';
+import { getQualityGatesUrl } from '../../../helpers/urls';
 import { getCurrentUser, getMyOrganizations, Store } from '../../../store/rootReducer';
+import OrganizationNavigationAdministration from './OrganizationNavigationAdministration';
+import OrganizationNavigationExtensions from './OrganizationNavigationExtensions';
 
 interface StateToProps {
   currentUser: T.CurrentUser;
index e1528c451adbd8e0ad41093179cfda59363dae8c..5dca58a6fcc153b926b18935e5863f2d778be9b6 100644 (file)
@@ -21,8 +21,8 @@ import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import HomePageSelect from '../../../components/controls/HomePageSelect';
 import DocTooltip from '../../../components/docs/DocTooltip';
-import { isSonarCloud } from '../../../helpers/system';
 import { hasPrivateAccess, isPaidOrganization } from '../../../helpers/organizations';
+import { isSonarCloud } from '../../../helpers/system';
 
 interface Props {
   currentUser: T.CurrentUser;
index fb2557584631a2a53850fc3234c74d2b1ead6e9b..e2dc7293882e14c12733962937812c6829a9fee4 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import OrganizationNavigation from '../OrganizationNavigation';
 
 it('render', () => {
index 13fc21eb36d0e0fac2ed0306fc51029aa0bb4d61..f768734330edbd4bb1f1e819ebb31d52fae72ffa 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import OrganizationNavigationAdministration from '../OrganizationNavigationAdministration';
 
 it('renders', () => {
index ab3816953c8866932cba5fe3d426e81421ccb334..d808a6a18955b4044ac663e00bc5df7efe3eb640 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import OrganizationNavigationHeader, { Props } from '../OrganizationNavigationHeader';
+import * as React from 'react';
 import {
-  mockOrganizationWithAlm,
   mockCurrentUser,
-  mockLoggedInUser
+  mockLoggedInUser,
+  mockOrganizationWithAlm
 } from '../../../../helpers/testMocks';
+import OrganizationNavigationHeader, { Props } from '../OrganizationNavigationHeader';
 
 it('renders', () => {
   expect(shallowRender()).toMatchSnapshot();
index 1768bd4ef2e4d850f53bc47dc976873a4f2ccd46..b4abe055d253bb3bc076c4931473c623004844f2 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { hasPrivateAccess, isCurrentUserMemberOf } from '../../../../helpers/organizations';
 import { OrganizationNavigationMenu } from '../OrganizationNavigationMenuContainer';
-import { isCurrentUserMemberOf, hasPrivateAccess } from '../../../../helpers/organizations';
 
 jest.mock('../../../../helpers/organizations', () => ({
   isCurrentUserMemberOf: jest.fn().mockReturnValue(true),
index d66b583fdc53dac7de0597cab2f679cc53b9bf6c..1b499889917d681ca9d547ed1a05bcfb36369730 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import OrganizationNavigationMeta from '../OrganizationNavigationMeta';
 
 jest.mock('../../../../helpers/system', () => ({ isSonarCloud: () => true }));
index e25b348a2e8f464b1c2a8dcfee5c033f30b2e417..b891744a2fe814a48687097cc9bbdfb602691d88 100644 (file)
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { RouterState, RedirectFunction } from 'react-router';
+import { RedirectFunction, RouterState } from 'react-router';
 import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
 import codingRulesRoutes from '../coding-rules/routes';
 import qualityGatesRoutes from '../quality-gates/routes';
index ba58b1dbc004e687b6d9ff46edcb35915e2d2457..e5d231148a284ac7f57f9fe32db7925eda2df2f4 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { BadgeType } from './utils';
 
 interface Props {
index 56ae174319e010030205e2887d115d841d754df4..4856b2c008722b237992af413759c0b7ccef6371 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { getLocalizedMetricName, translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import Select from 'sonar-ui-common/components/controls/Select';
-import { BadgeColors, BadgeType, BadgeOptions, BadgeFormats } from './utils';
+import { getLocalizedMetricName, translate } from 'sonar-ui-common/helpers/l10n';
 import { fetchWebApi } from '../../../api/web-api';
+import { BadgeColors, BadgeFormats, BadgeOptions, BadgeType } from './utils';
 
 interface Props {
   className?: string;
index 64b5fe1f8601c4e9fcac6b3689d2dfd0d285d8f9..8efeea8f9b2842ed3345e3c1957aa25e8f9ddbf8 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
-import BadgeButton from './BadgeButton';
-import BadgeParams from './BadgeParams';
-import { BadgeType, BadgeOptions, getBadgeUrl, getBadgeSnippet } from './utils';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import CodeSnippet from '../../../components/common/CodeSnippet';
 import { getBranchLikeQuery } from '../../../helpers/branches';
 import { isSonarCloud } from '../../../helpers/system';
+import BadgeButton from './BadgeButton';
+import BadgeParams from './BadgeParams';
 import './styles.css';
+import { BadgeOptions, BadgeType, getBadgeSnippet, getBadgeUrl } from './utils';
 
 interface Props {
   branchLike?: T.BranchLike;
index ca5d25df76d35be07bfdecb184d9b4ef095e87cb..4338784024b93e11d4a897a06fe1e182b30e1e56 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import BadgeButton from '../BadgeButton';
 import { BadgeType } from '../utils';
index 87efe41ee80afd351992110b46d4a149d24cf0a2..9f278492ff508875dafcc454f25bacbf8f8edb63 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import BadgeParams from '../BadgeParams';
 import { BadgeType } from '../utils';
 
index 2ed4edc72e39c2f6634eeb4268cd4e2c94c56d0e..5daad7315a279d7ae42b254696ade0b7c203f433 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { Location } from 'sonar-ui-common/helpers/urls';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
-import BadgesModal from '../BadgesModal';
+import { Location } from 'sonar-ui-common/helpers/urls';
 import { isSonarCloud } from '../../../../helpers/system';
+import BadgesModal from '../BadgesModal';
 
 jest.mock('sonar-ui-common/helpers/urls', () => ({
   getHostUrl: () => 'host',
index ee6fe616726c6e5e987abedb60fa763ed0d719a6..5b4b603957b5d4a4ec0ff03e7824ee89be40c54c 100644 (file)
@@ -18,7 +18,7 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { Location } from 'sonar-ui-common/helpers/urls';
-import { getBadgeUrl, BadgeOptions, BadgeType, getBadgeSnippet } from '../utils';
+import { BadgeOptions, BadgeType, getBadgeSnippet, getBadgeUrl } from '../utils';
 
 jest.mock('sonar-ui-common/helpers/urls', () => ({
   ...require.requireActual('sonar-ui-common/helpers/urls'),
index 3c2d06963a1db277a3cfd243ee92b115001752d7..71fd2c09ed805cf92accc1859d1138de802b418e 100644 (file)
  */
 import * as React from 'react';
 import { Helmet } from 'react-helmet';
-import { getBaseUrl, getPathUrlAsString } from 'sonar-ui-common/helpers/urls';
 import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
-import OverviewApp from './OverviewApp';
+import { getBaseUrl, getPathUrlAsString } from 'sonar-ui-common/helpers/urls';
 import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
-import { withRouter, Router } from '../../../components/hoc/withRouter';
-import { getProjectUrl } from '../../../helpers/urls';
+import { Router, withRouter } from '../../../components/hoc/withRouter';
+import { isPullRequest, isShortLivingBranch } from '../../../helpers/branches';
 import { isSonarCloud } from '../../../helpers/system';
-import { isShortLivingBranch, isPullRequest } from '../../../helpers/branches';
+import { getProjectUrl } from '../../../helpers/urls';
+import OverviewApp from './OverviewApp';
 
 const EmptyOverview = lazyLoad(() => import('./EmptyOverview'));
 const ReviewApp = lazyLoad(() => import('../pullRequests/ReviewApp'));
index 62d696e2a31c8c52bcc56c9a3cc4318cfedda782..f8e88da57430599682aac38052a8a3ff5b941cfd 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
 import { sortBy } from 'lodash';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import DateTooltipFormatter from '../../../components/intl/DateTooltipFormatter';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { getApplicationLeak } from '../../../api/application';
 import DateFromNow from '../../../components/intl/DateFromNow';
+import DateTooltipFormatter from '../../../components/intl/DateTooltipFormatter';
 
 interface Props {
   branch?: T.LongLivingBranch;
index 85deb63e71972adecc348827291e0dc2b14261f4..6035db375762c317b687f10491621994a14e23c4 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { connect } from 'react-redux';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import { connect } from 'react-redux';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { isBranch, isLongLivingBranch, isMainBranch } from '../../../helpers/branches';
+import { isSonarCloud } from '../../../helpers/system';
+import { isLoggedIn } from '../../../helpers/users';
+import { getCurrentUser, Store } from '../../../store/rootReducer';
 import AnalyzeTutorial from '../../tutorials/analyzeProject/AnalyzeTutorial';
 import AnalyzeTutorialSonarCloud from '../../tutorials/analyzeProject/AnalyzeTutorialSonarCloud';
 import MetaContainer from '../meta/MetaContainer';
-import { isLongLivingBranch, isBranch, isMainBranch } from '../../../helpers/branches';
-import { isLoggedIn } from '../../../helpers/users';
-import { getCurrentUser, Store } from '../../../store/rootReducer';
-import { isSonarCloud } from '../../../helpers/system';
 
 interface OwnProps {
   branchLike?: T.BranchLike;
index 49963fa193d8e4ba532f21db94b5c23ddaa04498..265c7f49b298c0f027e1f570ffe2d46a402fa79b 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as differenceInDays from 'date-fns/difference_in_days';
-import { injectIntl, InjectedIntlProps } from 'react-intl';
-import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
+import { InjectedIntlProps, injectIntl } from 'react-intl';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import DateFromNow from '../../../components/intl/DateFromNow';
+import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import DateFormatter, { longFormatterOption } from '../../../components/intl/DateFormatter';
+import DateFromNow from '../../../components/intl/DateFromNow';
 import DateTimeFormatter, { formatterOption } from '../../../components/intl/DateTimeFormatter';
 import { getPeriodDate, getPeriodLabel } from '../../../helpers/periods';
 
index 9c91fb05acd2f7a96d14dc231b575ddb4623eeb3..c907475cef5423134f9441e510d9bc06958c63a8 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { uniq } from 'lodash';
+import * as React from 'react';
 import { connect } from 'react-redux';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import ApplicationQualityGate from '../qualityGate/ApplicationQualityGate';
-import Bugs from '../main/Bugs';
-import CodeSmells from '../main/CodeSmells';
-import Coverage from '../main/Coverage';
-import Duplications from '../main/Duplications';
-import VulnerabilitiesAndHotspots from '../main/VulnerabilitiesAndHotspots';
-import MetaContainer from '../meta/MetaContainer';
-import QualityGate from '../qualityGate/QualityGate';
-import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
 import { getMeasuresAndMeta } from '../../../api/measures';
 import { getAllTimeMachineData } from '../../../api/time-machine';
-import { enhanceMeasuresWithMetrics } from '../../../helpers/measures';
-import { getLeakPeriod } from '../../../helpers/periods';
-import { METRICS, HISTORY_METRICS_LIST } from '../utils';
-import {
-  DEFAULT_GRAPH,
-  getDisplayedHistoryMetrics,
-  getProjectActivityGraph
-} from '../../projectActivity/utils';
+import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
 import {
-  isSameBranchLike,
+  getBranchLikeDisplayName,
   getBranchLikeQuery,
   isLongLivingBranch,
   isMainBranch,
-  getBranchLikeDisplayName
+  isSameBranchLike
 } from '../../../helpers/branches';
+import { enhanceMeasuresWithMetrics } from '../../../helpers/measures';
+import { getLeakPeriod } from '../../../helpers/periods';
 import { fetchMetrics } from '../../../store/rootActions';
 import { getMetrics, Store } from '../../../store/rootReducer';
+import {
+  DEFAULT_GRAPH,
+  getDisplayedHistoryMetrics,
+  getProjectActivityGraph
+} from '../../projectActivity/utils';
+import Bugs from '../main/Bugs';
+import CodeSmells from '../main/CodeSmells';
+import Coverage from '../main/Coverage';
+import Duplications from '../main/Duplications';
+import VulnerabilitiesAndHotspots from '../main/VulnerabilitiesAndHotspots';
+import MetaContainer from '../meta/MetaContainer';
+import ApplicationQualityGate from '../qualityGate/ApplicationQualityGate';
+import QualityGate from '../qualityGate/QualityGate';
 import '../styles.css';
+import { HISTORY_METRICS_LIST, METRICS } from '../utils';
 
 interface Props {
   branchLike?: T.BranchLike;
index 681cd04a55b8746851071ee8d2ef6ca2f1585cb8..c390784e15d82971c433d1fa2d0435467c647ceb 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { max } from 'd3-array';
+import * as React from 'react';
 import LineChart from 'sonar-ui-common/components/charts/LineChart';
 
 const HEIGHT = 80;
index ea7d83aa65837714a0f47f46e04a9883e96d157f..ae3a4f522c83ed8db03d24ca93a2a5deefdb34fe 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { App } from '../App';
+import * as React from 'react';
 import { isSonarCloud } from '../../../../helpers/system';
+import { App } from '../App';
 
 jest.mock('../../../../helpers/system', () => ({ isSonarCloud: jest.fn() }));
 
index d669efcec366982d834ba16e7b7d8787246e167f..6b9831bbca03f7c16d071ef699f59eb5b3dfc1fb 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import ApplicationLeakPeriodLegend from '../ApplicationLeakPeriodLegend';
 
index 1d986047c0c035bfdf945ce148c671e72c9b749c..f442759f929f270ef8883fcbabbff8370c7596c7 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { EmptyOverview, WarningMessage } from '../EmptyOverview';
+import * as React from 'react';
 import {
-  mockPullRequest,
+  mockComponent,
   mockLoggedInUser,
   mockMainBranch,
-  mockComponent
+  mockPullRequest
 } from '../../../../helpers/testMocks';
+import { EmptyOverview, WarningMessage } from '../EmptyOverview';
 
 const branch = mockMainBranch();
 const component = mockComponent({ version: '0.0.1' });
index 14cf3822ed7007e8bc06cbde3f8aab5a4d93e1a5..4009de8b1b2787bceb268ef676324cde3951afa7 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as differenceInDays from 'date-fns/difference_in_days';
-import { InjectedIntlProps } from 'react-intl';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { InjectedIntlProps } from 'react-intl';
 import { LeakPeriodLegend } from '../LeakPeriodLegend';
 
 jest.mock('date-fns/difference_in_days', () => jest.fn().mockReturnValue(10));
index 103fa901c0687ad6327a0d64805dbc8d38ac266c..f032121332f0c002f1ccfcbcd6542a50d5824127 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { OverviewApp } from '../OverviewApp';
 import { getMeasuresAndMeta } from '../../../../api/measures';
 import { getAllTimeMachineData } from '../../../../api/time-machine';
 import {
-  mockMainBranch,
   mockComponent,
-  mockMetric,
+  mockLongLivingBranch,
+  mockMainBranch,
   mockMeasure,
-  mockLongLivingBranch
+  mockMetric
 } from '../../../../helpers/testMocks';
+import { OverviewApp } from '../OverviewApp';
 
 jest.mock('../../../../api/measures', () => {
   const { mockMeasure, mockMetric } = getMockHelpers();
index 4bbc806e7f2a5441390fca1d0a53aac8bd77e793..d8bafc64a8ab00436e7126e352b01a166502d340 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
 import Timeline from '../Timeline';
 
index baf3ce3d63c5669eb167baa03ed771493bcb63c3..92043634f542096832557c334de5ce162ee1f397 100644 (file)
 import * as React from 'react';
 import { Link } from 'react-router';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Analysis from './Analysis';
 import { getProjectActivity } from '../../../api/projectActivity';
 import PreviewGraph from '../../../components/preview-graph/PreviewGraph';
 import { getBranchLikeQuery, isSameBranchLike } from '../../../helpers/branches';
 import { getActivityUrl } from '../../../helpers/urls';
+import Analysis from './Analysis';
 
 interface Props {
   branchLike?: T.BranchLike;
index b363955c87afd3be81859e064b750d823c9e43c2..51ab959d31a93ab64465ee0fdc9241aa7aa067e2 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Event from './Event';
 import DateTooltipFormatter from '../../../components/intl/DateTooltipFormatter';
+import Event from './Event';
 
 interface Props {
   analysis: T.Analysis;
index 3e1c5ff97154aef405a5acba773c133bfefdda2d..de75239dd8d57a4d49770245540e354d9e8747db 100644 (file)
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Level from 'sonar-ui-common/components/ui/Level';
-import { isRichQualityGateEvent } from '../../projectActivity/components/RichQualityGateEventInner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { isDefinitionChangeEvent } from '../../projectActivity/components/DefinitionChangeEventInner';
+import { isRichQualityGateEvent } from '../../projectActivity/components/RichQualityGateEventInner';
 
 interface Props {
   event: T.AnalysisEvent;
index 6a8567f48ee3239b433caed4c716da4c861c93e1..cf25a4e9c181090a604246249ec7eefa2e399be4 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import AnalysesList from '../AnalysesList';
 
 it('should render show more link', () => {
index 0ac09c37c844922469547afbc84f9652c066fad1..cc272b6d63df2105741f979dc8d58fb0e2cfdb1e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Analysis from '../Analysis';
 
 const ANALYSIS = {
index 4483ffa20369b024f5a9acf0fa3070f41e56ecfc..14583b88dfbcf678deef2370a23ef03cf22565dc 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import Event from '../Event';
+import * as React from 'react';
 import { RichQualityGateEvent } from '../../../projectActivity/components/RichQualityGateEventInner';
+import Event from '../Event';
 
 const EVENT = { key: '1', category: 'OTHER', name: 'test' };
 const VERSION = { key: '2', category: 'VERSION', name: '6.5-SNAPSHOT' };
index 7b3bf1ea23e1ebb88631c70623ab2228a9f8bb9a..06712825131b633511219dfda3ebbf396d7a021b 100644 (file)
 import * as React from 'react';
 import BugIcon from 'sonar-ui-common/components/icons/BugIcon';
 import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import enhance, { ComposedProps } from './enhance';
-import ApplicationLeakPeriodLegend from '../components/ApplicationLeakPeriodLegend';
 import DocTooltip from '../../../components/docs/DocTooltip';
 import DateFromNow from '../../../components/intl/DateFromNow';
+import { isLongLivingBranch } from '../../../helpers/branches';
+import ApplicationLeakPeriodLegend from '../components/ApplicationLeakPeriodLegend';
 import LeakPeriodLegend from '../components/LeakPeriodLegend';
 import { getMetricName } from '../utils';
-import { isLongLivingBranch } from '../../../helpers/branches';
+import enhance, { ComposedProps } from './enhance';
 
 export class Bugs extends React.PureComponent<ComposedProps> {
   renderHeader() {
index 75387ffd28ba5fd9f3bbc1e2f2044f3a6af1445f..f6617ae03c812f34da8c14ff7504bdacacd15965 100644 (file)
 import * as React from 'react';
 import CodeSmellIcon from 'sonar-ui-common/components/icons/CodeSmellIcon';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import enhance, { ComposedProps } from './enhance';
 import DocTooltip from '../../../components/docs/DocTooltip';
-import { getMetricName } from '../utils';
 import DrilldownLink from '../../../components/shared/DrilldownLink';
+import { getMetricName } from '../utils';
+import enhance, { ComposedProps } from './enhance';
 
 export class CodeSmells extends React.PureComponent<ComposedProps> {
   renderHeader() {
index d9745621a746d439ca04fd4ed1c960eb35fc626b..dac39392ff882a8834a4e77cac708b3295fc7108 100644 (file)
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import enhance, { ComposedProps } from './enhance';
 import DocTooltip from '../../../components/docs/DocTooltip';
 import DrilldownLink from '../../../components/shared/DrilldownLink';
-import { getMetricName } from '../utils';
-import { getPeriodValue } from '../../../helpers/measures';
 import CoverageRating from '../../../components/ui/CoverageRating';
+import { getPeriodValue } from '../../../helpers/measures';
+import { getMetricName } from '../utils';
+import enhance, { ComposedProps } from './enhance';
 
 export class Coverage extends React.PureComponent<ComposedProps> {
   getCoverage() {
index 873dc05dd3025f7bb3c97676dc4dbea1eedab784..8b3d03f5662971c1d85746094de36bc48e905236 100644 (file)
@@ -21,11 +21,11 @@ import * as React from 'react';
 import DuplicationsRating from 'sonar-ui-common/components/ui/DuplicationsRating';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import enhance, { ComposedProps } from './enhance';
 import DocTooltip from '../../../components/docs/DocTooltip';
 import DrilldownLink from '../../../components/shared/DrilldownLink';
-import { getMetricName } from '../utils';
 import { getPeriodValue } from '../../../helpers/measures';
+import { getMetricName } from '../utils';
+import enhance, { ComposedProps } from './enhance';
 
 export class Duplications extends React.PureComponent<ComposedProps> {
   renderHeader() {
index 733c527ac33fd40e731679dcb69358f9c9fc9aa3..62b936b08e32f4c4fb891a82020cdfc849dce8d6 100644 (file)
@@ -20,9 +20,9 @@
 import * as React from 'react';
 import SecurityHotspotIcon from 'sonar-ui-common/components/icons/SecurityHotspotIcon';
 import VulnerabilityIcon from 'sonar-ui-common/components/icons/VulnerabilityIcon';
-import enhance, { ComposedProps } from './enhance';
 import DocTooltip from '../../../components/docs/DocTooltip';
 import { getMetricName } from '../utils';
+import enhance, { ComposedProps } from './enhance';
 
 export class VulnerabiltiesAndHotspots extends React.PureComponent<ComposedProps> {
   renderHeader() {
index c8efbeb2a653bfeff72d55819f50f0261e31f10a..e784fa3c9e8d0562a8d968d2a4efb1fad9504074 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import Bugs from '../Bugs';
-import { ComposedProps } from '../enhance';
+import * as React from 'react';
 import {
   mockComponent,
   mockMainBranch,
   mockMeasureEnhanced,
   mockMetric
 } from '../../../../helpers/testMocks';
+import Bugs from '../Bugs';
+import { ComposedProps } from '../enhance';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index ebac5811e93e55a50116512582d2209e9210a821..fedf6e0aed6b42cb6f8bc9803e3ab3709e590867 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import CodeSmells from '../CodeSmells';
-import { ComposedProps } from '../enhance';
+import * as React from 'react';
 import {
   mockComponent,
   mockMainBranch,
   mockMeasureEnhanced,
   mockMetric
 } from '../../../../helpers/testMocks';
+import CodeSmells from '../CodeSmells';
+import { ComposedProps } from '../enhance';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index d2a35960c3a0b4eb3105731519797a83c46c569f..bcf7233649987776ec35b4cd4496554e1f80527e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import Coverage from '../Coverage';
-import { ComposedProps } from '../enhance';
+import * as React from 'react';
 import {
   mockComponent,
   mockMainBranch,
   mockMeasureEnhanced,
   mockMetric
 } from '../../../../helpers/testMocks';
+import Coverage from '../Coverage';
+import { ComposedProps } from '../enhance';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 76cde775ec59453593a7661353afcc020eabc691..3d61e5f980a609bc2af1f56c7e80276e20b3465f 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import Duplications from '../Duplications';
-import { ComposedProps } from '../enhance';
+import * as React from 'react';
 import {
   mockComponent,
   mockMainBranch,
   mockMeasureEnhanced,
   mockMetric
 } from '../../../../helpers/testMocks';
+import Duplications from '../Duplications';
+import { ComposedProps } from '../enhance';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 8320bcb0cf973f7037113db11f6ff1b7975db403..13f0d69b10f575da4504b4c30e1640b70d540097 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import VulnerabilitiesAndHotspots from '../VulnerabilitiesAndHotspots';
-import { ComposedProps } from '../enhance';
+import * as React from 'react';
 import {
   mockComponent,
   mockMainBranch,
   mockMeasureEnhanced,
   mockMetric
 } from '../../../../helpers/testMocks';
+import { ComposedProps } from '../enhance';
+import VulnerabilitiesAndHotspots from '../VulnerabilitiesAndHotspots';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 7fe6dab4c3df49cd8359651481db7aa55cf968a2..98cf4b50ecaeb71005c13b35f8ea5751f292eba5 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import HistoryIcon from 'sonar-ui-common/components/icons/HistoryIcon';
 import { Link } from 'react-router';
-import { getLocalizedMetricName, translate } from 'sonar-ui-common/helpers/l10n';
-import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import HistoryIcon from 'sonar-ui-common/components/icons/HistoryIcon';
 import Rating from 'sonar-ui-common/components/ui/Rating';
-import DrilldownLink from '../../../components/shared/DrilldownLink';
-import Timeline from '../components/Timeline';
+import { getLocalizedMetricName, translate } from 'sonar-ui-common/helpers/l10n';
+import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import { getWrappedDisplayName } from '../../../components/hoc/utils';
+import DrilldownLink from '../../../components/shared/DrilldownLink';
+import { getBranchLikeQuery } from '../../../helpers/branches';
 import {
-  isDiffMetric,
   getPeriodValue,
+  getRatingTooltip,
   getShortType,
-  getRatingTooltip
+  isDiffMetric
 } from '../../../helpers/measures';
 import { getPeriodDate } from '../../../helpers/periods';
 import {
@@ -39,7 +39,7 @@ import {
   getComponentIssuesUrl,
   getMeasureHistoryUrl
 } from '../../../helpers/urls';
-import { getBranchLikeQuery } from '../../../helpers/branches';
+import Timeline from '../components/Timeline';
 
 export interface EnhanceProps {
   branchLike?: T.BranchLike;
index 92d10a2a038d92a941a2799c86c99bc8a54076c4..3f2c86595cf87a1f29320dab77743fc6bd2b53bb 100644 (file)
@@ -21,23 +21,23 @@ import * as React from 'react';
 import { connect } from 'react-redux';
 import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import MetaKey from './MetaKey';
-import MetaOrganizationKey from './MetaOrganizationKey';
-import MetaLinks from './MetaLinks';
-import MetaQualityGate from './MetaQualityGate';
-import MetaQualityProfiles from './MetaQualityProfiles';
-import MetaSize from './MetaSize';
-import MetaTags from './MetaTags';
-import AnalysesList from '../events/AnalysesList';
+import PrivacyBadgeContainer from '../../../components/common/PrivacyBadgeContainer';
 import { hasPrivateAccess } from '../../../helpers/organizations';
 import {
+  getAppState,
   getCurrentUser,
   getMyOrganizations,
   getOrganizationByKey,
-  Store,
-  getAppState
+  Store
 } from '../../../store/rootReducer';
-import PrivacyBadgeContainer from '../../../components/common/PrivacyBadgeContainer';
+import AnalysesList from '../events/AnalysesList';
+import MetaKey from './MetaKey';
+import MetaLinks from './MetaLinks';
+import MetaOrganizationKey from './MetaOrganizationKey';
+import MetaQualityGate from './MetaQualityGate';
+import MetaQualityProfiles from './MetaQualityProfiles';
+import MetaSize from './MetaSize';
+import MetaTags from './MetaTags';
 
 const BadgesModal = lazyLoad(() => import('../badges/BadgesModal'), 'BadgesModal');
 
index 3bd681a744729a887cadcd7cc5cbe6225311f268..282516fa475f0b42180ca6f91c88729ac3ef32b4 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ClipboardButton from 'sonar-ui-common/components/controls/ClipboardButton';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   componentKey: string;
index 7e092b7cda396143b14e64e9c09c3460ef1da613..8b0e47117e7167a079e70c9922f099348ca2a8eb 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import ProjectLinkIcon from 'sonar-ui-common/components/icons/ProjectLinkIcon';
 import { ClearButton } from 'sonar-ui-common/components/controls/buttons';
+import ProjectLinkIcon from 'sonar-ui-common/components/icons/ProjectLinkIcon';
 import isValidUri from '../../../app/utils/isValidUri';
 import { getLinkName } from '../../projectLinks/utils';
 
index 36c5ba4f37ebe7d252f5d1b9f46587f237afd8f3..6b048b68a8f8a7aadfc299f2e0cad504436752e6 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import MetaLink from './MetaLink';
-import { orderLinks } from '../../projectLinks/utils';
 import { getProjectLinks } from '../../../api/projectLinks';
+import { orderLinks } from '../../projectLinks/utils';
+import MetaLink from './MetaLink';
 
 interface Props {
   component: T.LightComponent;
index 2f021d0f32c307e1c820fb388371b23642663f34..75cce62c63ec3b1feacdd47eb22a1c2d08db32a4 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ClipboardButton from 'sonar-ui-common/components/controls/ClipboardButton';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   organization: string;
index 34393bc590e0cd514862ba8be19062d2508149aa..e50208a5a790d4769feba185dfff7a2cfbabbae1 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as classNames from 'classnames';
 import * as React from 'react';
 import { connect } from 'react-redux';
 import { Link } from 'react-router';
-import * as classNames from 'classnames';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import { getQualityProfileUrl } from '../../../helpers/urls';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { searchRules } from '../../../api/rules';
+import { getQualityProfileUrl } from '../../../helpers/urls';
 import { getLanguages, Store } from '../../../store/rootReducer';
 
 interface StateProps {
index 50b17a83509ce6b877902cbeaff7e49c8b69c281..1ef8689626fc20b81b2d68232c484a72a664b5bf 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import SizeRating from 'sonar-ui-common/components/ui/SizeRating';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import DrilldownLink from '../../../components/shared/DrilldownLink';
 import LanguageDistributionContainer from '../../../components/charts/LanguageDistributionContainer';
+import DrilldownLink from '../../../components/shared/DrilldownLink';
 import { getMetricName } from '../utils';
 
 interface Props {
index 5ab868ab222b488520209d3579cdff3f51676287..65f5902873c206ed9b2faa19c370bea62cf5f875 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
 import { PopupPlacement } from 'sonar-ui-common/components/ui/popups';
-import MetaTagsSelector from './MetaTagsSelector';
-import TagsList from '../../../components/tags/TagsList';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { setProjectTags } from '../../../api/components';
+import TagsList from '../../../components/tags/TagsList';
+import MetaTagsSelector from './MetaTagsSelector';
 
 interface Props {
   component: T.Component;
index 0abb6eebb4cc9a34a7ffb26a0aadb37c4e484297..59c8b1f7e5d532315c4e5af1bdd9707964fda5e4 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { difference, without } from 'lodash';
 import * as React from 'react';
-import { without, difference } from 'lodash';
-import TagsSelector from '../../../components/tags/TagsSelector';
 import { searchProjectTags } from '../../../api/components';
+import TagsSelector from '../../../components/tags/TagsSelector';
 
 interface Props {
   project: string;
index be344becf167623acd5ead61ef8b54bb605938c7..623bc62265bc3f4debf5b3c456a33711b8cf0226 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { Meta } from '../MetaContainer';
+import * as React from 'react';
 import {
   mockAppState,
+  mockComponent,
   mockLoggedInUser,
-  mockOrganization,
-  mockComponent
+  mockOrganization
 } from '../../../../helpers/testMocks';
+import { Meta } from '../MetaContainer';
 
 it('should render correctly', () => {
   const wrapper = shallowRender();
index b2e1f9c0a19c5884b0595ce17d512beb3065ea96..59a955eac8ae070f496667e9fba535232159349a 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import MetaLink from '../MetaLink';
 
index 11785dfc93b6a4229fd604e5577b4f5b087cf86c..b40ebc2799aa91fa97c87af9591af4980435a134 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { MetaQualityProfiles } from '../MetaQualityProfiles';
-import { mockLanguage, mockQualityProfile } from '../../../../helpers/testMocks';
 import { searchRules } from '../../../../api/rules';
+import { mockLanguage, mockQualityProfile } from '../../../../helpers/testMocks';
+import { MetaQualityProfiles } from '../MetaQualityProfiles';
 
 jest.mock('../../../../api/rules', () => {
   return {
index c3b32b28fa5b26820028f54de0756d9ad5ae8a53..c881f83c3c3330209d08c9ed3d5a9532338bc402 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import MetaTags from '../MetaTags';
+import * as React from 'react';
 import { mockComponent } from '../../../../helpers/testMocks';
+import MetaTags from '../MetaTags';
 
 const component = mockComponent({
   configuration: {
index 23e6f0731804c8e59bc7d97e3dc45e4ee1c220bb..e22ea1df8d2ec00eb35d6532bfebf0272aa8f4ac 100644 (file)
@@ -18,8 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable import/order, import/first */
-import * as React from 'react';
 import { mount, shallow } from 'enzyme';
+import * as React from 'react';
+import { searchProjectTags } from '../../../../api/components';
 import MetaTagsSelector from '../MetaTagsSelector';
 
 jest.mock('../../../../api/components', () => ({
@@ -32,8 +33,6 @@ jest.mock('lodash', () => {
   return lodash;
 });
 
-import { searchProjectTags } from '../../../../api/components';
-
 it('searches tags on mount', () => {
   (searchProjectTags as jest.Mock).mockImplementation(() =>
     Promise.resolve({ tags: ['foo', 'bar'] })
index 3acd3c3cb8e5ac2b61ff66e183a818e0f5ea0cab..7f5db6c617c729c5492ae385a95382dd65229130 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import { findMeasure } from '../../../helpers/measures';
index 69b35c106dabca314378d5294f90828b77e64812..b7fa8f8367744a1863ec331b7c3a2fa15031a497 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as classNames from 'classnames';
 import * as React from 'react';
 import { Link } from 'react-router';
-import * as classNames from 'classnames';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import { getMetricName, ISSUETYPE_MAP, IssueType } from '../utils';
+import DocTooltip from '../../../components/docs/DocTooltip';
 import { getLeakValue } from '../../../components/measure/utils';
 import { getBranchLikeQuery } from '../../../helpers/branches';
-import { getComponentIssuesUrl } from '../../../helpers/urls';
 import { findMeasure } from '../../../helpers/measures';
-import DocTooltip from '../../../components/docs/DocTooltip';
+import { getComponentIssuesUrl } from '../../../helpers/urls';
+import { getMetricName, IssueType, ISSUETYPE_MAP } from '../utils';
 
 export interface Props {
   branchLike?: T.ShortLivingBranch | T.PullRequest;
index 6b8a39e1db0678814fb01b83b5244f1f79fced4d..508fd803f8edca942b38e7723557a910d71ea69f 100644 (file)
 import * as React from 'react';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import Rating from 'sonar-ui-common/components/ui/Rating';
-import DrilldownLink from '../../../components/shared/DrilldownLink';
-import { getRatingName, ISSUETYPE_MAP, IssueType } from '../utils';
 import { getLeakValue, getRatingTooltip } from '../../../components/measure/utils';
+import DrilldownLink from '../../../components/shared/DrilldownLink';
 import { findMeasure } from '../../../helpers/measures';
+import { getRatingName, IssueType, ISSUETYPE_MAP } from '../utils';
 
 interface Props {
   branchLike?: T.ShortLivingBranch | T.PullRequest;
index b46ed39a052bbb0b4d55af44fb52d3466c317399..7a81fa6bf0d351caddad311cd577952a40a6ff17 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
-import HelpIcon from 'sonar-ui-common/components/icons/HelpIcon';
 import * as classNames from 'classnames';
-import { Link } from 'react-router';
+import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import { Link } from 'react-router';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
-import { getQualityGateUrl, getQualityGatesUrl } from '../../../helpers/urls';
-import { isSonarCloud } from '../../../helpers/system';
+import HelpIcon from 'sonar-ui-common/components/icons/HelpIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { colors } from '../../../app/theme';
+import { isSonarCloud } from '../../../helpers/system';
+import { getQualityGatesUrl, getQualityGateUrl } from '../../../helpers/urls';
 
 interface Props {
   component: T.Component;
index b919d59eacd45400cecad3b5a4c4141aed7ad7df..45a6e7698fd4c5a7b9c75a34929cd01c138c2d43 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
+import { getLeakValue } from '../../../components/measure/utils';
 import DrilldownLink from '../../../components/shared/DrilldownLink';
 import { findMeasure } from '../../../helpers/measures';
-import { getLeakValue } from '../../../components/measure/utils';
 import { MEASUREMENTS_MAP, MeasurementType } from '../utils';
 
 interface Props {
index 156db2c19e828ccfc8d7c0d9aae16bf72313cfca..8a3a942b3acc649776f6c4dcdebace831db62ef4 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { connect } from 'react-redux';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
-import AfterMergeEstimate from './AfterMergeEstimate';
-import LargeQualityGateBadge from './LargeQualityGateBadge';
-import IssueLabel from './IssueLabel';
-import IssueRating from './IssueRating';
-import MeasurementLabel from './MeasurementLabel';
-import DocTooltip from '../../../components/docs/DocTooltip';
-import QualityGateConditions from '../qualityGate/QualityGateConditions';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getMeasures } from '../../../api/measures';
-import { PR_METRICS, IssueType, MeasurementType } from '../utils';
+import DocTooltip from '../../../components/docs/DocTooltip';
 import { getBranchLikeQuery, isSameBranchLike } from '../../../helpers/branches';
 import { isSameStatusConditionList } from '../../../helpers/qualityGates';
-import { Store, getBranchStatusByBranchLike } from '../../../store/rootReducer';
 import { fetchBranchStatus } from '../../../store/rootActions';
+import { getBranchStatusByBranchLike, Store } from '../../../store/rootReducer';
+import QualityGateConditions from '../qualityGate/QualityGateConditions';
 import '../styles.css';
+import { IssueType, MeasurementType, PR_METRICS } from '../utils';
+import AfterMergeEstimate from './AfterMergeEstimate';
+import IssueLabel from './IssueLabel';
+import IssueRating from './IssueRating';
+import LargeQualityGateBadge from './LargeQualityGateBadge';
+import MeasurementLabel from './MeasurementLabel';
 
 interface OwnProps {
   branchLike: T.PullRequest | T.ShortLivingBranch;
index a08dc887b3b1444b69f4f5b31961de32db1c29cd..f403b2489485bb38298b1ddcc162497693798bbe 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import AfterMergeEstimate from '../AfterMergeEstimate';
+import * as React from 'react';
 import { mockMeasure } from '../../../../helpers/testMocks';
+import AfterMergeEstimate from '../AfterMergeEstimate';
 
 it('should render correctly for coverage', () => {
   expect(shallowRender({ measures: [mockMeasure({ metric: 'coverage' })] })).toMatchSnapshot();
index 5fd5cb4881b368dbe3e8e57a1ab35b2c59909701..eda38e87bdcfbd76078a19ba10aa515ca7442e6d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { mockComponent, mockMeasure, mockPullRequest } from '../../../../helpers/testMocks';
 import IssueLabel, { Props } from '../IssueLabel';
-import { mockComponent, mockPullRequest, mockMeasure } from '../../../../helpers/testMocks';
 
 it('should render correctly for bugs', () => {
   expect(
index 1e95943f56bbfa7312f3cc9267d66be2f8b1bf10..0c35519a79b3f0e312e6c18558c6b97eca0c64a4 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { mockComponent, mockMeasure, mockPullRequest } from '../../../../helpers/testMocks';
 import IssueRating from '../IssueRating';
-import { mockPullRequest, mockComponent, mockMeasure } from '../../../../helpers/testMocks';
 
 it('should render correctly for bugs', () => {
   expect(shallowRender()).toMatchSnapshot();
index 1a53b0a7a1125da54808cc60266c19b6a27f2aa6..ac3f20f498dfe229b27230cd1e24e901b0ddbf95 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import LargeQualityGateBadge from '../LargeQualityGateBadge';
-import { mockComponent } from '../../../../helpers/testMocks';
+import * as React from 'react';
 import { isSonarCloud } from '../../../../helpers/system';
+import { mockComponent } from '../../../../helpers/testMocks';
+import LargeQualityGateBadge from '../LargeQualityGateBadge';
 
 jest.mock('../../../../helpers/system', () => ({
   isSonarCloud: jest.fn()
index 2e3fd2646081d6517b845538cf37d619d76a4f1b..6e251163662369c387251793b6de55334777120d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { mockComponent, mockMeasure, mockShortLivingBranch } from '../../../../helpers/testMocks';
 import MeasurementLabel from '../MeasurementLabel';
-import { mockShortLivingBranch, mockComponent, mockMeasure } from '../../../../helpers/testMocks';
 
 it('should render correctly for coverage', () => {
   expect(shallowRender()).toMatchSnapshot();
index 78cea6b9c1ed2082fe8d2555c3a8900114fb8bb6..4ec662fe9dec75f78e22896422eb3f8ab97bf3a9 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { ReviewApp } from '../ReviewApp';
 import { getMeasures } from '../../../../api/measures';
 import {
   mockComponent,
   mockPullRequest,
   mockQualityGateStatusCondition
 } from '../../../../helpers/testMocks';
+import { ReviewApp } from '../ReviewApp';
 
 jest.mock('../../../../api/measures', () => {
   const { mockMeasure } = require.requireActual('../../../../helpers/testMocks');
index 90ef08a71e49aaea7a4ef939f0476f99e3ce2606..98ffeb8798becc5b02b84bbd879304399f9c04da 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { keyBy } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import Level from 'sonar-ui-common/components/ui/Level';
-import ApplicationQualityGateProject from './ApplicationQualityGateProject';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { ApplicationProject, getApplicationQualityGate } from '../../../api/quality-gates';
 import DocTooltip from '../../../components/docs/DocTooltip';
-import { getApplicationQualityGate, ApplicationProject } from '../../../api/quality-gates';
+import ApplicationQualityGateProject from './ApplicationQualityGateProject';
 
 interface Props {
   branch?: T.LongLivingBranch;
index 3e55351e38899283dc9f7dcf618b0152fd17fa88..0e219d173525550d7ec17a0d89bcc958ae405a3e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { Link } from 'react-router';
 import { getLocalizedMetricName, translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
+import { ApplicationProject, ConditionAnalysis } from '../../../api/quality-gates';
 import { isDiffMetric } from '../../../helpers/measures';
 import { getProjectUrl } from '../../../helpers/urls';
 import './ApplicationQualityGateProject.css';
-import { ApplicationProject, ConditionAnalysis } from '../../../api/quality-gates';
 
 interface Props {
   metrics: T.Dict<T.Metric>;
index 3055c84bb99aef89179e1c89d811942e6c5a9c78..eb5b9d1911ce10543024ee89e12127c8b2e60d5a 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import Level from 'sonar-ui-common/components/ui/Level';
-import QualityGateConditions from './QualityGateConditions';
-import EmptyQualityGate from './EmptyQualityGate';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import DocTooltip from '../../../components/docs/DocTooltip';
+import EmptyQualityGate from './EmptyQualityGate';
+import QualityGateConditions from './QualityGateConditions';
 
 interface Props {
   branchLike?: T.BranchLike;
index 313ee282d9fe87bd019070f596c1540b88ed9902..ed38b125e699601a59a35112f9b700f670222d2b 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { Link } from 'react-router';
+import IssueTypeIcon from 'sonar-ui-common/components/icons/IssueTypeIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import IssueTypeIcon from 'sonar-ui-common/components/icons/IssueTypeIcon';
-import DrilldownLink from '../../../components/shared/DrilldownLink';
 import Measure from '../../../components/measure/Measure';
+import DrilldownLink from '../../../components/shared/DrilldownLink';
+import { getBranchLikeQuery, isPullRequest, isShortLivingBranch } from '../../../helpers/branches';
 import { getPeriodValue, isDiffMetric } from '../../../helpers/measures';
 import { getComponentIssuesUrl } from '../../../helpers/urls';
-import { getBranchLikeQuery, isPullRequest, isShortLivingBranch } from '../../../helpers/branches';
 
 interface Props {
   branchLike?: T.BranchLike;
index 1ca392a5bd29b2de883e69c537e67dfca95da81e..ef6395132de36182649d96e70541cc6a772e03a2 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { sortBy } from 'lodash';
 import * as React from 'react';
+import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import ChevronDownIcon from 'sonar-ui-common/components/icons/ChevronDownIcon';
-import { sortBy } from 'lodash';
 import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
-import QualityGateCondition from './QualityGateCondition';
 import { getMeasuresAndMeta } from '../../../api/measures';
+import { getBranchLikeQuery, isSameBranchLike } from '../../../helpers/branches';
 import { enhanceMeasuresWithMetrics } from '../../../helpers/measures';
-import { isSameBranchLike, getBranchLikeQuery } from '../../../helpers/branches';
+import QualityGateCondition from './QualityGateCondition';
 
 const LEVEL_ORDER = ['ERROR', 'WARN'];
 
index d41fbe031f546b363639637d3995089565c4b83d..b962367cae9044d590c233b612f5ca9741a05f6b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ApplicationQualityGate from '../ApplicationQualityGate';
 
 it('renders', () => {
index 1302a238807982556edc798e4e63dfbd0b02d7b2..df12300e278d486c6aee7e934f88bbc7cf916cbd 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ApplicationQualityGateProject from '../ApplicationQualityGateProject';
 
 const metrics = {
index bad3d0ee867894b3f286ae985d6ded31646b6a8f..5f6700ad2c344298b60518af2a335ef6a3b8a6e5 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import QualityGate from '../QualityGate';
 
 it('renders message about ignored conditions', () => {
index 1e8994fe8552100f742b51498ab9919da549d406..13e6469e54099ba61991773c8dcd7b4ca58f6e15 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import QualityGateCondition from '../QualityGateCondition';
 
 const mockRatingCondition = (metric: string): T.QualityGateStatusConditionEnhanced => ({
index 200df59b118e7a8da2f6428e3eb111146bd2b2d7..724dbcee643d2bdbcb8d6c0c5a4f77ef621a4ae0 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import QualityGateConditions from '../QualityGateConditions';
 import { getMeasuresAndMeta } from '../../../../api/measures';
 import { mockComponent, mockQualityGateStatusCondition } from '../../../../helpers/testMocks';
+import QualityGateConditions from '../QualityGateConditions';
 
 jest.mock('../../../../api/measures', () => {
   return {
index c4fff32eeca66b910dbe235fc036ed56e54ffc54..034bca95fe9ccb51d75a50569759d4b5b53e532c 100644 (file)
@@ -19,8 +19,8 @@
  */
 import BugIcon from 'sonar-ui-common/components/icons/BugIcon';
 import CodeSmellIcon from 'sonar-ui-common/components/icons/CodeSmellIcon';
-import VulnerabilityIcon from 'sonar-ui-common/components/icons/VulnerabilityIcon';
 import SecurityHotspotIcon from 'sonar-ui-common/components/icons/SecurityHotspotIcon';
+import VulnerabilityIcon from 'sonar-ui-common/components/icons/VulnerabilityIcon';
 import DuplicationsRating from 'sonar-ui-common/components/ui/DuplicationsRating';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import CoverageRating from '../../components/ui/CoverageRating';
index df3cf3115660a2080e933e867ab2fabe8dda3243..6207c932d30da4fa5229db88058169b57a7e0771 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
-import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
 import { difference } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import ActionsDropdown, {
   ActionsDropdownItem
 } from 'sonar-ui-common/components/controls/ActionsDropdown';
-import DeleteForm from './DeleteForm';
-import Form from './Form';
+import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import {
-  setDefaultPermissionTemplate,
   deletePermissionTemplate,
+  setDefaultPermissionTemplate,
   updatePermissionTemplate
 } from '../../../api/permissions';
-import { withRouter, Router } from '../../../components/hoc/withRouter';
+import { Router, withRouter } from '../../../components/hoc/withRouter';
+import DeleteForm from './DeleteForm';
+import Form from './Form';
 
 interface Props {
   fromDetails?: boolean;
index 19d8b03615b98e858dd7eded6e5683b6b9626d77..a671b0e5e0abea40e826670eee494bfb2fb04dad 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { Location } from 'history';
 import * as React from 'react';
 import { connect } from 'react-redux';
-import { Location } from 'history';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Home from './Home';
-import Template from './Template';
-import OrganizationHelmet from '../../../components/common/OrganizationHelmet';
-import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
-import { sortPermissions, mergePermissionsToTemplates, mergeDefaultsToTemplates } from '../utils';
 import { getPermissionTemplates } from '../../../api/permissions';
+import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
+import OrganizationHelmet from '../../../components/common/OrganizationHelmet';
 import { getAppState, Store } from '../../../store/rootReducer';
 import '../../permissions/styles.css';
+import { mergeDefaultsToTemplates, mergePermissionsToTemplates, sortPermissions } from '../utils';
+import Home from './Home';
+import Template from './Template';
 
 interface Props {
   location: Location;
index d7bd7c9a3b79d7a8d04f57fbcf48914049dcd490..4257fafcbd73be56b36b0c5e9740079f2eceb6ae 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
+import * as React from 'react';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
index 350d0d15fd2213e454212cb9695c9a7c578cecb5..1ca69e30de0247dfb256f71167275fc106db57f8 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   onClose: () => void;
index de9cbbd3a3427771e1d0f3b0a97064431dc061f0..f2f3beeb2453c146819146ede56e4647499c9a00 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   confirmButtonText: string;
index 3a63dba8bbd8777ec94cacdcba1f60b245b38bb9..4946e61a04120c4c8b0bccb214b517b6ddd6230c 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
-import Form from './Form';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { createPermissionTemplate } from '../../../api/permissions';
-import { withRouter, Router } from '../../../components/hoc/withRouter';
+import { Router, withRouter } from '../../../components/hoc/withRouter';
+import Form from './Form';
 
 interface Props {
   organization?: { key: string };
index 8499f5f6453f6efb18ed30972ebea23cd6edb278..f4f8dd02c91809682ccf366ad556895c0141b96d 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import InstanceMessage from '../../../components/common/InstanceMessage';
 
 interface Props {
index d1edf663f5b048f3030002bc3279edae0babefe4..3443de4d102d174f6adaab0740a646a4595c6908 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import ActionsCell from './ActionsCell';
 import NameCell from './NameCell';
 import PermissionCell from './PermissionCell';
-import ActionsCell from './ActionsCell';
 
 interface Props {
   organization: T.Organization | undefined;
index 5115d65c4f34c769f40967d457c9fea10bd13841..49e623f1f558f9c8e1f22713d5f8e61c5f91662e 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { isSonarCloud } from '../../../helpers/system';
 
 interface Props {
index dcff3c8d1164ca8d9e1adb8e874f1f639f559f03..6cc8f0ae831c657bc4188e1b3c2dc88d8e658ebd 100644 (file)
 import * as React from 'react';
 import Helmet from 'react-helmet';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import TemplateHeader from './TemplateHeader';
-import TemplateDetails from './TemplateDetails';
+import * as api from '../../../api/permissions';
 import HoldersList from '../../permissions/shared/components/HoldersList';
 import SearchForm from '../../permissions/shared/components/SearchForm';
 import {
   convertToPermissionDefinitions,
   PERMISSIONS_ORDER_FOR_PROJECT_TEMPLATE
 } from '../../permissions/utils';
-import * as api from '../../../api/permissions';
+import TemplateDetails from './TemplateDetails';
+import TemplateHeader from './TemplateHeader';
 
 interface Props {
   organization: T.Organization | undefined;
index 7f2ffacff659c6f85e00b46a4ae9c64337e6e633..9efc31c42e0d9639ad01a04af2670ca2ea24b6b2 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { ActionsCell } from '../ActionsCell';
 
 const SAMPLE = {
index 4f2faace5f27bf00b1e013251b41323f74efd539..2a40b032cea90cdbb7109b9988b5bf884f1224fe 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { App } from '../App';
 import { mockLocation, mockOrganization } from '../../../../helpers/testMocks';
+import { App } from '../App';
 
 jest.mock('../../../../api/permissions', () => ({
   getPermissionTemplates: jest.fn().mockResolvedValue({
index 4c58ae3f4a179dfdf01c749d9132c2b631cec8b5..9a6e35b52e428a24eb4f3362a3523513b5618898 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Defaults from '../Defaults';
 
 const SAMPLE: T.PermissionTemplate = {
index 1d8dfd32c52f9e78b510ba59364a35dbeb140112..6c86a6afa701e81f306edb59f45d8ee69c1685dc 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Form from '../Form';
 
 it('render correctly', () => {
index fea86e4fb634cda9dbd42118856d04adce23b243..3dde8bfe81c3c9aee23f453e9a7526a28db15abb 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { resetBundle } from 'sonar-ui-common/helpers/l10n';
-import { convertToPermissionDefinitions } from '../utils';
 import { isSonarCloud } from '../../../helpers/system';
+import { convertToPermissionDefinitions } from '../utils';
 
 jest.mock('../../../helpers/system', () => ({ isSonarCloud: jest.fn() }));
 
index 910c83695fbf455f88e938be9223029a386dc6f9..882e68bf3abcede46632935394c9aeb1b14bfc5e 100644 (file)
 import * as React from 'react';
 import { connect } from 'react-redux';
 import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
-import SearchForm from '../../shared/components/SearchForm';
+import { getAppState, Store } from '../../../../store/rootReducer';
 import HoldersList from '../../shared/components/HoldersList';
+import SearchForm from '../../shared/components/SearchForm';
 import {
-  PERMISSIONS_ORDER_GLOBAL,
   convertToPermissionDefinitions,
+  PERMISSIONS_ORDER_GLOBAL,
   PERMISSIONS_ORDER_GLOBAL_GOV
 } from '../../utils';
-import { Store, getAppState } from '../../../../store/rootReducer';
 
 interface StateProps {
   appState: Pick<T.AppState, 'qualifiers'>;
index 5c590c8ba4f2e6ef6f7b9054de98caba966c1845..decc38c4b3a4e6aa8ba8f5aea49121d7fca44b12 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { without } from 'lodash';
 import * as React from 'react';
 import Helmet from 'react-helmet';
-import { without } from 'lodash';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import PageHeader from './PageHeader';
-import AllHoldersList from './AllHoldersList';
 import * as api from '../../../../api/permissions';
 import Suggestions from '../../../../app/components/embed-docs-modal/Suggestions';
 import '../../styles.css';
+import AllHoldersList from './AllHoldersList';
+import PageHeader from './PageHeader';
 
 interface Props {
   organization?: T.Organization;
index 883b877f0f26fc072768ed91daf0feb5dcea4697..2e4c89b8bb6ccb81740c5d68f5f9c502ec242a32 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import App from '../App';
 import {
   grantPermissionToGroup,
   grantPermissionToUser,
@@ -28,6 +27,7 @@ import {
   revokePermissionFromUser
 } from '../../../../../api/permissions';
 import { mockOrganization } from '../../../../../helpers/testMocks';
+import App from '../App';
 
 jest.mock('../../../../../api/permissions', () => ({
   getGlobalPermissionsGroups: jest.fn().mockResolvedValue({
index b766826b1a4c5f53284d20990ea78d0915576d29..b869abf3447cb36ac51298275782829697999e85 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { without } from 'lodash';
+import * as React from 'react';
 import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
-import SearchForm from '../../shared/components/SearchForm';
 import HoldersList from '../../shared/components/HoldersList';
-import { PERMISSIONS_ORDER_BY_QUALIFIER, convertToPermissionDefinitions } from '../../utils';
+import SearchForm from '../../shared/components/SearchForm';
+import { convertToPermissionDefinitions, PERMISSIONS_ORDER_BY_QUALIFIER } from '../../utils';
 
 interface Props {
   component: T.Component;
index 465e2b800b9ff00869c0b9e7c446861d00e29aa4..a775d06264571dea235563f5260ab07d3f6a42b1 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { without } from 'lodash';
 import * as React from 'react';
 import Helmet from 'react-helmet';
-import { without } from 'lodash';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as api from '../../../../api/permissions';
+import VisibilitySelector from '../../../../components/common/VisibilitySelector';
+import UpgradeOrganizationBox from '../../../create/components/UpgradeOrganizationBox';
+import '../../styles.css';
 import AllHoldersList from './AllHoldersList';
 import PageHeader from './PageHeader';
 import PublicProjectDisclaimer from './PublicProjectDisclaimer';
-import UpgradeOrganizationBox from '../../../create/components/UpgradeOrganizationBox';
-import VisibilitySelector from '../../../../components/common/VisibilitySelector';
-import * as api from '../../../../api/permissions';
-import '../../styles.css';
 
 interface Props {
   component: T.Component;
index 6f7637fec1851264ac220b6884ac0b00bfaef84d..4a35db43f3ee3329fb96d5f858253e1063688a58 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { connect } from 'react-redux';
-import App from './App';
-import { getCurrentUser, getOrganizationByKey, Store } from '../../../../store/rootReducer';
 import { fetchOrganization } from '../../../../store/rootActions';
+import { getCurrentUser, getOrganizationByKey, Store } from '../../../../store/rootReducer';
+import App from './App';
 
 interface OwnProps {
   component: T.Component;
index fbbe9af3150958897170c48d953d61438d181f1d..01d48dafde5c84d00a684f9a0dfeff7d981c12b0 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translateWithParameters, translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
+import Select from 'sonar-ui-common/components/controls/Select';
 import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import Select from 'sonar-ui-common/components/controls/Select';
-import { getPermissionTemplates, applyTemplateToProject } from '../../../../api/permissions';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { applyTemplateToProject, getPermissionTemplates } from '../../../../api/permissions';
 
 interface Props {
   onApply?: () => void;
index b0912321591ae86553c74ab788d6bc7872418898..d8bbdda833149cbce1bcc793ce60ddde00decbec 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import ApplyTemplate from './ApplyTemplate';
 
 interface Props {
index ef481e78e45b720ac7beb2b8ee77a3fa03dbb6ca..ce3f84140e87ab76107629b46ca1b1f58edc87a9 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import ConfirmModal from 'sonar-ui-common/components/controls/ConfirmModal';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   component: {
index 413b44b8d3d90ccdf21911871210b7231b3320f4..f11f6ae7367e73a9d563dae4fca0113fde547aea 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import App from '../App';
 import {
   grantPermissionToGroup,
   grantPermissionToUser,
@@ -28,6 +27,7 @@ import {
   revokePermissionFromUser
 } from '../../../../../api/permissions';
 import { mockComponent, mockOrganization } from '../../../../../helpers/testMocks';
+import App from '../App';
 
 jest.mock('../../../../../api/permissions', () => ({
   getPermissionsGroupsForComponent: jest.fn().mockResolvedValue({
index be07604a090973b4d2c4a771cff6b1421eb402bb..6ae6d7840f4feb3e98a59246a9087320ab464d24 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import ApplyTemplate from '../ApplyTemplate';
 
index b37edb40ceb5157200445d4cb1eeb5588b56b7d0..a9c8de8cd17431f31a42dbff8bc0c41421c39d52 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { without } from 'lodash';
 import * as React from 'react';
 import GroupIcon from 'sonar-ui-common/components/icons/GroupIcon';
-import { without } from 'lodash';
-import PermissionCell from './PermissionCell';
 import { isPermissionDefinitionGroup } from '../../utils';
+import PermissionCell from './PermissionCell';
 
 interface Props {
   group: T.PermissionGroup;
index 179286c40ba5796355dfae5120948fad1d726ecb..8dc88ddb94a4fdb04bb717a2641905c1ad7865c4 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { partition, sortBy } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import UserHolder from './UserHolder';
+import { isPermissionDefinitionGroup } from '../../utils';
 import GroupHolder from './GroupHolder';
 import PermissionHeader from './PermissionHeader';
-import { isPermissionDefinitionGroup } from '../../utils';
+import UserHolder from './UserHolder';
 
 interface Props {
   filter?: string;
index cb305a463c2bdf66c60c59ca30e6c7031dc641cf..9d8b59c6f10d01db9676bf9568e249bc9ec23eff 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
 import { isPermissionDefinitionGroup } from '../../utils';
 
index 533603c0fef31c29a547e68230a6de0b7412ec0e..df47522462bddf04a8f70ed48bb0e1fa4acfce53 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
+import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import InstanceMessage from '../../../../components/common/InstanceMessage';
 import { isPermissionDefinitionGroup } from '../../utils';
 
index 6445d95ae66b21d2cec52430b1ed0737211f839a..15ee2fd5929b71d7185348d7fa24066a9bb1cf1c 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
 import RadioToggle from 'sonar-ui-common/components/controls/RadioToggle';
+import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   filter: string;
index 6597c652c99aeeb28fd9f10a754be20d840ee6fe..dd00ea3f8327ed094ee3b8c695a2dac2c335d93d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { without } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import PermissionCell from './PermissionCell';
 import Avatar from '../../../../components/ui/Avatar';
-import { isPermissionDefinitionGroup } from '../../utils';
 import { isSonarCloud } from '../../../../helpers/system';
+import { isPermissionDefinitionGroup } from '../../utils';
+import PermissionCell from './PermissionCell';
 
 interface Props {
   onToggle: (user: T.PermissionUser, permission: string) => Promise<void>;
index 483ac46a2b58f6c94f676e875cf1bfcd5df92c5e..9de6a7cc86ce7b0022f88e1356ad3aa0122007a0 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import GroupHolder from '../GroupHolder';
 
index f1579ca40615d3436577cd4d82aec1b720dad644..f0c92949760c628d0b8ca037cad1df8d4acdcfe0 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import HoldersList from '../HoldersList';
 
 const permissions = [
index 8b68442211b230b1e0dda61851bc1566b2ab166f..20a9a7b12285ac6215279f8c9c287d2eceb90618 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import PermissionCell from '../PermissionCell';
 
 const permissionItem = {
index 3419b3a115c7786ae6e4989314c48349728aa867..f96b9e3cd6cd4fec89720aba877ea085a4b0ffd1 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import UserHolder from '../UserHolder';
 import { isSonarCloud } from '../../../../../helpers/system';
+import UserHolder from '../UserHolder';
 
 jest.mock('../../../../../helpers/system', () => ({ isSonarCloud: jest.fn() }));
 
index 92131e99c0b78d815509ddf77ca08c334c5764e6..9d15b782c5dfe987a04e7d996733e9e257f11095 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { convertMeasures } from '../utils';
 import { mockMeasure } from '../../../helpers/testMocks';
+import { convertMeasures } from '../utils';
 
 describe('convertMeasures', () => {
   it('should correctly transform a list of metrics to a dictionary', () => {
index 73426f3b3f54397fd397f3c1a943eaf10aebcec3..410b0c0d4d6bdc824770e2024c6aa64e1ef7c857 100644 (file)
 import * as React from 'react';
 import { connect } from 'react-redux';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import MeasuresButtonLink from './MeasuresButtonLink';
-import MetricBox from './MetricBox';
-import Report from './Report';
-import WorstProjects from './WorstProjects';
-import { SubComponent } from '../types';
-import { PORTFOLIO_METRICS, SUB_COMPONENTS_METRICS, convertMeasures } from '../utils';
-import Measure from '../../../components/measure/Measure';
 import { getChildren } from '../../../api/components';
 import { getMeasures } from '../../../api/measures';
+import Measure from '../../../components/measure/Measure';
 import { fetchMetrics } from '../../../store/rootActions';
 import { getMetrics, Store } from '../../../store/rootReducer';
 import '../styles.css';
+import { SubComponent } from '../types';
+import { convertMeasures, PORTFOLIO_METRICS, SUB_COMPONENTS_METRICS } from '../utils';
+import MeasuresButtonLink from './MeasuresButtonLink';
+import MetricBox from './MetricBox';
+import Report from './Report';
+import WorstProjects from './WorstProjects';
 
 interface OwnProps {
   component: T.Component;
index 3d8c1c7d40fd71445fd0645917255f13c9c377aa..ca124326abd8656f4048a8c95084d6ac1d2cd409 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { Link } from 'react-router';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import { Link } from 'react-router';
 import Rating from 'sonar-ui-common/components/ui/Rating';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import Measure from '../../../components/measure/Measure';
 import { getComponentDrilldownUrl } from '../../../helpers/urls';
 
index 18dec3f03f96d0415a3608853eaa812e74ea4b9e..d5e68e7209915442f0fe6b66aed7f9070ddf34c5 100644 (file)
  */
 import * as React from 'react';
 import { Link } from 'react-router';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import Level from 'sonar-ui-common/components/ui/Level';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import Measure from '../../../components/measure/Measure';
+import { getComponentDrilldownUrl } from '../../../helpers/urls';
+import { METRICS_PER_TYPE } from '../utils';
 import Effort from './Effort';
 import HistoryButtonLink from './HistoryButtonLink';
 import MainRating from './MainRating';
 import MeasuresButtonLink from './MeasuresButtonLink';
 import RatingFreshness from './RatingFreshness';
-import { METRICS_PER_TYPE } from '../utils';
-import Measure from '../../../components/measure/Measure';
-import { getComponentDrilldownUrl } from '../../../helpers/urls';
 
 interface Props {
   component: string;
index 885e021ee0d0feced1b17078604cfa3f118c3749..76b71a48038ec48c6c55d87edf343f0b7c32448b 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Rating from 'sonar-ui-common/components/ui/Rating';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import DateFromNow from '../../../components/intl/DateFromNow';
 
 interface Props {
index 17241cf1686cd013182838a0701b516e1d2c8cbd..6a57d387aa4335598006750de28718e28ffbd457 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
+import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { getReportStatus, getReportUrl, ReportStatus } from '../../../api/report';
 import Subscription from './Subscription';
-import { getReportStatus, ReportStatus, getReportUrl } from '../../../api/report';
 
 interface Props {
   component: { key: string; name: string };
index 57187bd899f889a6e45667ad866172550b2d2de6..2f3084500c5edaaf40a3f822ec1559826db37289 100644 (file)
@@ -20,9 +20,9 @@
 import * as React from 'react';
 import { connect } from 'react-redux';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { ReportStatus, subscribe, unsubscribe } from '../../../api/report';
 import addGlobalSuccessMessage from '../../../app/utils/addGlobalSuccessMessage';
 import throwGlobalError from '../../../app/utils/throwGlobalError';
-import { ReportStatus, subscribe, unsubscribe } from '../../../api/report';
 import { isLoggedIn } from '../../../helpers/users';
 import { getCurrentUser, Store } from '../../../store/rootReducer';
 
index f110b2325be371b0ad1fb3d37581d2190e8d9f2e..f5b0b194685b1065df594f49b284d80eebf22544 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { max } from 'lodash';
 import * as React from 'react';
-import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
 import { Link } from 'react-router';
-import { max } from 'lodash';
+import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import { SubComponent } from '../types';
 import { colors } from '../../../app/theme';
 import Measure from '../../../components/measure/Measure';
 import { getProjectUrl } from '../../../helpers/urls';
+import { SubComponent } from '../types';
 
 interface Props {
   component: string;
index 43647e64921770b6431e65dafa03d4f30acf7398..73a929adb0ab4cf8f3c8ae3dee2bf2203f86400d 100644 (file)
@@ -26,8 +26,8 @@ jest.mock('../../../../api/components', () => ({
   getChildren: jest.fn(() => Promise.resolve({ components: [], paging: { total: 0 } }))
 }));
 
+import { mount, shallow } from 'enzyme';
 import * as React from 'react';
-import { shallow, mount } from 'enzyme';
 import { App } from '../App';
 
 const getMeasures = require('../../../../api/measures').getMeasures as jest.Mock<any>;
index ea66662f3efdcd09aa752fc048f9f7877ad26548..a8a50e46238ac8851a44226ce9f2806534c32ea6 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Effort from '../Effort';
 
 it('renders', () => {
index b59d8e9276c327dbb50d0f0db6b56e86d2563ca2..e4806c8f868845cc87ec2ceaddd4682ea5436727 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import HistoryButtonLink from '../HistoryButtonLink';
 
 it('renders', () => {
index 469e4eee805aceaa71beea569472c81b332cffe3..71928aab6ee76ee97a5d5fa84bc9bfb73021d325 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import MainRating from '../MainRating';
 
 it('renders', () => {
index 41aaba68219f5047c8a22788c7fd69d10912ab9b..26e61fe148156deb85f5044276fa4c33d4fcbac3 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import MeasuresButtonLink from '../MeasuresButtonLink';
 
 it('renders', () => {
index ada57c03b2ceceeebc8342e25bb21b986cb135a7..d72d7680e54a93d3658fb8cb83f7abdb9cff9b89 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import MetricBox from '../MetricBox';
 
 it('should render correctly', () => {
index 8ebef7a507bdba7a45d4a71e2110b8b1a680315d..fa476b1a76c9d2b903e31c4616fe701b3fdbd764 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import RatingFreshness from '../RatingFreshness';
 
 it('renders', () => {
index aacf682ded2c85194062e7eecc0210d748fdc278..b46a645d8a2d0cc47bc52aeb36293c700d7b8fa6 100644 (file)
@@ -24,8 +24,8 @@ jest.mock('../../../../api/report', () => {
   return report;
 });
 
-import * as React from 'react';
 import { mount, shallow } from 'enzyme';
+import * as React from 'react';
 import Report from '../Report';
 
 const getReportStatus = require('../../../../api/report').getReportStatus as jest.Mock<any>;
index a5ba436d47096294198d1d1a5d2e1d09b92d2a1b..3b5fc2e27c20ebab7ff394a67a379e32d837291b 100644 (file)
@@ -25,11 +25,11 @@ jest.mock('../../../../api/report', () => {
   return report;
 });
 
+import { mount, shallow } from 'enzyme';
 import * as React from 'react';
-import { shallow, mount } from 'enzyme';
-import { Subscription } from '../Subscription';
 import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import { ReportStatus } from '../../../../api/report';
+import { Subscription } from '../Subscription';
 
 const subscribe = require('../../../../api/report').subscribe as jest.Mock<any>;
 const unsubscribe = require('../../../../api/report').unsubscribe as jest.Mock<any>;
index e6f50d6406ca6f00ed370f897348712a6ff9e2f4..68b28aa19f46cfd58274f6df1ab572ce2621f164 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import WorstProjects from '../WorstProjects';
 
 it('renders', () => {
index 0621b442da84e0051323bdabaf3bc40303adca22..5583a4e55fb31ee29b006e835ce40dd18292552b 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { Link } from 'react-router';
+import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import LongLivingBranchIcon from 'sonar-ui-common/components/icons/LongLivingBranchIcon';
+import { Link } from 'react-router';
+import { ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
+import LongLivingBranchIcon from 'sonar-ui-common/components/icons/LongLivingBranchIcon';
 import ProjectEventIcon from 'sonar-ui-common/components/icons/ProjectEventIcon';
-import { limitComponentName } from 'sonar-ui-common/helpers/path';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
-import { getProjectUrl } from '../../../helpers/urls';
+import { limitComponentName } from 'sonar-ui-common/helpers/path';
 import { isMainBranch } from '../../../helpers/branches';
+import { getProjectUrl } from '../../../helpers/urls';
 
 export type DefinitionChangeEvent = T.AnalysisEvent &
   Required<Pick<T.AnalysisEvent, 'definitionChange'>>;
index a801bc551a1e48101d2bdf39ed4a60969cc91a78..b295b7af807df16bc93f511639b7061cf7c2f03f 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import { DeleteButton, EditButton } from 'sonar-ui-common/components/controls/buttons';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import EventInner from './EventInner';
 import ChangeEventForm from './forms/ChangeEventForm';
 import RemoveEventForm from './forms/RemoveEventForm';
index 83ad95439a014f6ebef351039e4fc1cd70df0b7d..0472b32916e4621ce65db969ceddb81ef51f27e7 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as classNames from 'classnames';
 import * as React from 'react';
 import ProjectEventIcon from 'sonar-ui-common/components/icons/ProjectEventIcon';
-import * as classNames from 'classnames';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { isRichQualityGateEvent, RichQualityGateEventInner } from './RichQualityGateEventInner';
-import { isDefinitionChangeEvent, DefinitionChangeEventInner } from './DefinitionChangeEventInner';
 import { ComponentContext } from '../../../app/components/ComponentContext';
+import { DefinitionChangeEventInner, isDefinitionChangeEvent } from './DefinitionChangeEventInner';
+import { isRichQualityGateEvent, RichQualityGateEventInner } from './RichQualityGateEventInner';
 
 interface Props {
   event: T.AnalysisEvent;
index 8631b7ba2fb108dcb4ad3fcd783bbd42cad321ff..84e418c7527b5450b6e3ce625581f852c2815a82 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
+import * as React from 'react';
 import Event from './Event';
 
 interface Props {
index a9b058ee709933aea15b4ef9a2d5a4ee5334a64e..4f3ef963c8502ea9ad4269c1bc1643c3fc85daea 100644 (file)
  */
 import * as React from 'react';
 import { AutoSizer } from 'react-virtualized/dist/commonjs/AutoSizer';
-import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import AdvancedTimeline from 'sonar-ui-common/components/charts/AdvancedTimeline';
-import GraphsTooltips from './GraphsTooltips';
-import GraphsLegendCustom from './GraphsLegendCustom';
-import GraphsLegendStatic from './GraphsLegendStatic';
+import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import { getShortType } from '../../../helpers/measures';
 import { MeasureHistory, Serie } from '../utils';
+import GraphsLegendCustom from './GraphsLegendCustom';
+import GraphsLegendStatic from './GraphsLegendStatic';
+import GraphsTooltips from './GraphsTooltips';
 
 interface Props {
   events: T.AnalysisEvent[];
index e92ac38e4f1b6049fa31563eaed354e80aa65026..c52f9217dce9ebd30aab1588bda4b213a9cf3722 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { isEqual } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import GraphHistory from './GraphHistory';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import {
   getSeriesMetricType,
   hasHistoryData,
   isCustomGraph,
-  Serie,
   MeasureHistory,
-  ParsedAnalysis
+  ParsedAnalysis,
+  Serie
 } from '../utils';
+import GraphHistory from './GraphHistory';
 
 interface Props {
   analyses: ParsedAnalysis[];
index 93a041a9be637321d94dbb556a3d734ee9c87eea..bbb5d53a997f1e56c32588e63c18689dd37dd94c 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import GraphsLegendItem from './GraphsLegendItem';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { hasDataValues, Serie } from '../utils';
+import GraphsLegendItem from './GraphsLegendItem';
 
 interface Props {
   removeMetric: (metric: string) => void;
index 67dac1cdeb1d747f2adc202ff8ae170bf6f9bdd9..9ba64dac9f5abb3155fd06fb4e73e762d4e41bc7 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
+import { ClearButton } from 'sonar-ui-common/components/controls/buttons';
 import AlertWarnIcon from 'sonar-ui-common/components/icons/AlertWarnIcon';
 import ChartLegendIcon from 'sonar-ui-common/components/icons/ChartLegendIcon';
-import { ClearButton } from 'sonar-ui-common/components/controls/buttons';
 
 interface Props {
   className?: string;
index f5f3d13f8d350b9160bea5f1e5e52c31da1ccb29..afb7e59e9fcda8f0bb596d99dbfab64aed3f1240 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import GraphsLegendItem from './GraphsLegendItem';
 import { Serie } from '../utils';
+import GraphsLegendItem from './GraphsLegendItem';
 
 interface Props {
   series: Array<Pick<Serie, 'name' | 'translatedName'>>;
index 350e01bf445dbec71743a2a126665c4df2f3d916..aa6be9244d63212d2807cc5fe9a05fc4e11ab5ba 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { isDefined } from 'sonar-ui-common/helpers/types';
 import { Popup, PopupPlacement } from 'sonar-ui-common/components/ui/popups';
+import { isDefined } from 'sonar-ui-common/helpers/types';
+import DateTimeFormatter from '../../../components/intl/DateTimeFormatter';
+import { DEFAULT_GRAPH, MeasureHistory, Serie } from '../utils';
 import GraphsTooltipsContent from './GraphsTooltipsContent';
-import GraphsTooltipsContentEvents from './GraphsTooltipsContentEvents';
 import GraphsTooltipsContentCoverage from './GraphsTooltipsContentCoverage';
 import GraphsTooltipsContentDuplication from './GraphsTooltipsContentDuplication';
+import GraphsTooltipsContentEvents from './GraphsTooltipsContentEvents';
 import GraphsTooltipsContentIssues from './GraphsTooltipsContentIssues';
-import { DEFAULT_GRAPH, MeasureHistory, Serie } from '../utils';
-import DateTimeFormatter from '../../../components/intl/DateTimeFormatter';
 
 interface Props {
   events: T.AnalysisEvent[];
index 98f1b52317cfa504e33a00c6f2acbd855824ae8f..88215bd42c5d7c440123a3a772552fe517eec833 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
 import { throttle } from 'lodash';
+import * as React from 'react';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import { toShortNotSoISOString } from 'sonar-ui-common/helpers/dates';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import ProjectActivityAnalysis from './ProjectActivityAnalysis';
 import DateFormatter from '../../../components/intl/DateFormatter';
 import {
   activityQueryChanged,
   getAnalysesByVersionByDay,
-  selectedDateQueryChanged,
+  ParsedAnalysis,
   Query,
-  ParsedAnalysis
+  selectedDateQueryChanged
 } from '../utils';
+import ProjectActivityAnalysis from './ProjectActivityAnalysis';
 
 interface Props {
   addCustomEvent: (analysis: string, name: string, category?: string) => Promise<void>;
index f42ef9337492d6034ffad1b08f7496f69f228f78..e24bd6e9f876ecf744da2eb9ca06f91805971ab7 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { parseDate } from 'sonar-ui-common/helpers/dates';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import * as React from 'react';
 import ActionsDropdown, {
   ActionsDropdownDivider,
   ActionsDropdownItem
 } from 'sonar-ui-common/components/controls/ActionsDropdown';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { parseDate } from 'sonar-ui-common/helpers/dates';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import TimeFormatter from '../../../components/intl/TimeFormatter';
+import { ParsedAnalysis } from '../utils';
 import Events from './Events';
 import AddEventForm from './forms/AddEventForm';
 import RemoveAnalysisForm from './forms/RemoveAnalysisForm';
-import TimeFormatter from '../../../components/intl/TimeFormatter';
-import { ParsedAnalysis } from '../utils';
 
 interface Props {
   addCustomEvent: (analysis: string, name: string, category?: string) => Promise<void>;
index 29faa217d818fda48fbe0552ea2fdcbc13986dc6..f5ad361bd9a6825c54b3295fcb5142be6476a6e3 100644 (file)
@@ -21,13 +21,13 @@ import * as React from 'react';
 import Helmet from 'react-helmet';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import ProjectActivityPageHeader from './ProjectActivityPageHeader';
-import ProjectActivityAnalysesList from './ProjectActivityAnalysesList';
-import ProjectActivityGraphs from './ProjectActivityGraphs';
-import { MeasureHistory, Query, ParsedAnalysis } from '../utils';
 import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
 import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
+import { MeasureHistory, ParsedAnalysis, Query } from '../utils';
 import './projectActivity.css';
+import ProjectActivityAnalysesList from './ProjectActivityAnalysesList';
+import ProjectActivityGraphs from './ProjectActivityGraphs';
+import ProjectActivityPageHeader from './ProjectActivityPageHeader';
 
 interface Props {
   addCustomEvent: (analysis: string, name: string, category?: string) => Promise<void>;
index 52170c3ef3ffa0b4cfa958efb66fb47e882a6deb..7283ba973550d0d5a1502b6859da8c911af1bc63 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { Location } from 'history';
+import * as React from 'react';
 import { InjectedRouter } from 'react-router';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
-import ProjectActivityApp from './ProjectActivityApp';
-import { getAllTimeMachineData } from '../../../api/time-machine';
 import { getAllMetrics } from '../../../api/metrics';
 import * as api from '../../../api/projectActivity';
-import * as actions from '../actions';
+import { getAllTimeMachineData } from '../../../api/time-machine';
 import { getBranchLikeQuery } from '../../../helpers/branches';
+import * as actions from '../actions';
 import {
   customMetricsChanged,
   DEFAULT_GRAPH,
@@ -34,12 +33,13 @@ import {
   getProjectActivityGraph,
   isCustomGraph,
   MeasureHistory,
-  parseQuery,
   ParsedAnalysis,
+  parseQuery,
   Query,
   serializeQuery,
   serializeUrlQuery
 } from '../utils';
+import ProjectActivityApp from './ProjectActivityApp';
 
 interface Props {
   branchLike?: T.BranchLike;
index 979315d5f78d769abf0d52ac681a71c3f5ed727c..4390e23afd53590b876a17d1225c322d1f4c048c 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import DateRangeInput from '../../../components/controls/DateRangeInput';
 import { Query } from '../utils';
 
index d161bd0761fc78aa672aae54ebf776d81dadbb22..2f7ac01cbda771597886902540dfe6930139b41c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { debounce, findLast, maxBy, minBy, sortBy } from 'lodash';
+import * as React from 'react';
 import { save } from 'sonar-ui-common/helpers/storage';
-import ProjectActivityGraphsHeader from './ProjectActivityGraphsHeader';
-import GraphsZoom from './GraphsZoom';
-import GraphsHistory from './GraphsHistory';
 import {
   datesQueryChanged,
   generateSeries,
   getDisplayedHistoryMetrics,
+  getProjectActivityGraph,
   getSeriesMetricType,
   historyQueryChanged,
   isCustomGraph,
@@ -37,9 +35,11 @@ import {
   PROJECT_ACTIVITY_GRAPH_CUSTOM,
   Query,
   Serie,
-  splitSeriesInGraphs,
-  getProjectActivityGraph
+  splitSeriesInGraphs
 } from '../utils';
+import GraphsHistory from './GraphsHistory';
+import GraphsZoom from './GraphsZoom';
+import ProjectActivityGraphsHeader from './ProjectActivityGraphsHeader';
 
 interface Props {
   analyses: ParsedAnalysis[];
index 97d42dd7ded2c79136b2a8bc1ef8a5956ca73066..f5b99e0791956bfe708069077d5922d9e64850dc 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Select from 'sonar-ui-common/components/controls/Select';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { GRAPH_TYPES, isCustomGraph } from '../utils';
 import AddGraphMetric from './forms/AddGraphMetric';
-import { isCustomGraph, GRAPH_TYPES } from '../utils';
 
 interface Props {
   addCustomMetric: (metric: string) => void;
index f5a5f4d0b13e7f5fe9787ce690fa5edaa3fb6fd7..c6e413b6806aed260aeca5505629da0e23b6543e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import Select from 'sonar-ui-common/components/controls/Select';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { APPLICATION_EVENT_TYPES, EVENT_TYPES, Query } from '../utils';
+import ProjectActivityDateInput from './ProjectActivityDateInput';
 import ProjectActivityEventSelectOption from './ProjectActivityEventSelectOption';
 import ProjectActivityEventSelectValue from './ProjectActivityEventSelectValue';
-import ProjectActivityDateInput from './ProjectActivityDateInput';
-import { EVENT_TYPES, APPLICATION_EVENT_TYPES, Query } from '../utils';
 
 interface Props {
   category?: string;
index ca9e160224561d6eb43d16b40613b3d08ac8640d..0f6849554009904e97fd901e14c913af08bfa128 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as classNames from 'classnames';
 import * as React from 'react';
-import ProjectEventIcon from 'sonar-ui-common/components/icons/ProjectEventIcon';
 import { FormattedMessage } from 'react-intl';
 import { Link } from 'react-router';
-import * as classNames from 'classnames';
-import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
+import ProjectEventIcon from 'sonar-ui-common/components/icons/ProjectEventIcon';
 import Level from 'sonar-ui-common/components/ui/Level';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getProjectUrl } from '../../../helpers/urls';
 
 export type RichQualityGateEvent = T.AnalysisEvent & Required<Pick<T.AnalysisEvent, 'qualityGate'>>;
index e089ae5f4546f1df698f2245be64120ccafd8b56..c176bf584dee93222ec9ed98d58d4e3907a92a84 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
-import { DefinitionChangeEventInner, DefinitionChangeEvent } from '../DefinitionChangeEventInner';
+import { DefinitionChangeEvent, DefinitionChangeEventInner } from '../DefinitionChangeEventInner';
 
 it('should render', () => {
   const event: DefinitionChangeEvent = {
index 7b9f4732cc784241899bfba632cda5dd5ec3d5a7..42485b9cb159cdb40679c655b8638db1dc5f144d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
-import GraphHistory from '../GraphHistory';
 import { DEFAULT_GRAPH } from '../../utils';
+import GraphHistory from '../GraphHistory';
 
 const SERIES = [
   {
index 0db7568611cd0f3a6dd3d1945318a175e48ce016..153b6352e31f9025f124c401529f6bf4acfefec0 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
-import GraphsHistory from '../GraphsHistory';
 import { DEFAULT_GRAPH } from '../../utils';
+import GraphsHistory from '../GraphsHistory';
 
 const ANALYSES = [
   {
index 8ce92380a7d26f2f9b9e99ba7b0e3b354faa114b..b0b1f88090908a1279f3b44458caf8dc5def7236 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
 import GraphsLegendCustom from '../GraphsLegendCustom';
 
index ec7433efaf60f630978ca04e06fd385cdf45558d..ae939984ab0827bebc110221388f840e3ca60ca6 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import GraphsLegendItem from '../GraphsLegendItem';
 
 it('should render correctly a legend', () => {
index 211c193d84bfee12470ebc1b4d873e135b4a4c29..2230ae7cb269666cb339d935d6a25d22112acbe1 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import GraphsLegendStatic from '../GraphsLegendStatic';
 
 const SERIES = [
index 6b40182e2800c95111adf690ca7666cdee8e7f02..7ddf932ba1da00c1700ed50592930544204f40ca 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
-import GraphsTooltips from '../GraphsTooltips';
 import { DEFAULT_GRAPH } from '../../utils';
+import GraphsTooltips from '../GraphsTooltips';
 
 const SERIES_ISSUES = [
   {
index 41c2e49bb3fe8051f3f305a3908adb1e67730b45..a54ec0bb8bec9d4b1bad51f6decbb882d20d4087 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import GraphsTooltipsContent from '../GraphsTooltipsContent';
 
 const DEFAULT_PROPS = {
index 2174c899222ef4876dbd5ccad4259e584f8f3e24..221f2b64b7c873809f2a2975370f6002b4fd0bab 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
 import GraphsTooltipsContentCoverage from '../GraphsTooltipsContentCoverage';
 
index 0ca03e266860ad7599589ec10b279ed1b4929973..dbc163bfae9f89d58337b0b3c75cfe0ac266fa62 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
 import GraphsTooltipsContentDuplication from '../GraphsTooltipsContentDuplication';
 
index 4407dc5207de5d6e4d4bcc54ef91cb68965d2ca8..55f5c251497864750db12cae4c7607a2b327c08e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import GraphsTooltipsContentEvents from '../GraphsTooltipsContentEvents';
 
 const EVENTS = [
index 03f2df12cfdfab2937d4b193e7faec0ddb32a96f..c16db4e54d623d78092c9e4eb4567cdaab49b59e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
 import GraphsTooltipsContentIssues from '../GraphsTooltipsContentIssues';
 
index e9f0fe2a6d073fef83bd4c7c1bf14bb0adefe215..3f4e5a879edce195a6b2d1a6216aa40fb0c1b4f0 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
-import ProjectActivityAnalysesList from '../ProjectActivityAnalysesList';
 import { DEFAULT_GRAPH } from '../../utils';
+import ProjectActivityAnalysesList from '../ProjectActivityAnalysesList';
 
 jest.mock('date-fns/start_of_day', () => (date: Date) => {
   const startDay = new Date(date);
index b07bc81f2aa512ec9eb7a1ec14e42ca84e20da54..8e842ab107ccf75b2817549a72a8ec9a2a4ca15d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
+import { mockAnalysisEvent, mockParsedAnalysis } from '../../../../helpers/testMocks';
 import ProjectActivityAnalysis from '../ProjectActivityAnalysis';
-import { mockParsedAnalysis, mockAnalysisEvent } from '../../../../helpers/testMocks';
 
 jest.mock('sonar-ui-common/helpers/dates', () => ({
   parseDate: () => ({
index c323a6754bfa106df906694647865d80673485c0..08c9f4394079b61887bb8b22587a01a8142dd637 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
-import ProjectActivityApp from '../ProjectActivityApp';
 import { DEFAULT_GRAPH } from '../../utils';
+import ProjectActivityApp from '../ProjectActivityApp';
 
 const ANALYSES = [
   {
index 7309e391713e1b948ad5ccf374f69c843dd54c5f..bb7e8384a9170391f2a88b843227130a44a1850c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ProjectActivityAppContainer from '../ProjectActivityAppContainer';
+import * as React from 'react';
 import { mockComponent, mockLocation, mockRouter } from '../../../../helpers/testMocks';
+import ProjectActivityAppContainer from '../ProjectActivityAppContainer';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 70634f4d10c31eebcd1da0d419aef237b9204dc0..45ce664a09fe2f9d9cd604af8ad026b0e8e16a74 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
 import ProjectActivityDateInput from '../ProjectActivityDateInput';
 
index 15bf412652505b7694b025294bfa2a6024a2c750..20af2f91c90c9f1d5660707111ba0b375d59a007 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ProjectActivityEventSelectOption from '../ProjectActivityEventSelectOption';
 
 it('should render correctly', () => {
index db359a663945a64b42e24b2751d2643d61b0fa50..5c601b3d5ead2b454b3de5a4df45c81dec114981 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
-import ProjectActivityGraphs from '../ProjectActivityGraphs';
 import { DEFAULT_GRAPH } from '../../utils';
+import ProjectActivityGraphs from '../ProjectActivityGraphs';
 
 const ANALYSES = [
   {
index a0a8e922e31c55fc8e166672b1d4c76209b92fd1..60df9de3531350c65294c3b1747854ded816ceb6 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
 import ProjectActivityPageHeader from '../ProjectActivityPageHeader';
 
index 57dbfbb01f671d275bdf4319074e5ae802c478de..c14cbc13449538b27d945d0a6d04656acd5cb731 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
-import { RichQualityGateEventInner, RichQualityGateEvent } from '../RichQualityGateEventInner';
+import { RichQualityGateEvent, RichQualityGateEventInner } from '../RichQualityGateEventInner';
 
 const event: RichQualityGateEvent = {
   category: 'QUALITY_GATE',
index ab37de8bf641378a4486408d24112644e61e7376..3b0c9ff0e54d73fd389730217a40a5ee9c634217 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ConfirmModal from 'sonar-ui-common/components/controls/ConfirmModal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ParsedAnalysis } from '../../utils';
 
 interface Props {
index d32e34c254a881b48c9d72f51f70c682700376be..ddd10146615d8d9eff2c31b934aa31b30d5f0ec4 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
-import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import { find, sortBy } from 'lodash';
-import { getLocalizedMetricName, translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
-import AddGraphMetricPopup from './AddGraphMetricPopup';
+import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
+import { getLocalizedMetricName, translate } from 'sonar-ui-common/helpers/l10n';
 import { isDiffMetric } from '../../../../helpers/measures';
+import AddGraphMetricPopup from './AddGraphMetricPopup';
 
 interface Props {
   addMetric: (metric: string) => void;
index 37a957d4600e1f78bc2b3e3574eed014f093b4ac..4fcedfb15ed0d6ec626a3fc426b9ea4adecf38cd 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import MultiSelect from '../../../../components/common/MultiSelect';
 
 interface Props {
index ccc290d8dc88ffd0ff7158a02bd9bff90d205609..05cca219c3663c7adcf3fd0bde317b984ab4ff18 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ConfirmModal from 'sonar-ui-common/components/controls/ConfirmModal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   changeEvent: (event: string, name: string) => Promise<void>;
index 4e111415060e4c84e6296393b33392b2b672172b..c3dee2cac2d787816f39067639d9a99f012ba250 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ConfirmModal from 'sonar-ui-common/components/controls/ConfirmModal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ParsedAnalysis } from '../../utils';
 
 interface Props {
index 38acabb76778cb605f255e9381b4cf1668793d1d..07be3232557ee681af1815ff33bb94af3aa2a4dd 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ConfirmModal from 'sonar-ui-common/components/controls/ConfirmModal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   analysis: string;
index 0fe6350b213c39ca50042a5734e0ffe8c0d8abb7..5e9984bb35bb0038fc13852953cafd59646e3e61 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import AddEventForm from '../AddEventForm';
 
 it('should render correctly', () => {
index 4c739f499f7e6d09d6e06e15d03a706e88aee3e7..ec0a6193c947fd384d5053ff22ea8c6a3c28e229 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ChangeEventForm from '../ChangeEventForm';
 
 it('should render correctly', () => {
index d62745f335038e32de5d33dcf30458c605ff00f9..7d8c774edd26a903ec5d9252e3a9c933955a15f5 100644 (file)
  */
 import * as startOfDay from 'date-fns/start_of_day';
 import { chunk, flatMap, groupBy, isEqual, sortBy } from 'lodash';
+import { parseDate } from 'sonar-ui-common/helpers/dates';
+import { getLocalizedMetricName, translate } from 'sonar-ui-common/helpers/l10n';
 import {
   cleanQuery,
   parseAsArray,
   parseAsDate,
   parseAsString,
-  serializeStringArray,
   serializeDate,
-  serializeString
+  serializeString,
+  serializeStringArray
 } from 'sonar-ui-common/helpers/query';
-import { parseDate } from 'sonar-ui-common/helpers/dates';
 import { get } from 'sonar-ui-common/helpers/storage';
-import { getLocalizedMetricName, translate } from 'sonar-ui-common/helpers/l10n';
 
 export type ParsedAnalysis = T.Omit<T.Analysis, 'date'> & { date: Date };
 
index d72852ebeeeeff3fee6b239439612c7dd267905a..83a78038dcddbe5736247c8470dd9ae54791cec3 100644 (file)
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { Link } from 'react-router';
+import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
-import BranchRow from './BranchRow';
-import LongBranchesPattern from './LongBranchesPattern';
+import { getValues } from '../../../api/settings';
 import {
-  sortBranchesAsTree,
   getBranchLikeKey,
+  isPullRequest,
   isShortLivingBranch,
-  isPullRequest
+  sortBranchesAsTree
 } from '../../../helpers/branches';
-import { getValues } from '../../../api/settings';
+import BranchRow from './BranchRow';
+import LongBranchesPattern from './LongBranchesPattern';
 
 interface Props {
   branchLikes: T.BranchLike[];
index 3dbf7df802444366f5a771390184feb641b8047c..10205a7f9325c4b70a39ebcf2b50b3ad9f99357c 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { connect } from 'react-redux';
-import App from './App';
 import { getAppState, Store } from '../../../store/rootReducer';
+import App from './App';
 
 const mapStateToProps = (state: Store) => ({
   canAdmin: getAppState(state).canAdmin
index e914132022906c28dd6ad10146410f88f0631df8..6dc8f5e82a8106d16c41bcfd4757588b8af3a2a8 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import ActionsDropdown, {
-  ActionsDropdownItem,
-  ActionsDropdownDivider
+  ActionsDropdownDivider,
+  ActionsDropdownItem
 } from 'sonar-ui-common/components/controls/ActionsDropdown';
-import DeleteBranchModal from './DeleteBranchModal';
-import LeakPeriodForm from './LeakPeriodForm';
-import RenameBranchModal from './RenameBranchModal';
-import BranchIcon from '../../../components/icons-components/BranchIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import BranchStatus from '../../../components/common/BranchStatus';
+import BranchIcon from '../../../components/icons-components/BranchIcon';
+import DateFromNow from '../../../components/intl/DateFromNow';
 import {
-  isShortLivingBranch,
+  getBranchLikeDisplayName,
   isLongLivingBranch,
   isMainBranch,
-  getBranchLikeDisplayName,
-  isPullRequest
+  isPullRequest,
+  isShortLivingBranch
 } from '../../../helpers/branches';
-import DateFromNow from '../../../components/intl/DateFromNow';
+import DeleteBranchModal from './DeleteBranchModal';
+import LeakPeriodForm from './LeakPeriodForm';
+import RenameBranchModal from './RenameBranchModal';
 
 interface Props {
   branchLike: T.BranchLike;
index a9d87b4914ef9f82ca9305a673edb031fb6f069a..8306c30d8a5886041b6804aaba4b568b494ac363 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { deleteBranch, deletePullRequest } from '../../../api/branches';
-import { isPullRequest, getBranchLikeDisplayName } from '../../../helpers/branches';
+import { getBranchLikeDisplayName, isPullRequest } from '../../../helpers/branches';
 
 interface Props {
   branchLike: T.BranchLike;
index 6b13c59c83534300d9a13921bd6812abedfe96ec..5861698439adcb74bcde2fa47c414452763ad53a 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Modal from 'sonar-ui-common/components/controls/Modal';
-import SettingForm from './SettingForm';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getValues } from '../../../api/settings';
+import SettingForm from './SettingForm';
 
 interface Props {
   branch: string;
index 319eb46d9596a1db2331131185a94d82e9bbffc1..0199d201ead8cb4aa520d044b8daaffe416d0e80 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { EditButton } from 'sonar-ui-common/components/controls/buttons';
-import LongBranchesPatternForm from './LongBranchesPatternForm';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getValues } from '../../../api/settings';
+import LongBranchesPatternForm from './LongBranchesPatternForm';
 
 interface Props {
   project: string;
index 842592db598e35bf9b99ac3b6e68b42f543ed73d..a0d6816dc216adef7d91a3f6b9e231989a0afce6 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Modal from 'sonar-ui-common/components/controls/Modal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import SettingForm from './SettingForm';
 
 interface Props {
index 4826832374db122eb41d9722225b72b6b745cefa..8319d79e1f5f7f63f01f6066662ad01e478d01ef 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { renameBranch } from '../../../api/branches';
 
 interface Props {
index 6aaaeb599fa503e6ee3da7aafd6600be39e96961..8ea209f8ad8b91a377312fcfafd23fe1baeba00b 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { Button, ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { Button, SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
-import { setSimpleSettingValue, resetSettingValue } from '../../../api/settings';
+import { resetSettingValue, setSimpleSettingValue } from '../../../api/settings';
 import { sanitizeTranslation } from '../../settings/utils';
 
 interface Props {
index 0d8aa1065780e8d5db0507be45fde0b46c652526..9b04e82dcf4d143f01a134e00b2126133725546f 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { mount, shallow } from 'enzyme';
-import App from '../App';
+import * as React from 'react';
 import { getValues } from '../../../../api/settings';
 import {
-  mockMainBranch,
   mockLongLivingBranch,
-  mockShortLivingBranch,
-  mockPullRequest
+  mockMainBranch,
+  mockPullRequest,
+  mockShortLivingBranch
 } from '../../../../helpers/testMocks';
+import App from '../App';
 
 jest.mock('../../../../api/settings', () => ({
   getValues: jest.fn(() => Promise.resolve([]))
index 479c3489b3599e1397cde06582299d14748f23f0..68fb7a85a3f61b8a546f84d81c4be6ca14e0854c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
-import BranchRow from '../BranchRow';
 import { mockPullRequest, mockShortLivingBranch } from '../../../../helpers/testMocks';
+import BranchRow from '../BranchRow';
 
 const mainBranch: T.MainBranch = { isMain: true, name: 'master' };
 
index 16ebf2e7aed03a7f194893afbab6e20de1aeb75c..589b3a699d64ccd53fc58d9d3cd3ce3ccc74f1b3 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow, ShallowWrapper } from 'enzyme';
-import { submit, doAsync, click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import DeleteBranchModal from '../DeleteBranchModal';
+import * as React from 'react';
+import { click, doAsync, submit, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import { deleteBranch, deletePullRequest } from '../../../../api/branches';
-import { mockShortLivingBranch, mockPullRequest } from '../../../../helpers/testMocks';
+import { mockPullRequest, mockShortLivingBranch } from '../../../../helpers/testMocks';
+import DeleteBranchModal from '../DeleteBranchModal';
 
 jest.mock('../../../../api/branches', () => ({
   deleteBranch: jest.fn(),
index 291687975ce1e48a32bc55fca07c6bf44710a2a3..8e307c9679cb69824ebb88597dd0322bed10d459 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable import/order */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import LongBranchesPattern from '../LongBranchesPattern';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
+import LongBranchesPattern from '../LongBranchesPattern';
 
 jest.mock('../../../../api/settings', () => ({
   getValues: jest.fn(() => Promise.resolve([]))
index b61882956a067b96598a8c3cf84d88ad1a7ba811..ce4508257f1ed56e0db07fd82d2efb81c2802109 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import LongBranchesPatternForm from '../LongBranchesPatternForm';
 
 it('renders', () => {
index 6e8dc328b60c1129de900186eb719a03be47b79f..8fe1853007b7f3305c947e0d11b9cf0083b56566 100644 (file)
 /* eslint-disable import/first */
 jest.mock('../../../../api/branches', () => ({ renameBranch: jest.fn() }));
 
-import * as React from 'react';
 import { shallow, ShallowWrapper } from 'enzyme';
-import { submit, doAsync, click, change, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import RenameBranchModal from '../RenameBranchModal';
+import * as React from 'react';
+import { change, click, doAsync, submit, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import { renameBranch } from '../../../../api/branches';
+import RenameBranchModal from '../RenameBranchModal';
 
 beforeEach(() => {
   (renameBranch as jest.Mock<any>).mockClear();
index 54976f26ea3ba499c13fa38681cc2b6c047d0fac..8d1c72aaaf45822df9836899647084daa9bf35df 100644 (file)
@@ -23,10 +23,10 @@ jest.mock('../../../../api/settings', () => ({
   resetSettingValue: jest.fn(() => Promise.resolve())
 }));
 
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { change, click, submit } from 'sonar-ui-common/helpers/testUtils';
 import SettingForm from '../SettingForm';
-import { change, submit, click } from 'sonar-ui-common/helpers/testUtils';
 
 const setSimpleSettingValue = require('../../../../api/settings')
   .setSimpleSettingValue as jest.Mock<any>;
index bdc1ce9fe582bb0d31f118df5fb73f527ce69e8c..e9edf1d4eb6b6ec8215829ac17987c2fefe2171d 100644 (file)
@@ -20,8 +20,8 @@
 import * as React from 'react';
 import Helmet from 'react-helmet';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Header from './Header';
 import Form from './Form';
+import Header from './Header';
 
 interface Props {
   component: Pick<T.Component, 'key' | 'name' | 'qualifier'>;
index 4db17817d6b6dc3e43f7e5a1a2cb55796b335a7c..0d9c4dc8cb9ebfc19d8f9fc615468cfc7cf764f7 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton';
-import { withRouter, Router } from '../../components/hoc/withRouter';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { deletePortfolio, deleteProject } from '../../api/components';
 import addGlobalSuccessMessage from '../../app/utils/addGlobalSuccessMessage';
-import { deleteProject, deletePortfolio } from '../../api/components';
+import { Router, withRouter } from '../../components/hoc/withRouter';
 
 interface Props {
   component: Pick<T.Component, 'key' | 'name' | 'qualifier'>;
index f9510026a73c5cc335baee77afe886421d020b6a..0217bedc168836aca4bb3b43bb8e805183e70206 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import App from '../App';
 
 it('should render', () => {
index 340e5ec4268fe2097e3bfe7117d735a8c0884ae8..4e8da33f9ff98e98104fcda25621b6618053722b 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { Form } from '../Form';
-import { deleteProject, deletePortfolio } from '../../../api/components';
+import * as React from 'react';
+import { deletePortfolio, deleteProject } from '../../../api/components';
 import { mockRouter } from '../../../helpers/testMocks';
+import { Form } from '../Form';
 
 jest.mock('../../../api/components', () => ({
   deleteProject: jest.fn().mockResolvedValue(undefined),
index 4a6539eb90a078ec3fbcd9c2fdac351144011f4e..1280d2666182fd5000c3a9fea6fe122ea490997c 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Header from '../Header';
 
 it('should render', () => {
index 06727783c59c7b2751d97be696404692f998a285..8b14bca58bd222f0887598270ed6b87f867caff5 100644 (file)
@@ -21,9 +21,9 @@ import * as React from 'react';
 import Helmet from 'react-helmet';
 import { withRouter, WithRouterProps } from 'react-router';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import UpdateForm from './UpdateForm';
 import { changeKey } from '../../api/components';
 import RecentHistory from '../../app/components/RecentHistory';
+import UpdateForm from './UpdateForm';
 
 interface Props {
   component: Pick<T.Component, 'key' | 'name'>;
index dd074484a7dc4795d88eb144d2184319b2c975a0..fb24ccc1b9ef2f2800ea95ea73ae16470d7c5772 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Button, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   component: Pick<T.Component, 'key' | 'name'>;
index be2fb9df4a9f8c020def69814bdd0e7436112ec8..e95f7062c0396742cc927e03ce8ae8deab1fc6ba 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { WithRouterProps } from 'react-router';
-import { Key } from '../Key';
 import { changeKey } from '../../../api/components';
+import { Key } from '../Key';
 
 jest.mock('../../../api/components', () => ({
   changeKey: jest.fn().mockResolvedValue(undefined)
index 9c53f5252bd920000d2a8480d3ee54e1195158b1..4149bb04072e40069e77337b842d65a119199a29 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow, ShallowWrapper } from 'enzyme';
+import * as React from 'react';
 import { change, click } from 'sonar-ui-common/helpers/testUtils';
 import UpdateForm from '../UpdateForm';
 
index 213771d8bbae89429527ecd10e1db85e0daef0a1..e10e0ccbeb5e1e92c1c846b766ea8633a7c521c0 100644 (file)
  */
 import * as React from 'react';
 import Helmet from 'react-helmet';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { createLink, deleteLink, getProjectLinks } from '../../api/projectLinks';
 import Header from './Header';
 import Table from './Table';
-import { getProjectLinks, createLink, deleteLink } from '../../api/projectLinks';
 
 interface Props {
   component: Pick<T.Component, 'key'>;
index ebdc7db435ff88396eebed3cbc546089537e8f2e..0e44cc7bfceb51d9d4aa6f6fd0fb8ff881906250 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   onClose: () => void;
index c5090a2df91441ed7768f269ada1b97fc85e9c20..cf919e0283614aa79fb8e4b54a8991fd7e00cdf8 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import CreationModal from './CreationModal';
 
 interface Props {
index a628eb2f2a8572b4dfa899f67238fad532eadb9a..bab3dd9271e6f3a3ad336bf33aa9dd558e217b84 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import ProjectLinkIcon from 'sonar-ui-common/components/icons/ProjectLinkIcon';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton';
-import { isProvided, getLinkName } from './utils';
+import ProjectLinkIcon from 'sonar-ui-common/components/icons/ProjectLinkIcon';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import isValidUri from '../../app/utils/isValidUri';
+import { getLinkName, isProvided } from './utils';
 
 interface Props {
   link: T.ProjectLink;
index d849e477f8258946b0baa5cc337ea907b9c06b7a..64230d1b54fc6bd84a3b66ca58094997e568d0ad 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import App from '../App';
 import { createLink, deleteLink, getProjectLinks } from '../../../api/projectLinks';
+import App from '../App';
 
 // import { getProjectLinks, createLink, deleteLink } from '../../api/projectLinks';
 jest.mock('../../../api/projectLinks', () => ({
index 781303f1a6d72d9bf358b5f568e6a4ffbe1a8400..a87ca9672513829461dcc31af8b49486bf9be6cc 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { change, submit } from 'sonar-ui-common/helpers/testUtils';
 import CreationModal from '../CreationModal';
 
index 105117e83ece82ff75300f65f02224ca576c77bc..9d289aef9be715db136e91f680ff147e30864475 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import Header from '../Header';
 
index e91ae81458ba6346c7d4107a2e7ad665b04d5b53..a71da3215dec9100042429888a2b194bb35017b7 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import LinkRow from '../LinkRow';
 
 it('should render provided link', () => {
index 35cd1ed19b38a2181ad3bfe608c6bc362907d9c4..07bc5142a10b396de2654cfac354e7dd426d3393 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Table from '../Table';
 
 it('should render', () => {
index 351b224b8daba93136b2704b2b2760e466984b3f..42e67969a5c7f761a6ead3c9c12d49e5540a0fdf 100644 (file)
 import * as React from 'react';
 import Helmet from 'react-helmet';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Header from './Header';
-import Form from './Form';
 import {
-  fetchQualityGates,
-  getGateForProject,
   associateGateWithProject,
-  dissociateGateWithProject
+  dissociateGateWithProject,
+  fetchQualityGates,
+  getGateForProject
 } from '../../api/quality-gates';
 import A11ySkipTarget from '../../app/components/a11y/A11ySkipTarget';
 import Suggestions from '../../app/components/embed-docs-modal/Suggestions';
 import addGlobalSuccessMessage from '../../app/utils/addGlobalSuccessMessage';
 import handleRequiredAuthorization from '../../app/utils/handleRequiredAuthorization';
+import Form from './Form';
+import Header from './Header';
 
 interface Props {
   component: T.Component;
index d47df6d134e0b8731313c9995c791864ccf3a87b..3dd1ddcee067833efc7ceb63066690d2b53002a3 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Select from 'sonar-ui-common/components/controls/Select';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   allGates: T.QualityGate[];
index e619d66a04a83c59c99c22346bcf585f0f2fc2d0..e24808238ad688354f4a3a49bdfdcef92ebd7699 100644 (file)
@@ -33,8 +33,8 @@ jest.mock('../../../app/utils/handleRequiredAuthorization', () => ({
   default: jest.fn()
 }));
 
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import App from '../App';
 
 const associateGateWithProject = require('../../../api/quality-gates')
index 437685be0a3f68f7068cc5fe986c1f4bbbfaa82d..f9333099013593de6bffeb2d67356ae67153694f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Form from '../Form';
 
 it('renders', () => {
index f898192c4c06ce6a2f133ee69923eb692480d2c0..d5d9dafc2e3e96178c0a40f045d8f5530a6a1968 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Header from '../Header';
 
 it('renders', () => {
index 795994b4a9b0cdce1a4bce219888262104d9ca2d..52b84a72ebf0c4a6e9832cca30f1379f25fdc8c2 100644 (file)
 import * as React from 'react';
 import Helmet from 'react-helmet';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import Header from './Header';
-import Table from './Table';
 import {
   associateProject,
   dissociateProject,
-  searchQualityProfiles,
-  Profile
+  Profile,
+  searchQualityProfiles
 } from '../../api/quality-profiles';
 import A11ySkipTarget from '../../app/components/a11y/A11ySkipTarget';
 import Suggestions from '../../app/components/embed-docs-modal/Suggestions';
 import addGlobalSuccessMessage from '../../app/utils/addGlobalSuccessMessage';
 import handleRequiredAuthorization from '../../app/utils/handleRequiredAuthorization';
+import Header from './Header';
+import Table from './Table';
 
 interface Props {
   component: T.Component;
index e4ed9fe34abbf0ac3cda616eba4a7c0fad1c9e15..b34b2430e30ea8c0bd00af3b4a359ea59791cb4d 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Select from 'sonar-ui-common/components/controls/Select';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Profile } from '../../api/quality-profiles';
 
 interface Props {
index 2b3c350f8b6fcfa7d7218e9a92b487f49a1c7b3f..a1f691bba68cf4327b48798346a3c65ae02e87e5 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { groupBy, orderBy } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import ProfileRow from './ProfileRow';
 import { Profile } from '../../api/quality-profiles';
+import ProfileRow from './ProfileRow';
 
 interface Props {
   allProfiles: Profile[];
index c902e2b8e71886ae0766e6170b21a18fe531db20..25a77d0d9ce873b9440da3613cead5d4c8b33643 100644 (file)
@@ -32,8 +32,8 @@ jest.mock('../../../app/utils/handleRequiredAuthorization', () => ({
   default: jest.fn()
 }));
 
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import App from '../App';
 
 const associateProject = require('../../../api/quality-profiles').associateProject as jest.Mock<
index f898192c4c06ce6a2f133ee69923eb692480d2c0..d5d9dafc2e3e96178c0a40f045d8f5530a6a1968 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Header from '../Header';
 
 it('renders', () => {
index d01dc3676e38422904f4dd01ca2bb931150e2c58..7decc1058a812975d708949275f21721d32f6e21 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ProfileRow from '../ProfileRow';
 
 it('renders', () => {
index cdb345bdeecb19e6444285cdeeec13c3d15db7b8..c3bc393ff79f139691778865987bf95e85a9f7cb 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Table from '../Table';
 
 it('renders', () => {
index 5272d0240f50e8fc3023a9d6dba6d606c9b1d921..11d00c65698700aaa0f1ae432060def258170a0e 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as utils from '../utils';
 import { searchProjects } from '../../../api/components';
-import { mockOrganization, mockComponent } from '../../../helpers/testMocks';
+import { mockComponent, mockOrganization } from '../../../helpers/testMocks';
+import * as utils from '../utils';
 
 jest.mock('../../../api/components', () => ({
   searchProjects: jest.fn().mockResolvedValue({ components: [], facets: [], paging: { total: 10 } })
index 2fb4431129014eb0c115438cee7165cd1042b516..39687da019feb0427a8d997f5c3f9d27528d7545 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { omitBy } from 'lodash';
 import * as React from 'react';
 import Helmet from 'react-helmet';
-import { omitBy } from 'lodash';
+import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import handleRequiredAuthentication from 'sonar-ui-common/helpers/handleRequiredAuthentication';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { addSideBarClass, removeSideBarClass } from 'sonar-ui-common/helpers/pages';
 import { get, save } from 'sonar-ui-common/helpers/storage';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import handleRequiredAuthentication from 'sonar-ui-common/helpers/handleRequiredAuthentication';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
-import PageHeader from './PageHeader';
-import ProjectsList from './ProjectsList';
-import PageSidebar from './PageSidebar';
 import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
-import OrganizationEmpty from '../../organizations/components/OrganizationEmpty';
-import ScreenPositionHelper from '../../../components/common/ScreenPositionHelper';
 import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
-import Visualizations from '../visualizations/Visualizations';
-import { Project, Facets } from '../types';
-import { fetchProjects, parseSorting, SORTING_SWITCH } from '../utils';
-import { parseUrlQuery, Query, hasFilterParams, hasVisualizationParams } from '../query';
-import { isSonarCloud } from '../../../helpers/system';
-import { isLoggedIn } from '../../../helpers/users';
 import { OnboardingContext } from '../../../app/components/OnboardingContext';
-import { withRouter, Location, Router } from '../../../components/hoc/withRouter';
+import ScreenPositionHelper from '../../../components/common/ScreenPositionHelper';
+import { Location, Router, withRouter } from '../../../components/hoc/withRouter';
 import '../../../components/search-navigator.css';
+import { isSonarCloud } from '../../../helpers/system';
+import { isLoggedIn } from '../../../helpers/users';
+import OrganizationEmpty from '../../organizations/components/OrganizationEmpty';
+import { hasFilterParams, hasVisualizationParams, parseUrlQuery, Query } from '../query';
 import '../styles.css';
+import { Facets, Project } from '../types';
+import { fetchProjects, parseSorting, SORTING_SWITCH } from '../utils';
+import Visualizations from '../visualizations/Visualizations';
+import PageHeader from './PageHeader';
+import PageSidebar from './PageSidebar';
+import ProjectsList from './ProjectsList';
 
 interface Props {
   currentUser: T.CurrentUser;
index 0039aa6e1f6f89312b472ea124ebb19913835ca5..357325ccfbf1f7b74a10722cb343fa270ad29eb7 100644 (file)
@@ -19,7 +19,7 @@
  */
 import { connect } from 'react-redux';
 import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
-import { getCurrentUser, areThereCustomOrganizations, Store } from '../../../store/rootReducer';
+import { areThereCustomOrganizations, getCurrentUser, Store } from '../../../store/rootReducer';
 
 const stateToProps = (state: Store) => ({
   currentUser: getCurrentUser(state),
index dc3801ee4754b17d52429d51c4df5aa0524c5a9f..8b9b8b2ba6c06e61bf109233e89e70659b302e43 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   onClearAll: () => void;
index 2107f27314ccb971fac342f8cb52af7feeadb896..c5eb3db4bfe0f570130c7366dd5663c3fe7479e3 100644 (file)
  */
 import * as React from 'react';
 import { get } from 'sonar-ui-common/helpers/storage';
-import AllProjectsContainer from './AllProjectsContainer';
-import { PROJECTS_DEFAULT_FILTER, PROJECTS_FAVORITE, PROJECTS_ALL } from '../utils';
 import { searchProjects } from '../../../api/components';
+import { Location, Router, withRouter } from '../../../components/hoc/withRouter';
 import { isSonarCloud } from '../../../helpers/system';
 import { isLoggedIn } from '../../../helpers/users';
-import { withRouter, Location, Router } from '../../../components/hoc/withRouter';
+import { PROJECTS_ALL, PROJECTS_DEFAULT_FILTER, PROJECTS_FAVORITE } from '../utils';
+import AllProjectsContainer from './AllProjectsContainer';
 
 interface Props {
   currentUser: T.CurrentUser;
index 0961b1b41a4e56ca4bbf5319ad6de162db297b34..a69bce02fba099979474815ec4fe17df087a0b1c 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { connect } from 'react-redux';
-import DefaultPageSelector from './DefaultPageSelector';
 import { getCurrentUser, Store } from '../../../store/rootReducer';
+import DefaultPageSelector from './DefaultPageSelector';
 
 const stateToProps = (state: Store) => ({
   currentUser: getCurrentUser(state)
index 7519ba586f3c8570e3ffc392bd95a4e01ec95e5f..37ce4ffcd087da0ae776b167328b5bc6af855689 100644 (file)
@@ -21,8 +21,8 @@ import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { Link } from 'react-router';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Query } from '../query';
 import '../../../components/common/EmptySearch.css';
+import { Query } from '../query';
 
 export default function EmptyFavoriteSearch({ query }: { query: Query }) {
   return (
index bfd3e2a6250d8538497afdef4d81963bdd3efc07..d6cbd0cf004e6140f2f65ad05067eb828741c18f 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { OnboardingContextShape } from '../../../app/components/OnboardingContext';
 import { isSonarCloud } from '../../../helpers/system';
 import { hasGlobalPermission, isLoggedIn } from '../../../helpers/users';
-import { OnboardingContextShape } from '../../../app/components/OnboardingContext';
 
 interface Props {
   currentUser: T.CurrentUser;
index 4e112bffa6c26b6d6d3a74be3505119c91b62bc4..3f5dcd2aa17e697a4df961886fef7fcd884ce9d4 100644 (file)
  */
 import * as React from 'react';
 import { IndexLink, Link } from 'react-router';
-import { save } from 'sonar-ui-common/helpers/storage';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { PROJECTS_DEFAULT_FILTER, PROJECTS_FAVORITE, PROJECTS_ALL } from '../utils';
+import { save } from 'sonar-ui-common/helpers/storage';
 import { isLoggedIn } from '../../../helpers/users';
+import { PROJECTS_ALL, PROJECTS_DEFAULT_FILTER, PROJECTS_FAVORITE } from '../utils';
 
 interface Props {
   currentUser: T.CurrentUser;
index a0f823f885aa8e25a0d52647eb03366e5a3f3665..486c4a845a01a9ff32332fd692ba025e369905b9 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { connect } from 'react-redux';
-import FavoriteFilter from './FavoriteFilter';
 import { getCurrentUser, Store } from '../../../store/rootReducer';
+import FavoriteFilter from './FavoriteFilter';
 
 function mapStateToProps(state: Store) {
   return { currentUser: getCurrentUser(state) };
index 02a75616768e2c87ac83709453fcd659d784ff72..49052650671f8d780dda824bb11272061a9e7acd 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { sortBy } from 'lodash';
 import * as React from 'react';
-import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
-import { Link } from 'react-router';
 import { connect } from 'react-redux';
-import { sortBy } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import { Link } from 'react-router';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
+import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { OnboardingContextShape } from '../../../app/components/OnboardingContext';
 import OrganizationListItem from '../../../components/ui/OrganizationListItem';
-import { getMyOrganizations, Store } from '../../../store/rootReducer';
 import { isSonarCloud } from '../../../helpers/system';
-import { OnboardingContextShape } from '../../../app/components/OnboardingContext';
+import { getMyOrganizations, Store } from '../../../store/rootReducer';
 
 interface OwnProps {
   openProjectOnboarding: OnboardingContextShape;
index 29abf49354a922b2b6fa124cb4d9eb6ac7c4f924..1cbfa649982a7c664d7ba347733c97e0740b9623 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import PerspectiveSelect from './PerspectiveSelect';
-import ProjectsSortingSelect from './ProjectsSortingSelect';
-import SearchFilterContainer from '../filters/SearchFilterContainer';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import HomePageSelect from '../../../components/controls/HomePageSelect';
-import { Project } from '../types';
 import { isSonarCloud } from '../../../helpers/system';
 import { isLoggedIn } from '../../../helpers/users';
+import SearchFilterContainer from '../filters/SearchFilterContainer';
+import { Project } from '../types';
+import PerspectiveSelect from './PerspectiveSelect';
+import ProjectsSortingSelect from './ProjectsSortingSelect';
 
 interface Props {
   currentUser: T.CurrentUser;
index 6b9ca2629a8c1c3b71975a406493ca2fcbb2c0be..fb1f81fbcbec67f70470566678af7265be94e986 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { flatMap } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import FavoriteFilterContainer from './FavoriteFilterContainer';
-import ClearAll from './ClearAll';
-import LanguagesFilterContainer from '../filters/LanguagesFilterContainer';
 import CoverageFilter from '../filters/CoverageFilter';
 import DuplicationsFilter from '../filters/DuplicationsFilter';
+import LanguagesFilterContainer from '../filters/LanguagesFilterContainer';
 import MaintainabilityFilter from '../filters/MaintainabilityFilter';
 import NewCoverageFilter from '../filters/NewCoverageFilter';
 import NewDuplicationsFilter from '../filters/NewDuplicationsFilter';
+import NewLinesFilter from '../filters/NewLinesFilter';
 import NewMaintainabilityFilter from '../filters/NewMaintainabilityFilter';
 import NewReliabilityFilter from '../filters/NewReliabilityFilter';
 import NewSecurityFilter from '../filters/NewSecurityFilter';
-import NewLinesFilter from '../filters/NewLinesFilter';
 import QualityGateFilter from '../filters/QualityGateFilter';
 import ReliabilityFilter from '../filters/ReliabilityFilter';
 import SecurityFilter from '../filters/SecurityFilter';
 import SizeFilter from '../filters/SizeFilter';
 import TagsFilter from '../filters/TagsFilter';
-import { Facets } from '../types';
 import { hasFilterParams } from '../query';
+import { Facets } from '../types';
+import ClearAll from './ClearAll';
+import FavoriteFilterContainer from './FavoriteFilterContainer';
 
 interface Props {
   facets?: Facets;
index dd8e17564deb235535e8c259ed274b04dea68b61..ca12a85c5c0b04f2bca434575de7953af9135f06 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Select from 'sonar-ui-common/components/controls/Select';
-import PerspectiveSelectOption, { Option } from './PerspectiveSelectOption';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { VIEWS, VISUALIZATIONS } from '../utils';
+import PerspectiveSelectOption, { Option } from './PerspectiveSelectOption';
 
 interface Props {
   className?: string;
index e5caa34de30fa9e8799ff5fa3418ae0b5d25b551..b94f05029d0bbe1846d4aac19e7ab010c57dba2c 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import ListIcon from 'sonar-ui-common/components/icons/ListIcon';
 import BubblesIcon from 'sonar-ui-common/components/icons/BubblesIcon';
+import ListIcon from 'sonar-ui-common/components/icons/ListIcon';
 
 export interface Option {
   label: string;
index 41eff587d2f51ca39fb9ce77abf61a3843b03129..e3fb68d065b933109323a05d138e26177e721350 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { Project } from '../types';
 import ProjectCardLeak from './ProjectCardLeak';
 import ProjectCardOverall from './ProjectCardOverall';
-import { Project } from '../types';
 
 interface Props {
   currentUser: T.CurrentUser;
index aae782adfc3606c1f44125696f86e6d5d29027b8..f9f8f1af4c4723c0e66c44427431af9a3a5399bf 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   className?: string;
index c893b0f417009573caf26fec09ffdf5962083285..9798fc27ee876c49e86298ba71b0c2390e25289f 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { connect } from 'react-redux';
-import ProjectCardLanguages from './ProjectCardLanguages';
 import { getLanguages, Store } from '../../../store/rootReducer';
+import ProjectCardLanguages from './ProjectCardLanguages';
 
 const stateToProps = (state: Store) => ({
   languages: getLanguages(state)
index 4c471ed73d1df0ef4bb9d7a2b6389bb2a59af33a..fd50146e150996380e4c806cfe727bb4ac8f0ee3 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as difference from 'date-fns/difference_in_milliseconds';
 import * as React from 'react';
 import { Link } from 'react-router';
-import * as difference from 'date-fns/difference_in_milliseconds';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import ProjectCardQualityGate from './ProjectCardQualityGate';
-import ProjectCardLeakMeasures from './ProjectCardLeakMeasures';
-import ProjectCardOrganizationContainer from './ProjectCardOrganizationContainer';
+import PrivacyBadgeContainer from '../../../components/common/PrivacyBadgeContainer';
 import Favorite from '../../../components/controls/Favorite';
 import DateTimeFormatter from '../../../components/intl/DateTimeFormatter';
 import TagsList from '../../../components/tags/TagsList';
-import PrivacyBadgeContainer from '../../../components/common/PrivacyBadgeContainer';
-import { Project } from '../types';
-import { formatDuration } from '../utils';
 import { getProjectUrl } from '../../../helpers/urls';
 import { isLoggedIn } from '../../../helpers/users';
+import { Project } from '../types';
+import { formatDuration } from '../utils';
+import ProjectCardLeakMeasures from './ProjectCardLeakMeasures';
+import ProjectCardOrganizationContainer from './ProjectCardOrganizationContainer';
+import ProjectCardQualityGate from './ProjectCardQualityGate';
 
 interface Props {
   currentUser: T.CurrentUser;
index 57d6e9f18fb00e0c36536df94930e5100f16b82c..c2aedf96ded9b0a01f011947f0310eaf98eb5c61 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { connect } from 'react-redux';
-import ProjectCardOrganization from './ProjectCardOrganization';
 import { areThereCustomOrganizations, Store } from '../../../store/rootReducer';
+import ProjectCardOrganization from './ProjectCardOrganization';
 
 const stateToProps = (state: Store) => ({
   organizationsEnabled: areThereCustomOrganizations(state)
index 34edd81944d4384ef78672ad2364d13d98fbe5a7..2d7c85ef7357e35d8fca22754b4f2205e5d19e8e 100644 (file)
 import * as React from 'react';
 import { Link } from 'react-router';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import ProjectCardQualityGate from './ProjectCardQualityGate';
-import ProjectCardOverallMeasures from './ProjectCardOverallMeasures';
-import ProjectCardOrganizationContainer from './ProjectCardOrganizationContainer';
+import PrivacyBadgeContainer from '../../../components/common/PrivacyBadgeContainer';
 import Favorite from '../../../components/controls/Favorite';
 import DateTimeFormatter from '../../../components/intl/DateTimeFormatter';
 import TagsList from '../../../components/tags/TagsList';
-import PrivacyBadgeContainer from '../../../components/common/PrivacyBadgeContainer';
-import { Project } from '../types';
 import { getProjectUrl } from '../../../helpers/urls';
 import { isLoggedIn } from '../../../helpers/users';
+import { Project } from '../types';
+import ProjectCardOrganizationContainer from './ProjectCardOrganizationContainer';
+import ProjectCardOverallMeasures from './ProjectCardOverallMeasures';
+import ProjectCardQualityGate from './ProjectCardQualityGate';
 
 interface Props {
   currentUser: T.CurrentUser;
index 0d9a4a49e6a534e74b658fd0b9ccfb83d808e0ed..4b50e69158ff152bf5b7b7573fc63bded2ea7e85 100644 (file)
@@ -25,9 +25,9 @@ import DuplicationsRating from 'sonar-ui-common/components/ui/DuplicationsRating
 import Rating from 'sonar-ui-common/components/ui/Rating';
 import SizeRating from 'sonar-ui-common/components/ui/SizeRating';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import ProjectCardLanguagesContainer from './ProjectCardLanguagesContainer';
 import Measure from '../../../components/measure/Measure';
 import CoverageRating from '../../../components/ui/CoverageRating';
+import ProjectCardLanguagesContainer from './ProjectCardLanguagesContainer';
 
 interface Props {
   measures: T.Dict<string | undefined>;
index ba15537458f34037ae411021f3a1bcfcddadd169..bb636f9a72613d42fe9d1108cdda40a059bd8811 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translateWithParameters, translate } from 'sonar-ui-common/helpers/l10n';
-import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import Level from 'sonar-ui-common/components/ui/Level';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 
 interface Props {
   status?: string;
index fed40f17638ccf32973ff34f9acc8b2523e6a386..a7967ec2bcf61b9ccf5f24fc1649aadff1383001 100644 (file)
@@ -21,14 +21,14 @@ import * as React from 'react';
 import { AutoSizer } from 'react-virtualized/dist/commonjs/AutoSizer';
 import { List, ListRowProps } from 'react-virtualized/dist/commonjs/List';
 import { WindowScroller } from 'react-virtualized/dist/commonjs/WindowScroller';
-import ProjectCard from './ProjectCard';
-import NoFavoriteProjects from './NoFavoriteProjects';
-import EmptyInstance from './EmptyInstance';
-import EmptyFavoriteSearch from './EmptyFavoriteSearch';
+import { OnboardingContext } from '../../../app/components/OnboardingContext';
 import EmptySearch from '../../../components/common/EmptySearch';
-import { Project } from '../types';
 import { Query } from '../query';
-import { OnboardingContext } from '../../../app/components/OnboardingContext';
+import { Project } from '../types';
+import EmptyFavoriteSearch from './EmptyFavoriteSearch';
+import EmptyInstance from './EmptyInstance';
+import NoFavoriteProjects from './NoFavoriteProjects';
+import ProjectCard from './ProjectCard';
 
 interface Props {
   cardType?: string;
index 32563195b020c87bf9b1733e1df0dec2eca54208..aa3d3d15253f7cb5317632f4498c1ec6bebc202d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
-import SortDescIcon from 'sonar-ui-common/components/icons/SortDescIcon';
 import { sortBy } from 'lodash';
-import SortAscIcon from 'sonar-ui-common/components/icons/SortAscIcon';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import * as React from 'react';
 import { ButtonIcon } from 'sonar-ui-common/components/controls/buttons';
 import Select from 'sonar-ui-common/components/controls/Select';
-import ProjectsSortingSelectOption, { Option } from './ProjectsSortingSelectOption';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import SortAscIcon from 'sonar-ui-common/components/icons/SortAscIcon';
+import SortDescIcon from 'sonar-ui-common/components/icons/SortDescIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { colors } from '../../../app/theme';
-import { SORTING_METRICS, SORTING_LEAK_METRICS, parseSorting } from '../utils';
+import { parseSorting, SORTING_LEAK_METRICS, SORTING_METRICS } from '../utils';
+import ProjectsSortingSelectOption, { Option } from './ProjectsSortingSelectOption';
 
 interface Props {
   className?: string;
index e4963d9ff56bb826024bd5573fda13bbac75879e..54a4b2bcfb10f866eb53d9281fca8e5ad683c6ec 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 
 export interface Option {
   label: string;
index 29b8363d5cdb5fa736008fd959aa53037c26d1ac..e3d9c927cdcad347b403509675d78708867d743b 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable import/order */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { AllProjects } from '../AllProjects';
+import * as React from 'react';
 import { get, save } from 'sonar-ui-common/helpers/storage';
-import { isSonarCloud } from '../../../../helpers/system';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
+import { isSonarCloud } from '../../../../helpers/system';
+import { AllProjects } from '../AllProjects';
 
 jest.mock('../ProjectsList', () => ({
   // eslint-disable-next-line
index de36c1d738cb945b67252eeb3fdcc846be641cac..342186afb362916682e09684d22eccf8ac89776e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import ClearAll from '../ClearAll';
 
index 0e0399f342c598d31d718afbcadd45070fceb314..b09650eed9afbeb41fd7da62d9aaa543895ab9b7 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { mount } from 'enzyme';
+import * as React from 'react';
 import { get } from 'sonar-ui-common/helpers/storage';
 import { doAsync } from 'sonar-ui-common/helpers/testUtils';
-import { DefaultPageSelector } from '../DefaultPageSelector';
 import { searchProjects } from '../../../../api/components';
+import { DefaultPageSelector } from '../DefaultPageSelector';
 
 jest.mock('../AllProjectsContainer', () => ({
   // eslint-disable-next-line
index 4b29c688d04518ed815ca84213e3f9fc80399aa9..9f7123845b159671d979401e239d1fa02645352b 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import EmptyInstance from '../EmptyInstance';
+import * as React from 'react';
 import { isSonarCloud } from '../../../../helpers/system';
+import EmptyInstance from '../EmptyInstance';
 
 jest.mock('../../../../helpers/system', () => ({
   isSonarCloud: jest.fn()
index 91e44c297701c363d5e30c3dcc2b34985c758d49..fb228eb779238b1bc149ddc6570dec4e93246bc5 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { save } from 'sonar-ui-common/helpers/storage';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import FavoriteFilter from '../FavoriteFilter';
index 0f8947329a584612026669b31539fbb3f7f4e8f8..433c0e5b654c4ba25f9c6f049b7fdd4b6896b9a6 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { NoFavoriteProjects } from '../NoFavoriteProjects';
+import * as React from 'react';
 import { isSonarCloud } from '../../../../helpers/system';
+import { NoFavoriteProjects } from '../NoFavoriteProjects';
 
 jest.mock('../../../../helpers/system', () => ({ isSonarCloud: jest.fn() }));
 
index 6eba52f5af30cca5842bbb5f3624f2e3d5a26dfe..26d501912040b680c35ce4603228ec803d4edc1c 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import PageHeader from '../PageHeader';
 
 it('should render correctly', () => {
index f5abcd2c5221000972328886561fbdef65ab0533..c81b88eb7918e2d13de7af971c3f96bda9720bf8 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import PageSidebar from '../PageSidebar';
 
 it('should render correctly', () => {
index 5fb72beed87cb977a4c3c1ef0cf530d1cac193c7..3587d6f54d0b54074aa0a46823b6ed6f5560e3bb 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import PerspectiveSelect from '../PerspectiveSelect';
 
 it('should render correctly', () => {
index be6a07c83705a19b0029d35e6ec28b04d8d27809..39f89fb06579d5fd0dd301b340f310f18977280e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import PerspectiveSelectOption from '../PerspectiveSelectOption';
 
 it('should render correctly for a view', () => {
index 6b40eb6729378fddbb8ec615dcf5abb19198c7a3..5d1d8d7af7762bfbd891c632eec263334452686e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { mockCurrentUser } from '../../../../helpers/testMocks';
 import { Project } from '../../types';
 import ProjectCard from '../ProjectCard';
-import { mockCurrentUser } from '../../../../helpers/testMocks';
 
 const ORGANIZATION = { key: 'org', name: 'org' };
 
index f5e340350687d2d5a93e97d1749f6ef831e08b6a..f49f34dd1bae9389bd103e8b0f713ccbf3c6ce2f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ProjectCardLanguages from '../ProjectCardLanguages';
 
 const languages = {
index 88d83f3fef55f850086287971972bb49bd205a7f..a92e0a2b856b69cce7c48527f880e4273c8e89f9 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ProjectCardLeak from '../ProjectCardLeak';
-import { Project } from '../../types';
+import * as React from 'react';
 import { mockCurrentUser, mockLoggedInUser } from '../../../../helpers/testMocks';
+import { Project } from '../../types';
+import ProjectCardLeak from '../ProjectCardLeak';
 
 jest.mock(
   'date-fns/difference_in_milliseconds',
index a4f7f29219c058020651958657f373c09d0f3265..d76ca94e2ce98ef3054f4b038be151aa30d11314 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ProjectCardLeakMeasures from '../ProjectCardLeakMeasures';
 
 it('should render correctly with all data', () => {
index 979844f75e4a4a6e809afff10e5617195aeabe3a..72cc69266ac54a63666e0c96e2403e1522ee0f6e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ProjectCardOverall from '../ProjectCardOverall';
-import { Project } from '../../types';
+import * as React from 'react';
 import { mockCurrentUser, mockLoggedInUser } from '../../../../helpers/testMocks';
+import { Project } from '../../types';
+import ProjectCardOverall from '../ProjectCardOverall';
 
 const MEASURES = {
   alert_status: 'OK',
index 59166250b713addaa085b182b4cec882f5c17533..ef0fb8400b6676ee861ad5b3376d01806224e124 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ProjectCardOverallMeasures from '../ProjectCardOverallMeasures';
 
 it('should render correctly with all data', () => {
index 2b2977849046681f2ee05d9b9d54a1fcae843a1d..fa738b2ebd683e8d6e0ac272aacb939ceccd0f50 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ProjectCardQualityGate from '../ProjectCardQualityGate';
 
 it('renders', () => {
index 207f1bd0ade6678a07168336603db628a0e9a5ef..f2b289c0ae2c0637d269c76d9c2aa49a9be67fd5 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ProjectsList from '../ProjectsList';
 
 it('renders', () => {
index 5fdaf267cc44a6545a65e9b20ee5c89decab3112..e27cbe84d07ca9cb7aeca56282789de5da7b8a28 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import ProjectsSortingSelect from '../ProjectsSortingSelect';
 
index 02d65e9cfb382e932e3a204b6aaa6fa4f3fdf392..57bb6442bf37cb7d15968edca0123bb2345a93b8 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ProjectsSortingSelectOption from '../ProjectsSortingSelectOption';
 
 it('renders', () => {
index d6b103de2543d0fa670727fa7bd43a4042117f35..79604f890dd1a642d2d8883bb5ff9d84c3926fde 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import {
-  getCoverageRatingLabel,
-  getCoverageRatingAverageValue
+  getCoverageRatingAverageValue,
+  getCoverageRatingLabel
 } from 'sonar-ui-common/helpers/ratings';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import Filter from './Filter';
-import FilterHeader from './FilterHeader';
 import CoverageRating from '../../../components/ui/CoverageRating';
 import { Facet } from '../types';
+import Filter from './Filter';
+import FilterHeader from './FilterHeader';
 
 export interface Props {
   className?: string;
index 656bf42fa21c4b371200fd47bd5b1e573badfd98..b03265d48008dea99f3ed5afb112586cbe06d670 100644 (file)
  */
 import * as React from 'react';
 import DuplicationsRating from 'sonar-ui-common/components/ui/DuplicationsRating';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import {
-  getDuplicationsRatingLabel,
-  getDuplicationsRatingAverageValue
+  getDuplicationsRatingAverageValue,
+  getDuplicationsRatingLabel
 } from 'sonar-ui-common/helpers/ratings';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import { Facet } from '../types';
 import Filter from './Filter';
 import FilterHeader from './FilterHeader';
-import { Facet } from '../types';
 
 export interface Props {
   className?: string;
index b28aaaf8c9124e59599afbf42bf06b33854e71d3..e9518b70f8692b24f70ab7170fe5a483e2d8978a 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import { Facet } from '../types';
index 08b190a63bb0312c506d471ad62fa9a3ba49f4dc..34284a21089d81d339144e8efdb07506d84f0063 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Rating from 'sonar-ui-common/components/ui/Rating';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { Facet } from '../types';
 import Filter from './Filter';
 import FilterHeader from './FilterHeader';
-import { Facet } from '../types';
 
 interface Props {
   className?: string;
index 364033ea7653bcb3987efa4e646cd9abfd3bf282..5656fcd844037347863f0ab403e0aeb3d069b852 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { difference, sortBy } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import { getLanguageByKey } from '../../../store/languages';
+import { Facet } from '../types';
 import Filter from './Filter';
 import FilterHeader from './FilterHeader';
 import SearchableFilterFooter from './SearchableFilterFooter';
 import SearchableFilterOption from './SearchableFilterOption';
-import { getLanguageByKey } from '../../../store/languages';
-import { Facet } from '../types';
 
 interface Props {
   facet?: Facet;
index aaae92a8fbc2f87e1f53e0d11e561ab5975b3cf1..c57164a2ff56ceb46de4e3828546f824b7dbb6cb 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { connect } from 'react-redux';
-import LanguagesFilter from './LanguagesFilter';
 import { getLanguages, Store } from '../../../store/rootReducer';
+import LanguagesFilter from './LanguagesFilter';
 
 const stateToProps = (state: Store) => ({
   languages: getLanguages(state)
index c0e678a4ade1dad4816934ddcd7f4db5817aa6ac..15213518e208a2acad58de713ec050f73ef71fcf 100644 (file)
@@ -20,8 +20,8 @@
 import * as React from 'react';
 import CodeSmellIcon from 'sonar-ui-common/components/icons/CodeSmellIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import IssuesFilter from './IssuesFilter';
 import { Facet } from '../types';
+import IssuesFilter from './IssuesFilter';
 
 interface Props {
   className?: string;
index 0a18a2c8f23c4775bcf571882c06fe697a7fc9d1..391180e113950ec21ddcaf62a30c0b5e0180cb15 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { getSizeRatingLabel } from 'sonar-ui-common/helpers/ratings';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import { getSizeRatingLabel } from 'sonar-ui-common/helpers/ratings';
+import { Facet } from '../types';
 import Filter from './Filter';
 import FilterHeader from './FilterHeader';
-import { Facet } from '../types';
 
 export interface Props {
   className?: string;
index 89cf199f3a240d6ad5fbd7f33a5f13d978c3e33c..07481beacdbce21111cc8d030d7f7e19ed2767f6 100644 (file)
@@ -20,8 +20,8 @@
 import * as React from 'react';
 import CodeSmellIcon from 'sonar-ui-common/components/icons/CodeSmellIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import IssuesFilter from './IssuesFilter';
 import { Facet } from '../types';
+import IssuesFilter from './IssuesFilter';
 
 interface Props {
   className?: string;
index e7735b5eaea9187b48230b0b0f2c96d33ed8a823..33979883d61e0808f7a1f88a5097f9014ede53f6 100644 (file)
@@ -20,8 +20,8 @@
 import * as React from 'react';
 import BugIcon from 'sonar-ui-common/components/icons/BugIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import IssuesFilter from './IssuesFilter';
 import { Facet } from '../types';
+import IssuesFilter from './IssuesFilter';
 
 interface Props {
   className?: string;
index 7f9218e54db46e46a10e5a270e907e70ac6e5760..572bbc01a0c3b8fbe55e46e732db9813bb58fcf1 100644 (file)
@@ -20,8 +20,8 @@
 import * as React from 'react';
 import VulnerabilityIcon from 'sonar-ui-common/components/icons/VulnerabilityIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import IssuesFilter from './IssuesFilter';
 import { Facet } from '../types';
+import IssuesFilter from './IssuesFilter';
 
 interface Props {
   className?: string;
index dda19769873b4e2fb75d304e62efa8ca300c1c67..01189a6998bc4e07742d1f9952e30e546a4ba859 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import Level from 'sonar-ui-common/components/ui/Level';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { Facet } from '../types';
 import Filter from './Filter';
 import FilterHeader from './FilterHeader';
-import { Facet } from '../types';
 
 export interface Props {
   className?: string;
index f1d8b7f3da006818023b13f5416758514539a791..deec7ba9d517b70e362dd33fa7d292f3076dc1e8 100644 (file)
@@ -20,8 +20,8 @@
 import * as React from 'react';
 import BugIcon from 'sonar-ui-common/components/icons/BugIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import IssuesFilter from './IssuesFilter';
 import { Facet } from '../types';
+import IssuesFilter from './IssuesFilter';
 
 interface Props {
   className?: string;
index 5db734ab487c4727a5aa4c419f910d6e070f2898..a8b29e821ac6e1bfe3aedc01258aedc435150371 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   className?: string;
index 1e7cdf74af47cf791f447f8b0874144106e15bb7..f353442ba39c1a6fbd1c67c23904698922b243cc 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Select from 'sonar-ui-common/components/controls/Select';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   isFavorite?: boolean;
index 556840154f6a2ce3334fbe3b8d91a1212165c801..a246d0160dd0a72c42b4411298c27952fd325a4e 100644 (file)
@@ -20,8 +20,8 @@
 import * as React from 'react';
 import VulnerabilityIcon from 'sonar-ui-common/components/icons/VulnerabilityIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import IssuesFilter from './IssuesFilter';
 import { Facet } from '../types';
+import IssuesFilter from './IssuesFilter';
 
 interface Props {
   className?: string;
index 19d51a68b57aab180a0e7162e1a31351bf35351a..543136e6e0fae856ac6c5d80a6a7679721edbc19 100644 (file)
  */
 import * as React from 'react';
 import SizeRating from 'sonar-ui-common/components/ui/SizeRating';
-import { getSizeRatingLabel, getSizeRatingAverageValue } from 'sonar-ui-common/helpers/ratings';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import { getSizeRatingAverageValue, getSizeRatingLabel } from 'sonar-ui-common/helpers/ratings';
+import { Facet } from '../types';
 import Filter from './Filter';
 import FilterHeader from './FilterHeader';
-import { Facet } from '../types';
 
 export interface Props {
   className?: string;
index bf3f8db2886c84c9c9ee897e35e83b4e7497d8d6..302ac5993453f32acc160dd99fd4004852025475 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { debounce, difference, size, sortBy } from 'lodash';
 import * as React from 'react';
-import { debounce, difference, sortBy, size } from 'lodash';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import { searchProjectTags } from '../../../api/components';
+import { Facet } from '../types';
 import Filter from './Filter';
 import FilterHeader from './FilterHeader';
 import SearchableFilterFooter from './SearchableFilterFooter';
 import SearchableFilterOption from './SearchableFilterOption';
-import { searchProjectTags } from '../../../api/components';
-import { Facet } from '../types';
 
 interface Props {
   facet?: Facet;
index 33c8a9801c5733bdd8413ed62fb6049ed2c6a7f5..919cd4b7cabfac6952e10046bbdf1a7c92957a92 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import CoverageFilter from '../CoverageFilter';
 
 it('renders', () => {
index 1e9afcace84da5139189692b02f72f4b0ba79a1f..3746bb76ec98ed95d7167a8cdb9770dabf01d969 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import DuplicationsFilter from '../DuplicationsFilter';
 
 it('renders', () => {
index 9fa96f2f9d87da475e47ee01b2de9e42ec159043..126a2f491ab5fbbc52b2dec2b9e694954f80e481 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Filter from '../Filter';
 
 it('renders', () => {
index ff70fb31a0c999261b9fe401f4d6ef5e9f519435..eb1c7feee0c2a7b88e008e87f9bbbd5c40bf8b3b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import FilterHeader from '../FilterHeader';
 
 it('renders', () => {
index b47a92ec9b2c68c79eea8d2c50a56a6919d007b8..0ff65bf438346a9601abfa16a7eec3ebf32de443 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import IssuesFilter from '../IssuesFilter';
 
 it('renders', () => {
index ab640e65286229990e6574be03b7a4e7ab4ff4c2..cf2c5f542f98360fa6600892e8449c54be6dd355 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import LanguagesFilter from '../LanguagesFilter';
 
 const languages = {
index a11fd728368a6d30301b1d52e7983f99e04a7fab..8c3181c4d18b8429a6dd2a11e65832a538496900 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import MaintainabilityFilter from '../MaintainabilityFilter';
 
 it('renders', () => {
index 3d450dd432896524478d883401c092af146e02f2..e5daa43a91e097e1f0fea90caa01085629582af4 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import NewCoverageFilter from '../NewCoverageFilter';
 
 it('renders', () => {
index ea9c723c13a74926da7050b4eda44bca08cec7d2..aade29fc7d5ee6dec6fb10efc082f312f5face70 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import NewDuplicationsFilter from '../NewDuplicationsFilter';
 
 it('renders', () => {
index e84404bc0255a8798fd624b7fe88eec533c42d7e..021ad851357c67bfe888bb3c0ea71814078f52ad 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import NewLinesFilter from '../NewLinesFilter';
 
 it('renders', () => {
index 86724075175c134406d9364b3b94f4d4edd346cd..5e303296cfb6ef62e5b7e4d864abc76f70bf167a 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import NewMaintainabilityFilter from '../NewMaintainabilityFilter';
 
 it('renders', () => {
index c84af529c78764b7595ae7b7547f4cbd3e2d3031..fb9a193986d265fe75c017e31cb885f442f9f282 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import NewReliabilityFilter from '../NewReliabilityFilter';
 
 it('renders', () => {
index 1d54974509cd1dd5b438007cfb88b5c811aa8f0d..97147038663f43bffc2ff32fa5f14bab79edcb3d 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import NewSecurityFilter from '../NewSecurityFilter';
 
 it('renders', () => {
index 49eb71d6cf586999bd2b7d57bc867cf296b54170..142179aad28d11e80c0426a565441e4541df99e1 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import QualityGateFilter, { Props } from '../QualityGateFilter';
 
 it('renders', () => {
index b246fbeaf8771f3cbc6087fab07fc8fe2d50d343..6554df2e737c6175c4a0e68356d9d889da11b492 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ReliabilityFilter from '../ReliabilityFilter';
 
 it('renders', () => {
index fa86a0389b790680cda8f130ffdaf1abb07c6129..daec54ed2bc1415c419f1269071431ec58628627 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SearchFilterContainer from '../SearchFilterContainer';
 
 it('searches', () => {
index 814ee919cf6e754b70c7c51da913253873eefb1b..2d61af757f103cb8b5357a1bb82cf060059955cc 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SearchableFilterFooter from '../SearchableFilterFooter';
 
 const options = [
index f5f5dcd58d5fc45fc8413a9635c2d4dde26b2cca..97d520c89e8cdcfdade73d988b0c0e696059cb43 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SearchableFilterOption from '../SearchableFilterOption';
 
 it('renders', () => {
index 0c84d82cb175484e719ef6a48d93da19a03381a2..30191268728b8a1feb229cae1cb49989202c1e44 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SecurityFilter from '../SecurityFilter';
 
 it('renders', () => {
index 39cbef02d72b479037b57535ab012d314d06d19e..7a53940b0da9dfd2fa4833ee4aee480629296404 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SizeFilter from '../SizeFilter';
 
 it('renders', () => {
index b5ae600972aad6c6e8c16812630e89bff935e6db..4a78df8519352b9cbe2de93fc0438881024ff694 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import TagsFilter from '../TagsFilter';
 
 const tags = ['lang', 'sonar', 'csharp', 'dotnet', 'it', 'net'];
index e382730ea5381827fafd05453eaa4de4b2b4b7dc..cc5baf7f4feea58f339b091f1bda590359b083fb 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { RouterState, RedirectFunction } from 'react-router';
+import { RedirectFunction, RouterState } from 'react-router';
+import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
 import { save } from 'sonar-ui-common/helpers/storage';
 import { isDefined } from 'sonar-ui-common/helpers/types';
-import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
 import DefaultPageSelectorContainer from './components/DefaultPageSelectorContainer';
 import FavoriteProjectsContainer from './components/FavoriteProjectsContainer';
-import { PROJECTS_DEFAULT_FILTER, PROJECTS_ALL } from './utils';
+import { PROJECTS_ALL, PROJECTS_DEFAULT_FILTER } from './utils';
 
 const routes = [
   { indexRoute: { component: DefaultPageSelectorContainer } },
index 110e0436d3fe701e8077eb0aba479a770fe56a25..846fa23aceb5df8f6e421840d3e89ea249f06579 100644 (file)
 import { uniq } from 'lodash';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { RequestData } from 'sonar-ui-common/helpers/request';
-import { Query, convertToFilter } from './query';
-import { getOrganizations } from '../../api/organizations';
-import { searchProjects, Facet } from '../../api/components';
+import { Facet, searchProjects } from '../../api/components';
 import { getMeasuresForProjects } from '../../api/measures';
-import { isDiffMetric, getPeriodValue } from '../../helpers/measures';
+import { getOrganizations } from '../../api/organizations';
+import { getPeriodValue, isDiffMetric } from '../../helpers/measures';
+import { convertToFilter, Query } from './query';
 
 interface SortingOption {
   class?: string;
index f91dd5f67f7b77d1c0d1fbdda1771a28657143ab..489bc092879e16376f0aa7e24e9e5231ccc982d4 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import SimpleBubbleChart from './SimpleBubbleChart';
 import { Project } from '../types';
+import SimpleBubbleChart from './SimpleBubbleChart';
 
 interface Props {
   displayOrganizations: boolean;
index f0972d82fe461b405f4183486cfcb05c0f41f03e..36aaf80d980efee7169aefd15c0d62e5120b25f9 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import SimpleBubbleChart from './SimpleBubbleChart';
 import { Project } from '../types';
+import SimpleBubbleChart from './SimpleBubbleChart';
 
 interface Props {
   displayOrganizations: boolean;
index 7bd976e036525ba646e60401e89c9f5415cdeead..b5763d15a8084a3b702d10bbb763ae55cec1d863 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import SimpleBubbleChart from './SimpleBubbleChart';
 import { Project } from '../types';
+import SimpleBubbleChart from './SimpleBubbleChart';
 
 interface Props {
   displayOrganizations: boolean;
index 9b42b27b98c8c3b4e6fc91378d89fdadb8207322..47e37dc54c8953616649d21ea2064e24933af93a 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import SimpleBubbleChart from './SimpleBubbleChart';
 import { Project } from '../types';
+import SimpleBubbleChart from './SimpleBubbleChart';
 
 interface Props {
   displayOrganizations: boolean;
index 57583a7ffd21d2ee38209131e7be096bbd2a425b..5f4069936d3eb654a542893e6798de06c8a3d6fc 100644 (file)
  */
 import * as React from 'react';
 import BubbleChart from 'sonar-ui-common/components/charts/BubbleChart';
+import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
-import { Project } from '../types';
 import ColorRatingsLegend from '../../../components/charts/ColorRatingsLegend';
 import { RATING_COLORS } from '../../../helpers/constants';
 import { getProjectUrl } from '../../../helpers/urls';
+import { Project } from '../types';
 
 const X_METRIC = 'sqale_index';
 const X_METRIC_TYPE = 'SHORT_WORK_DUR';
index 4e5bd53a8d2111cf016a6951a89b22515ca3d64f..135817217279beb5877330cc2b1f27aeeab97b9f 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import SimpleBubbleChart from './SimpleBubbleChart';
 import { Project } from '../types';
+import SimpleBubbleChart from './SimpleBubbleChart';
 
 interface Props {
   displayOrganizations: boolean;
index e6d20dca4f630dc79dd6a64b541db08a053857db..79febca2d356c5628192cf23c35d56cf68f94331 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import BubbleChart from 'sonar-ui-common/components/charts/BubbleChart';
+import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import ColorRatingsLegend from '../../../components/charts/ColorRatingsLegend';
 import { RATING_COLORS } from '../../../helpers/constants';
 import { getProjectUrl } from '../../../helpers/urls';
index d1d72100f15b07e077be0292930ec2e2fbaab178..c3de794561fd11c7a69630bad2c32806ec83c66e 100644 (file)
  */
 import * as React from 'react';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import Risk from './Risk';
-import Reliability from './Reliability';
-import Security from './Security';
-import Maintainability from './Maintainability';
+import { Project } from '../types';
+import { localizeSorting } from '../utils';
 import Coverage from './Coverage';
 import Duplications from './Duplications';
-import { localizeSorting } from '../utils';
-import { Project } from '../types';
+import Maintainability from './Maintainability';
+import Reliability from './Reliability';
+import Risk from './Risk';
+import Security from './Security';
 
 interface Props {
   displayOrganizations?: boolean;
index c0a8973b8d5654a0ee9078cee86b8f01f7f9ad62..af63f0c4311ebef60a00020ae46c66aeb316b962 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Coverage from '../Coverage';
 
 it('renders', () => {
index 1dbe63f8b218fe3605e7e2677759650774673dc5..a8a28d0384f062aa67ec6145aaac3d30ef746b9f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Duplications from '../Duplications';
 
 it('renders', () => {
index a2f3ba9c07b8c01e80b3275923ad1bf0e3cb8051..5fa717a0dc7c0d97d0b5e8d0920175b4faa91dd7 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Maintainability from '../Maintainability';
 
 it('renders', () => {
index c12ffab69351e292950072b64b88254dcd365f88..2c9576d85e7a1fa7218d2e22fc284a9bfeabe4ec 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Reliability from '../Reliability';
 
 it('renders', () => {
index 5f6967e3cca4f9a5c353de6edfc35f52d7c88a8d..0be86dfbb7bcbb8ffeed868cad1765f68e2ab27e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import Risk from '../Risk';
+import * as React from 'react';
 import { Project } from '../../types';
+import Risk from '../Risk';
 
 it('renders', () => {
   const project1: Project = {
index e5ad79c9b6a5efc55f7555ea7b6d65617057c5b4..dbff212214add5333bff1c161e0f588989421be6 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Security from '../Security';
 
 it('renders', () => {
index f8650b120ad3cac0954c77f82324dd95172c4c03..7529d1d0e0825623784cbabf1cbfadb8a09df12c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import SimpleBubbleChart from '../SimpleBubbleChart';
+import * as React from 'react';
 import { Project } from '../../types';
+import SimpleBubbleChart from '../SimpleBubbleChart';
 
 it('renders', () => {
   const project1: Project = {
index f36228125a12d31fb711a40db4b7920a5c828e75..cc12887122695d7f4b12ea62d8370d3478d34798 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Visualizations from '../Visualizations';
 
 it('renders', () => {
index 7de9677ea73cd72385338dc282b79e202035e561..f8c9611676244ee2e34afab789dcdb77806db22a 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { debounce, uniq, without } from 'lodash';
 import * as React from 'react';
 import Helmet from 'react-helmet';
-import { debounce, uniq, without } from 'lodash';
+import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
 import { toNotSoISOString } from 'sonar-ui-common/helpers/dates';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
+import { getComponents, Project } from '../../api/components';
+import Suggestions from '../../app/components/embed-docs-modal/Suggestions';
+import CreateProjectForm from './CreateProjectForm';
 import Header from './Header';
-import Search from './Search';
 import Projects from './Projects';
-import CreateProjectForm from './CreateProjectForm';
-import Suggestions from '../../app/components/embed-docs-modal/Suggestions';
-import { getComponents, Project } from '../../api/components';
+import Search from './Search';
 
 export interface Props {
   currentUser: Pick<T.LoggedInUser, 'login'>;
index 34bf91b190b7f6122faf62257aa70656c5f673fa..059abe09b68bb014b66ba95061c96a8b52353f9d 100644 (file)
  */
 import * as React from 'react';
 import { connect } from 'react-redux';
-import App from './App';
 import { changeProjectDefaultVisibility } from '../../api/permissions';
-import { getAppState, getOrganizationByKey, getCurrentUser, Store } from '../../store/rootReducer';
-import { fetchOrganization } from '../../store/rootActions';
 import { receiveOrganizations } from '../../store/organizations';
+import { fetchOrganization } from '../../store/rootActions';
+import { getAppState, getCurrentUser, getOrganizationByKey, Store } from '../../store/rootReducer';
+import App from './App';
 
 interface StateProps {
   appState: { defaultOrganization: string; qualifiers: string[] };
index 2c10f12852a565315b3ab25cebc907320648977a..5c73ebbbd51a41a2bc894b604b425833a4b36119 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { toNotSoISOString } from 'sonar-ui-common/helpers/dates';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import Select from 'sonar-ui-common/components/controls/Select';
-import { getPermissionTemplates, bulkApplyTemplate } from '../../api/permissions';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { toNotSoISOString } from 'sonar-ui-common/helpers/dates';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { bulkApplyTemplate, getPermissionTemplates } from '../../api/permissions';
 
 export interface Props {
   analyzedBefore: Date | undefined;
index be3465b3518acbada0fb36a841f4e81654a02c26..b5ca045a803e30cb5223334de987befc7a5b1283 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import { Button, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 export interface Props {
   onClose: () => void;
index a1ae7dd12be696c3cc3004d40479b86fa89106eb..1794c814505f9adc627246b81bbac407058aa65f 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { Link } from 'react-router';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { Link } from 'react-router';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { createProject } from '../../api/components';
-import UpgradeOrganizationBox from '../create/components/UpgradeOrganizationBox';
 import VisibilitySelector from '../../components/common/VisibilitySelector';
 import { getProjectUrl } from '../../helpers/urls';
+import UpgradeOrganizationBox from '../create/components/UpgradeOrganizationBox';
 
 interface Props {
   onClose: () => void;
index c4ebb6bbd48fd7bef297d0ae2a1ea883773436ce..b4d8269981e745b0975f5e3b48b3e0bddc26a466 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { toNotSoISOString } from 'sonar-ui-common/helpers/dates';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { toNotSoISOString } from 'sonar-ui-common/helpers/dates';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { bulkDeleteProjects } from '../../api/components';
 
 export interface Props {
index b3c87ccfc74f8abafefe425fcd032751e0279129..701b28da1587f9b78111768d6924de009d27e2b0 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { Button, EditButton } from 'sonar-ui-common/components/controls/buttons';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { EditButton, Button } from 'sonar-ui-common/components/controls/buttons';
-import ChangeDefaultVisibilityForm from './ChangeDefaultVisibilityForm';
 import { isSonarCloud } from '../../helpers/system';
+import ChangeDefaultVisibilityForm from './ChangeDefaultVisibilityForm';
 
 export interface Props {
   hasProvisionPermission?: boolean;
index b76fe3fa4ab20cc4e379523c9aeff1630ed116e3..21b4fa11589bcec2d703508005ba6b99f92d17aa 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
 import { Link } from 'react-router';
 import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
-import ProjectRowActions from './ProjectRowActions';
+import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
+import { Project } from '../../api/components';
 import PrivacyBadgeContainer from '../../components/common/PrivacyBadgeContainer';
 import DateTooltipFormatter from '../../components/intl/DateTooltipFormatter';
-import { Project } from '../../api/components';
+import ProjectRowActions from './ProjectRowActions';
 
 interface Props {
   currentUser: Pick<T.LoggedInUser, 'login'>;
index 54727d18669c99c22b072efb8996eead3e1ae8fa..ac49f162fe7b382251dbf4975a06edbe0307c28b 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ActionsDropdown, {
   ActionsDropdownItem
 } from 'sonar-ui-common/components/controls/ActionsDropdown';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import RestoreAccessModal from './RestoreAccessModal';
-import ApplyTemplate from '../permissions/project/components/ApplyTemplate';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Project } from '../../api/components';
 import { getComponentNavigation } from '../../api/nav';
 import { getComponentPermissionsUrl } from '../../helpers/urls';
+import ApplyTemplate from '../permissions/project/components/ApplyTemplate';
+import RestoreAccessModal from './RestoreAccessModal';
 
 export interface Props {
   currentUser: Pick<T.LoggedInUser, 'login'>;
index 5c89aaac9b1fd06d77861fd510c6db9f4a37c1e2..642ceb0882f8efd90af86ca9418723ad1c23ceb8 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import ProjectRow from './ProjectRow';
 import { Project } from '../../api/components';
+import ProjectRow from './ProjectRow';
 
 interface Props {
   currentUser: Pick<T.LoggedInUser, 'login'>;
index ad11a0f3ded0c3e8e519e44c8adae1c34f856636..3327034d4f7becc644e57fa596aaa92c8102c855 100644 (file)
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
-import { grantPermissionToUser } from '../../api/permissions';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Project } from '../../api/components';
+import { grantPermissionToUser } from '../../api/permissions';
 
 interface Props {
   currentUser: Pick<T.LoggedInUser, 'login'>;
index 81835b45b74a2439b3de54bfe2eabcf31b3302ce..4f80bfc7b98edfc47771bba393ea3ed073c4220e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
-import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
 import { sortBy } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
 import Select from 'sonar-ui-common/components/controls/Select';
+import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { Project } from '../../api/components';
+import DateInput from '../../components/controls/DateInput';
 import BulkApplyTemplateModal from './BulkApplyTemplateModal';
 import DeleteModal from './DeleteModal';
-import DateInput from '../../components/controls/DateInput';
-import { Project } from '../../api/components';
 
 export interface Props {
   analyzedBefore: Date | undefined;
index eaa33f8dec5ffb7686cca51eb8c64135ef8a66c5..758f41ebdbfce86ad1e92c1106f0fb1c9de2a72b 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable import/order */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import App, { Props } from '../App';
 
 jest.mock('lodash', () => {
index 8bec56364c41cd965a54a9a77b561bad695c6a3a..815b871e52db2c4f5549c560acaf232720c5756c 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable import/order */
-import * as React from 'react';
 import { mount, shallow } from 'enzyme';
-import BulkApplyTemplateModal, { Props } from '../BulkApplyTemplateModal';
-import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
+import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
+import BulkApplyTemplateModal, { Props } from '../BulkApplyTemplateModal';
 
 jest.mock('../../../api/permissions', () => ({
   bulkApplyTemplate: jest.fn(() => Promise.resolve()),
index 2c5045b55c05b3dee0bcaa9326618da5de421101..af37537a1cd7d187b1dc3675c2635748e5e8ba80 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import ChangeDefaultVisibilityForm from '../ChangeDefaultVisibilityForm';
 
index 111d396074fd300d15f9803557dee3d1e6c0294b..7514e9aeccee7c83e001265827320d8fe35349a7 100644 (file)
@@ -24,10 +24,10 @@ jest.mock('../../../api/components', () => ({
   )
 }));
 
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import CreateProjectForm from '../CreateProjectForm';
+import * as React from 'react';
 import { change, submit, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
+import CreateProjectForm from '../CreateProjectForm';
 
 const createProject = require('../../../api/components').createProject as jest.Mock<any>;
 
index 7683448ed027fe0bf6515f114fdc2903ba98b023..ca559355e3f7183e1132a550813e142d80936ae5 100644 (file)
@@ -22,11 +22,11 @@ jest.mock('../../../api/components', () => ({
   bulkDeleteProjects: jest.fn(() => Promise.resolve())
 }));
 
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import DeleteModal, { Props } from '../DeleteModal';
-import { click } from 'sonar-ui-common/helpers/testUtils';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
+import { click } from 'sonar-ui-common/helpers/testUtils';
+import DeleteModal, { Props } from '../DeleteModal';
 
 const bulkDeleteProjects = require('../../../api/components').bulkDeleteProjects as jest.Mock<any>;
 
index 28c593e890c026c30b5d81f39e5e4563b09903bf..79904f46c9530f4666be2401dd32282e4782ceb7 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import Header, { Props } from '../Header';
 
index 8500001a6a3393a9d27a48e23fd151357bcc7513..b13eaaf8389d40a0f6e13a81ce6258d9066dcfc0 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ProjectRow from '../ProjectRow';
 
 const project = {
index 9ef48c4026f4dea6c59b2f59d898f72b7f6625ca..3f40b0ee688c4a34021c45e872c68f3774fd539f 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import ProjectRowActions, { Props } from '../ProjectRowActions';
-import { mockLoggedInUser } from '../../../helpers/testMocks';
 import { getComponentNavigation } from '../../../api/nav';
+import { mockLoggedInUser } from '../../../helpers/testMocks';
+import ProjectRowActions, { Props } from '../ProjectRowActions';
 
 jest.mock('../../../api/nav', () => ({
   getComponentNavigation: jest.fn().mockResolvedValue({})
index 448f36625c88689aaed1723e011d9f74e66a10b1..29e6de96e8e05da2e825636d60ea703d57da211d 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Projects from '../Projects';
 
 const organization = { key: 'org', name: 'org', projectVisibility: 'public' };
index b78e61297db9ba0259aed9c29992613c61ab6867..0b2aea4b0ddae85979d61723981e73efd1cd6792 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import Search, { Props } from '../Search';
 
index eaff48336244a0df8dbbe5bea6b0962d0712b7fa..7dd90d2c88dab598633ee7a88bfc217fe03f2965 100644 (file)
 import * as React from 'react';
 import Helmet from 'react-helmet';
 import { WithRouterProps } from 'react-router';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import {
   addSideBarClass,
   addWhitePageClass,
   removeSideBarClass,
   removeWhitePageClass
 } from 'sonar-ui-common/helpers/pages';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import Details from './Details';
-import List from './List';
-import ListHeader from './ListHeader';
-import ScreenPositionHelper from '../../../components/common/ScreenPositionHelper';
-import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
 import { fetchQualityGates } from '../../../api/quality-gates';
-import { getQualityGateUrl } from '../../../helpers/urls';
+import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
+import ScreenPositionHelper from '../../../components/common/ScreenPositionHelper';
 import '../../../components/search-navigator.css';
+import { getQualityGateUrl } from '../../../helpers/urls';
 import '../styles.css';
+import Details from './Details';
+import List from './List';
+import ListHeader from './ListHeader';
 
 interface Props extends WithRouterProps {
   organization?: Pick<T.Organization, 'key'>;
index fd51afca73b2a8aae171d4bf5fa7cae4efc48c0a..cca68961575467ff144c8405c7e29a0b9eed647e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import DocTooltip from '../../../components/docs/DocTooltip';
 
index 79a98095530ffe7766a12821b6782a739b45b6af..84a6e8b4e94356e9e8b9f4fef4ca627f5450d58c 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import ActionsDropdown, {
+  ActionsDropdownItem
+} from 'sonar-ui-common/components/controls/ActionsDropdown';
+import ConfirmModal from 'sonar-ui-common/components/controls/ConfirmModal';
 import {
-  translate,
   getLocalizedMetricName,
+  translate,
   translateWithParameters
 } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import ConfirmModal from 'sonar-ui-common/components/controls/ConfirmModal';
-import ActionsDropdown, {
-  ActionsDropdownItem
-} from 'sonar-ui-common/components/controls/ActionsDropdown';
-import ConditionModal from './ConditionModal';
 import { deleteCondition } from '../../../api/quality-gates';
+import ConditionModal from './ConditionModal';
 
 interface Props {
   condition: T.Condition;
index 7ddad4e8b7ec3382e3771a483cf3888b7b972079..ba87f3434a8d118011ca47bf894f12c7963b2767 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, getLocalizedMetricName } from 'sonar-ui-common/helpers/l10n';
 import ConfirmModal from 'sonar-ui-common/components/controls/ConfirmModal';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import MetricSelect from './MetricSelect';
-import ConditionOperator from './ConditionOperator';
-import ThresholdInput from './ThresholdInput';
+import { getLocalizedMetricName, translate } from 'sonar-ui-common/helpers/l10n';
 import { createCondition, updateCondition } from '../../../api/quality-gates';
 import { getPossibleOperators } from '../utils';
+import ConditionOperator from './ConditionOperator';
+import MetricSelect from './MetricSelect';
+import ThresholdInput from './ThresholdInput';
 
 interface Props {
   condition?: T.Condition;
index 5be41be1de792d1e0434211601d57c4cf3ec112e..a6d44dc14462c4a52c87bd2329c69d83df464787 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Select from 'sonar-ui-common/components/controls/Select';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getPossibleOperators } from '../utils';
 
 interface Props {
index c3e3804f7fc08fb67c4051842ee9d692809ab6ae..5c04b8148a6c6d4ee64e4830aeebd870b5b3c911 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { differenceWith, map, sortBy, uniqBy } from 'lodash';
-import { translate, getLocalizedMetricName } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import ModalButton from 'sonar-ui-common/components/controls/ModalButton';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { getLocalizedMetricName, translate } from 'sonar-ui-common/helpers/l10n';
+import DocTooltip from '../../../components/docs/DocTooltip';
 import Condition from './Condition';
 import ConditionModal from './ConditionModal';
-import DocTooltip from '../../../components/docs/DocTooltip';
 
 interface Props {
   canEdit: boolean;
index fa2c8bdf7410e6e5de8dad81e4efd661f1e2065a..1670886c74c18c3392547f0b07a64ed061417170 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ConfirmModal from 'sonar-ui-common/components/controls/ConfirmModal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { copyQualityGate } from '../../../api/quality-gates';
+import { Router, withRouter } from '../../../components/hoc/withRouter';
 import { getQualityGateUrl } from '../../../helpers/urls';
-import { withRouter, Router } from '../../../components/hoc/withRouter';
 
 interface Props {
   onClose: () => void;
index 90acce88d7d6908dc206a2f62b1b965603fddd04..e3936f140e38049d331b39bc71e2f3e4c2d254e4 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ConfirmModal from 'sonar-ui-common/components/controls/ConfirmModal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { createQualityGate } from '../../../api/quality-gates';
+import { Router, withRouter } from '../../../components/hoc/withRouter';
 import { getQualityGateUrl } from '../../../helpers/urls';
-import { withRouter, Router } from '../../../components/hoc/withRouter';
 
 interface Props {
   onClose: () => void;
index 8e6bbe9b8633b1dda20218cf7bd2282b4dba4fef..3c822e3e0ffa6a095201b84fef7619a04a651ba9 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { deleteQualityGate } from '../../../api/quality-gates';
+import { Router, withRouter } from '../../../components/hoc/withRouter';
 import { getQualityGatesUrl } from '../../../helpers/urls';
-import { withRouter, Router } from '../../../components/hoc/withRouter';
 
 interface Props {
   onDelete: () => Promise<void>;
index 386fadf2e8502bcde0281004b0e4c990f971ebb9..e2f2dff4fa9d7774dbae5962199819cd8a8cc7af 100644 (file)
@@ -21,12 +21,12 @@ import * as React from 'react';
 import Helmet from 'react-helmet';
 import { connect } from 'react-redux';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import DetailsHeader from './DetailsHeader';
-import DetailsContent from './DetailsContent';
-import { getMetrics, Store } from '../../../store/rootReducer';
-import { fetchMetrics } from '../../../store/rootActions';
 import { fetchQualityGate } from '../../../api/quality-gates';
-import { checkIfDefault, addCondition, replaceCondition, deleteCondition } from '../utils';
+import { fetchMetrics } from '../../../store/rootActions';
+import { getMetrics, Store } from '../../../store/rootReducer';
+import { addCondition, checkIfDefault, deleteCondition, replaceCondition } from '../utils';
+import DetailsContent from './DetailsContent';
+import DetailsHeader from './DetailsHeader';
 
 interface OwnProps {
   id: string;
index 38ea2e8c0b64d97d886334b44545f25b6623d1dc..bf13d082f9231fd256c470931b7ad8b718f33a3a 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import DocTooltip from '../../../components/docs/DocTooltip';
 import Conditions from './Conditions';
 import Projects from './Projects';
-import DocTooltip from '../../../components/docs/DocTooltip';
 
 interface Props {
   isDefault?: boolean;
index b175b15bc5bfb22e57823b1c37cce751caba5854..4d61edff81befab73d616b72a9073b07ef134012 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import ModalButton from 'sonar-ui-common/components/controls/ModalButton';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { setQualityGateAsDefault } from '../../../api/quality-gates';
 import BuiltInQualityGateBadge from './BuiltInQualityGateBadge';
-import RenameQualityGateForm from './RenameQualityGateForm';
 import CopyQualityGateForm from './CopyQualityGateForm';
 import DeleteQualityGateForm from './DeleteQualityGateForm';
-import { setQualityGateAsDefault } from '../../../api/quality-gates';
+import RenameQualityGateForm from './RenameQualityGateForm';
 
 interface Props {
   onSetDefault: () => void;
index 3d66dd9b26df4a72f5c1c82a6ffa98d357149e71..7ada92f5d67bc0af6110bc10bf914e1d13d9b798 100644 (file)
@@ -20,8 +20,8 @@
 import * as React from 'react';
 import { Link } from 'react-router';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import BuiltInQualityGateBadge from './BuiltInQualityGateBadge';
 import { getQualityGateUrl } from '../../../helpers/urls';
+import BuiltInQualityGateBadge from './BuiltInQualityGateBadge';
 
 interface Props {
   organization?: string;
index f13b6507bc82dae448246bd7363b54e945752dd1..032692b0b2f8cbd3fb00aa36cccd29a192599f66 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import ModalButton from 'sonar-ui-common/components/controls/ModalButton';
-import CreateQualityGateForm from './CreateQualityGateForm';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import DocTooltip from '../../../components/docs/DocTooltip';
+import CreateQualityGateForm from './CreateQualityGateForm';
 
 interface Props {
   canCreate: boolean;
index e1069d8c516483325ef0b8f6e60e154e6a59f67c..2a6f9ad4a0086f54b004f82b16c06d1debb5d67d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
+import * as React from 'react';
+import Select from 'sonar-ui-common/components/controls/Select';
 import {
-  translate,
+  getLocalizedMetricDomain,
   getLocalizedMetricName,
-  getLocalizedMetricDomain
+  translate
 } from 'sonar-ui-common/helpers/l10n';
-import Select from 'sonar-ui-common/components/controls/Select';
 
 interface Props {
   metrics: T.Metric[];
index 05bb7d8e7d78de54b0f8413978b67f3f38e5d235..0b89853b691b3464aed334c58c97153d2742a234 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { find, without } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import SelectList, {
   SelectListFilter,
   SelectListSearchParams
 } from 'sonar-ui-common/components/controls/SelectList';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import {
   associateGateWithProject,
   dissociateGateWithProject,
index b6e438e73cb05dc40327727f73756bf2122b5eb8..89edd5b6b1809677068699a9e4d0535fb710a6e1 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ConfirmModal from 'sonar-ui-common/components/controls/ConfirmModal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { renameQualityGate } from '../../../api/quality-gates';
 
 interface Props {
index b1769f7a610ef3a6e93251561d3345c871a91400..7b243bf4b428c9a4d6063a203242a79df1f55725 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ConditionModal from '../ConditionModal';
+import * as React from 'react';
 import { mockQualityGate } from '../../../../helpers/testMocks';
+import ConditionModal from '../ConditionModal';
 
 it('should render correctly', () => {
   const wrapper = shallowRender();
index ef6c9fd27760c36fcc15800f37ae429a8beb698e..6b4228d3324e7afe72c475449026c6244a6550f0 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ConditionOperator from '../ConditionOperator';
 
 it('should render correctly', () => {
index 85310abd4437ac05c7aa94631332c887084618e7..3f8423842ec389a0d89a3254e038344b7056fa00 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import CopyQualityGateForm from '../CopyQualityGateForm';
+import * as React from 'react';
 import { mockQualityGate } from '../../../../helpers/testMocks';
+import CopyQualityGateForm from '../CopyQualityGateForm';
 
 it('should render correctly', () => {
   expect(
index dde2fafa95559a19c989d56eacc47baae456d5b1..474eb5c3aa73dab05188e4af409bdf1297fa697e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import CreateQualityGateForm from '../CreateQualityGateForm';
 
 it('should render correctly', () => {
index ad2d9fea3f3f715883fd1b8c69a920898139e097..6210a5adc43ec7ced713e115449f2d53f92e5bcf 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import MetricSelect from '../MetricSelect';
 
 it('should render correctly', () => {
index fa12351ea98181ad038f74b54a7b741059c834fc..ec5d27898dcdd6ca656646918159163a8e1f2e16 100644 (file)
  */
 import { shallow } from 'enzyme';
 import * as React from 'react';
-import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import SelectList, { SelectListFilter } from 'sonar-ui-common/components/controls/SelectList';
-import Projects from '../Projects';
-import { mockQualityGate } from '../../../../helpers/testMocks';
+import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import {
-  searchProjects,
   associateGateWithProject,
-  dissociateGateWithProject
+  dissociateGateWithProject,
+  searchProjects
 } from '../../../../api/quality-gates';
+import { mockQualityGate } from '../../../../helpers/testMocks';
+import Projects from '../Projects';
 
 const qualityGate = mockQualityGate();
 const organization = 'TEST';
index 1ed1d7d18ebe74b9eeebc9adbb7e1275ac1a0419..bdd1ce4841c26835dfcabea2395bbc178d31148c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import RenameQualityGateForm from '../RenameQualityGateForm';
+import * as React from 'react';
 import { mockQualityGate } from '../../../../helpers/testMocks';
+import RenameQualityGateForm from '../RenameQualityGateForm';
 
 it('should render correctly', () => {
   expect(
index edc3654e2a00ab63b8b665b68c73e3f35429bfbd..598068115e8ba6261ee9af110e27f54c157390eb 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { change } from 'sonar-ui-common/helpers/testUtils';
 import ThresholdInput from '../ThresholdInput';
 
index cf3826f12d4f5aa9ea2e94c6f58d5b6a8dfbb8a2..4f13b95c19ddee286ee173f2657a4d1cbc15a17b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { sortProfiles } from '../utils';
 import { Profile } from '../types';
+import { sortProfiles } from '../utils';
 
 function createProfile(key: string, parentKey?: string) {
   return { name: key, key, parentKey } as Profile;
index 38515f1a09dfd70f40776a251c9c29572cc12b55..798169075ba69d3d85a8a9c788ea367004f354ed 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as isSameMinute from 'date-fns/is_same_minute';
+import { sortBy } from 'lodash';
 import * as React from 'react';
 import { Link } from 'react-router';
-import { sortBy } from 'lodash';
-import * as isSameMinute from 'date-fns/is_same_minute';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import ChangesList from './ChangesList';
 import DateTimeFormatter from '../../../components/intl/DateTimeFormatter';
 import { getRulesUrl } from '../../../helpers/urls';
 import { ProfileChangelogEvent } from '../types';
+import ChangesList from './ChangesList';
 
 interface Props {
   events: ProfileChangelogEvent[];
index d0211605f04d3b5a0950004af13f84aca51bf368..aa92d3750f9b5962b9f582bb522da352d636f5ae 100644 (file)
@@ -21,12 +21,12 @@ import * as React from 'react';
 import { withRouter, WithRouterProps } from 'react-router';
 import { parseDate, toShortNotSoISOString } from 'sonar-ui-common/helpers/dates';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Changelog from './Changelog';
-import ChangelogSearch from './ChangelogSearch';
-import ChangelogEmpty from './ChangelogEmpty';
 import { getProfileChangelog } from '../../../api/quality-profiles';
-import { getProfileChangelogPath } from '../utils';
 import { Profile, ProfileChangelogEvent } from '../types';
+import { getProfileChangelogPath } from '../utils';
+import Changelog from './Changelog';
+import ChangelogEmpty from './ChangelogEmpty';
+import ChangelogSearch from './ChangelogSearch';
 
 interface Props extends WithRouterProps {
   organization: string | null;
index f7a9937adef5215c49872f90764611b030b8f262..d348cdf6712bbfd5917d96f41bd088fdf1a07735 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import DateRangeInput from '../../../components/controls/DateRangeInput';
 
 interface Props {
index 2f27ed4c65d1ec83412bd27312e584fe6722b7e2..62f4285966eabe9c54d160938a2bec270f8aa954 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import SeverityChange from './SeverityChange';
 import ParameterChange from './ParameterChange';
+import SeverityChange from './SeverityChange';
 
 interface Props {
   changes: T.Dict<string | null>;
index 4afbc84b7783b85367ab687e0931310924875e28..c90da95cb9708445de8475cf653daa1359f42c95 100644 (file)
@@ -19,9 +19,9 @@
  */
 import { shallow } from 'enzyme';
 import * as React from 'react';
+import { ProfileChangelogEvent } from '../../types';
 import Changelog from '../Changelog';
 import ChangesList from '../ChangesList';
-import { ProfileChangelogEvent } from '../../types';
 
 function createEvent(overrides?: Partial<ProfileChangelogEvent>): ProfileChangelogEvent {
   return {
index 6fb2f6e823d59a09bb6c475e7f856d24d6879ba3..8b905783bf79cfea50609d4f55b38767c6d62c96 100644 (file)
@@ -20,8 +20,8 @@
 import { shallow } from 'enzyme';
 import * as React from 'react';
 import ChangesList from '../ChangesList';
-import SeverityChange from '../SeverityChange';
 import ParameterChange from '../ParameterChange';
+import SeverityChange from '../SeverityChange';
 
 it('should render changes', () => {
   const changes = { severity: 'BLOCKER', foo: 'bar' };
index 660d2bfcb137ce9415458bcdbf56227673937d0b..1370cab088b2ae0a4ce35dc988c3064cedc4aff2 100644 (file)
@@ -19,8 +19,8 @@
  */
 import { shallow } from 'enzyme';
 import * as React from 'react';
-import SeverityChange from '../SeverityChange';
 import SeverityHelper from '../../../../components/shared/SeverityHelper';
+import SeverityChange from '../SeverityChange';
 
 it('should render SeverityHelper', () => {
   const output = shallow(<SeverityChange severity="BLOCKER" />).find(SeverityHelper);
index 1a201c990bd7ea1dcc002a41ca3ff1e9b6a54605..b3bfb157f0e162a8ce9aa82270aaf2cbbc95a084 100644 (file)
  */
 import * as React from 'react';
 import { withRouter, WithRouterProps } from 'react-router';
-import ComparisonForm from './ComparisonForm';
-import ComparisonResults from './ComparisonResults';
 import { compareProfiles, CompareResponse } from '../../../api/quality-profiles';
-import { getProfileComparePath } from '../utils';
 import { Profile } from '../types';
+import { getProfileComparePath } from '../utils';
+import ComparisonForm from './ComparisonForm';
+import ComparisonResults from './ComparisonResults';
 
 interface Props extends WithRouterProps {
   organization?: string;
index fde6c0583ada4ae34308b38472d676994886b6a9..280d29db06131bf88c1c14d3a11667303d854584 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Select from 'sonar-ui-common/components/controls/Select';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Profile } from '../types';
 
 interface Props {
index e58e2bf64ce520d32e5c2f98d858b78a541af672..a9c556510b3c56be9c33ce34d274c7e729d7d012 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Profile } from '../../../api/quality-profiles';
 import { getRuleDetails } from '../../../api/rules';
 
index 18ccfe9808efc733268a574044399f03df84ee19..6efe7b368f3794b8e750a8e03cc58a61e5a6f14b 100644 (file)
@@ -23,10 +23,10 @@ import ChevronLeftIcon from 'sonar-ui-common/components/icons/ChevronLeftIcon';
 import ChevronRightIcon from 'sonar-ui-common/components/icons/ChevronRightIcon';
 import SeverityIcon from 'sonar-ui-common/components/icons/SeverityIcon';
 import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { CompareResponse, Profile } from '../../../api/quality-profiles';
+import { getRulesUrl } from '../../../helpers/urls';
 import ComparisonEmpty from './ComparisonEmpty';
 import ComparisonResultActivation from './ComparisonResultActivation';
-import { getRulesUrl } from '../../../helpers/urls';
-import { CompareResponse, Profile } from '../../../api/quality-profiles';
 
 type Params = T.Dict<string>;
 
index 514a7acd2d04c18b31e422eb01ac272f3f8d325a..288ef7d986eca4877a7193704437fdfbc0a23b8f 100644 (file)
@@ -19,8 +19,8 @@
  */
 import { shallow } from 'enzyme';
 import * as React from 'react';
-import ComparisonForm from '../ComparisonForm';
 import { mockQualityProfile } from '../../../../helpers/testMocks';
+import ComparisonForm from '../ComparisonForm';
 
 it('should render Select with right options', () => {
   const profile = mockQualityProfile();
index 2c8d7450b3d3f2b26887b775ca627933c4f072a4..150777c095a5f1e2ad28661165a6ad084ac4fb05 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import ComparisonResultActivation from '../ComparisonResultActivation';
 import { Profile } from '../../../../api/quality-profiles';
+import ComparisonResultActivation from '../ComparisonResultActivation';
 
 jest.mock('../../../../api/rules', () => ({
   getRuleDetails: jest.fn().mockResolvedValue({ key: 'foo' })
index 3653943ff56bb43866acfd492ee97ac4e7f7a197..72f7b89cb83a6c0a32d5f0e7725b4b40ae4479c2 100644 (file)
@@ -20,9 +20,9 @@
 import { shallow } from 'enzyme';
 import * as React from 'react';
 import { Link } from 'react-router';
-import ComparisonResults from '../ComparisonResults';
-import ComparisonEmpty from '../ComparisonEmpty';
 import { Profile } from '../../../../api/quality-profiles';
+import ComparisonEmpty from '../ComparisonEmpty';
+import ComparisonResults from '../ComparisonResults';
 
 it('should render ComparisonEmpty', () => {
   const output = shallow(
index 8af6e8742c0c4d4b149b163adab0ebd39297a3e3..165956f67c0ffd836d451acea2414a0421443c82 100644 (file)
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { searchQualityProfiles, getExporters, Actions } from '../../../api/quality-profiles';
+import { Actions, getExporters, searchQualityProfiles } from '../../../api/quality-profiles';
 import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
-import { sortProfiles } from '../utils';
-import { Exporter, Profile } from '../types';
 import OrganizationHelmet from '../../../components/common/OrganizationHelmet';
 import '../styles.css';
+import { Exporter, Profile } from '../types';
+import { sortProfiles } from '../utils';
 
 interface Props {
   children: React.ReactElement<any>;
index 89bf7448f64e759b4a5947b1a71be41f69debb33..534a63c1ca253d1536410ed64c1f0da86c038b18 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { connect } from 'react-redux';
-import App from './App';
 import { getLanguages, getOrganizationByKey, Store } from '../../../store/rootReducer';
+import App from './App';
 
 const mapStateToProps = (state: Store, ownProps: any) => ({
   languages: getLanguages(state),
index 599cf63a29dd7b7ae1530aed5cd7649d9a9a06ce..b8dcedb1c3f0fb513c1246bca67de390cd8d6dda 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import DocTooltip from '../../../components/docs/DocTooltip';
 
index 166ad3a27eee273b06646f796f06358e53810043..7699b2e0776f9a21c4205b66af07b9aeaf857d4b 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
-import { Profile } from '../types';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { copyProfile } from '../../../api/quality-profiles';
+import { Profile } from '../types';
 
 interface Props {
   onClose: () => void;
index 8a0e151d7045c714f82174ffa6c90e556cd0fb59..2aaf88c3f8460dad0c4be7816655f460c98d3e89 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import { Profile } from '../types';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { deleteProfile } from '../../../api/quality-profiles';
+import { Profile } from '../types';
 
 interface Props {
   onClose: () => void;
index 84899c7dd86871e91f67382abd007728ab21502d..567c48f0687d0397430286241456cb2c59db493d 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { changeProfileParent, createQualityProfile } from '../../../api/quality-profiles';
 import { Profile } from '../types';
-import { createQualityProfile, changeProfileParent } from '../../../api/quality-profiles';
 
 interface Props {
   onClose: () => void;
index c3a0490d6156e1ef7f0c441172ece9bcd07d9574..c1a9b343552a51c6893db66ff7aa9a6e8af82f37 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ActionsDropdown, {
-  ActionsDropdownItem,
-  ActionsDropdownDivider
+  ActionsDropdownDivider,
+  ActionsDropdownItem
 } from 'sonar-ui-common/components/controls/ActionsDropdown';
-import RenameProfileForm from './RenameProfileForm';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { setDefaultProfile } from '../../../api/quality-profiles';
+import { Router, withRouter } from '../../../components/hoc/withRouter';
+import { getRulesUrl } from '../../../helpers/urls';
+import { Profile } from '../types';
+import { getProfileComparePath, getProfilePath, getProfilesPath } from '../utils';
 import CopyProfileForm from './CopyProfileForm';
 import DeleteProfileForm from './DeleteProfileForm';
 import ExtendProfileForm from './ExtendProfileForm';
-import { getRulesUrl } from '../../../helpers/urls';
-import { setDefaultProfile } from '../../../api/quality-profiles';
-import { getProfilePath, getProfileComparePath, getProfilesPath } from '../utils';
-import { Profile } from '../types';
-import { withRouter, Router } from '../../../components/hoc/withRouter';
+import RenameProfileForm from './RenameProfileForm';
 
 interface Props {
   className?: string;
index f56c173a70cff8c1b6f3161b582f2f949899fa78..e40a7e23eac7fab9a04bd7a29a2888f624c04e6b 100644 (file)
@@ -20,9 +20,9 @@
 import * as React from 'react';
 import Helmet from 'react-helmet';
 import { WithRouterProps } from 'react-router';
-import ProfileNotFound from './ProfileNotFound';
 import ProfileHeader from '../details/ProfileHeader';
 import { Profile } from '../types';
+import ProfileNotFound from './ProfileNotFound';
 
 interface Props {
   children: React.ReactElement<any>;
index 0009955b552d8a6745323d804c24e2dfd94db4b2..3737df4b2e2b820418f048d954238db5683691ea 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import DateFromNow from '../../../components/intl/DateFromNow';
 import DateTimeFormatter from '../../../components/intl/DateTimeFormatter';
 
index fe7daff295a7972578271cae770d8e8904f7513e..9d1fa253be4921cc4425a7fb37c76cb2513e47ba 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
-import { Profile } from '../types';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { renameProfile } from '../../../api/quality-profiles';
+import { Profile } from '../types';
 
 interface Props {
   onClose: () => void;
index ec078d262eb14d12b6542d95ec04b76d9fe0216c..27cebfc1b69cd5bb7e0fd39973bbd999225c1974 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
-import ExtendProfileForm from '../ExtendProfileForm';
-import { createQualityProfile, changeProfileParent } from '../../../../api/quality-profiles';
+import { changeProfileParent, createQualityProfile } from '../../../../api/quality-profiles';
 import { mockQualityProfile } from '../../../../helpers/testMocks';
+import ExtendProfileForm from '../ExtendProfileForm';
 
 jest.mock('../../../../api/quality-profiles', () => ({
   createQualityProfile: jest.fn().mockResolvedValue({ profile: { key: 'new-profile' } }),
index 0e25063f208f6dad6c907e8c52b7511e5d865b8c..5e037a560c52e3f0942495cd5f9f147a90bad376 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { ProfileActions } from '../ProfileActions';
 import { mockQualityProfile, mockRouter } from '../../../../helpers/testMocks';
+import { ProfileActions } from '../ProfileActions';
 
 const PROFILE = mockQualityProfile({
   activeRuleCount: 68,
index 20aae44fc0b8b631b92e28cc6ba3e89f86c39648..774f3976501c4fead154e408c9af908ca82420b3 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Helmet from 'react-helmet';
 import { WithRouterProps } from 'react-router';
+import { mockQualityProfile } from '../../../../helpers/testMocks';
+import ProfileHeader from '../../details/ProfileHeader';
 import ProfileContainer from '../ProfileContainer';
 import ProfileNotFound from '../ProfileNotFound';
-import ProfileHeader from '../../details/ProfileHeader';
-import { mockQualityProfile } from '../../../../helpers/testMocks';
 
 const routerProps = { router: {} } as WithRouterProps;
 
index d50bba64ee8ead005d2bbed2b2e9e66dcc395362..41aa3af09f87582b60e0190317d4a464579d5683 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import * as React from 'react';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
 import Select from 'sonar-ui-common/components/controls/Select';
-import { Profile } from '../types';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { changeProfileParent } from '../../../api/quality-profiles';
+import { Profile } from '../types';
 
 interface Props {
   onChange: () => void;
index d7ec79591313d49746561cafde47e527de4d2130..559a4bb9f6ca5a7543f91fe938ce8474ff61b85f 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { find, without } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import Modal from 'sonar-ui-common/components/controls/Modal';
 import SelectList, {
   SelectListFilter,
   SelectListSearchParams
 } from 'sonar-ui-common/components/controls/SelectList';
-import { Profile } from '../types';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import {
   associateProject,
   dissociateProject,
   getProfileProjects,
   ProfileProject
 } from '../../../api/quality-profiles';
+import { Profile } from '../types';
 
 interface Props {
   onClose: () => void;
index a2befeebb083c5b23933216fedbfa62e5c49d12c..ef60ace06d0013c7e2f6080f14b53a0b504fe314 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import ProfileRules from './ProfileRules';
-import ProfileProjects from './ProfileProjects';
-import ProfileInheritance from './ProfileInheritance';
+import { Exporter, Profile } from '../types';
 import ProfileExporters from './ProfileExporters';
+import ProfileInheritance from './ProfileInheritance';
 import ProfilePermissions from './ProfilePermissions';
-import { Exporter, Profile } from '../types';
+import ProfileProjects from './ProfileProjects';
+import ProfileRules from './ProfileRules';
 
 interface Props {
   exporters: Exporter[];
index 6514d16aebcc51ff3f0bef42ea84b125be479886..f0908d704afcfc81fd5ac484a156a068c0baf17d 100644 (file)
@@ -20,7 +20,7 @@
 import { stringify } from 'querystring';
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Profile, Exporter } from '../types';
+import { Exporter, Profile } from '../types';
 
 interface Props {
   exporters: Exporter[];
index 802f258909cce6022d44732800d547f9b230ac90..e359a0323626af95d82de699063c46f0504c57a7 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { Link, IndexLink } from 'react-router';
+import { IndexLink, Link } from 'react-router';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import ProfileLink from '../components/ProfileLink';
+import BuiltInQualityProfileBadge from '../components/BuiltInQualityProfileBadge';
 import ProfileActions from '../components/ProfileActions';
 import ProfileDate from '../components/ProfileDate';
-import BuiltInQualityProfileBadge from '../components/BuiltInQualityProfileBadge';
+import ProfileLink from '../components/ProfileLink';
+import { Profile } from '../types';
 import {
-  isStagnant,
-  getProfilesPath,
+  getProfileChangelogPath,
   getProfilesForLanguagePath,
-  getProfileChangelogPath
+  getProfilesPath,
+  isStagnant
 } from '../utils';
-import { Profile } from '../types';
 
 interface Props {
   profile: Profile;
index 7626a02a4892f6abdf6299cdde48f3dbe66d809e..40940d493e1cb66d6e4b047e8aee99526dd71efb 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
-import ProfileInheritanceBox from './ProfileInheritanceBox';
-import ChangeParentForm from './ChangeParentForm';
-import { Profile } from '../types';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getProfileInheritance } from '../../../api/quality-profiles';
+import { Profile } from '../types';
+import ChangeParentForm from './ChangeParentForm';
+import ProfileInheritanceBox from './ProfileInheritanceBox';
 
 interface Props {
   organization: string | null;
index 1d7077c7c01a24ef632578549c30771bcc022200..a2d5db6cff1142debfd30922c4cc1b64f4a27b2c 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
-import ProfileLink from '../components/ProfileLink';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import BuiltInQualityProfileBadge from '../components/BuiltInQualityProfileBadge';
+import ProfileLink from '../components/ProfileLink';
 
 interface Props {
   className?: string;
index dc919c071df55c13a7ac1dbadd330729cf4b761f..2c8841706ddb7bb78de4f84d967ef20b5a30c60c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy, uniqBy } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
-import ProfilePermissionsUser from './ProfilePermissionsUser';
-import ProfilePermissionsGroup from './ProfilePermissionsGroup';
-import ProfilePermissionsForm from './ProfilePermissionsForm';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import {
-  searchUsers,
   searchGroups,
+  searchUsers,
   SearchUsersGroupsParameters
 } from '../../../api/quality-profiles';
 import { Profile } from '../types';
+import ProfilePermissionsForm from './ProfilePermissionsForm';
+import ProfilePermissionsGroup from './ProfilePermissionsGroup';
+import ProfilePermissionsUser from './ProfilePermissionsUser';
 
 export interface Group {
   name: string;
index 4e93e4f12d4711ae7a62194910c29ee7415fcfaa..2043f825c8fd465a36f056ee1fc768c027cd7ddb 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
-import ProfilePermissionsFormSelect from './ProfilePermissionsFormSelect';
-import { Group } from './ProfilePermissions';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import {
-  searchUsers,
-  searchGroups,
-  addUser,
   addGroup,
+  addUser,
+  searchGroups,
+  searchUsers,
   SearchUsersGroupsParameters
 } from '../../../api/quality-profiles';
+import { Group } from './ProfilePermissions';
+import ProfilePermissionsFormSelect from './ProfilePermissionsFormSelect';
 
 interface Props {
   onClose: () => void;
index f663611028a35b9867038cfb4788af3105290b02..3f5de1e32e4fb376812c94fccba74ecb65145d3a 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { debounce, identity } from 'lodash';
 import * as React from 'react';
+import Select from 'sonar-ui-common/components/controls/Select';
 import GroupIcon from 'sonar-ui-common/components/icons/GroupIcon';
-import { debounce, identity } from 'lodash';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import Select from 'sonar-ui-common/components/controls/Select';
-import { Group } from './ProfilePermissions';
 import Avatar from '../../../components/ui/Avatar';
+import { Group } from './ProfilePermissions';
 
 type Option = T.UserSelected | Group;
 type OptionWithValue = Option & { value: string };
index ed8b58a2da70a741afca2c6d5fefd376c477f0a9..c3c92319101111b1e825bb7b8f46df95db583ac2 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import GroupIcon from 'sonar-ui-common/components/icons/GroupIcon';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { DeleteButton, Button, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { Button, DeleteButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import SimpleModal, { ChildrenProps } from 'sonar-ui-common/components/controls/SimpleModal';
-import { Group } from './ProfilePermissions';
+import GroupIcon from 'sonar-ui-common/components/icons/GroupIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { removeGroup } from '../../../api/quality-profiles';
+import { Group } from './ProfilePermissions';
 
 interface Props {
   group: Group;
index 5498efdc9b244f0d42b3b662376b827d5681e914..d39fffed6cb0305a29aa91d34fc7b9eecd72d59b 100644 (file)
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import {
   DeleteButton,
-  SubmitButton,
-  ResetButtonLink
+  ResetButtonLink,
+  SubmitButton
 } from 'sonar-ui-common/components/controls/buttons';
 import SimpleModal, { ChildrenProps } from 'sonar-ui-common/components/controls/SimpleModal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { removeUser } from '../../../api/quality-profiles';
 import Avatar from '../../../components/ui/Avatar';
 
index a3f1bdb45ee5f279f3470a919cd0b77238ead4dc..70dd2ed5cae76efe065cf4c4f5bd875d819328c1 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
 import { Link } from 'react-router';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
-import ChangeProjectsForm from './ChangeProjectsForm';
-import { Profile } from '../types';
+import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getProfileProjects } from '../../../api/quality-profiles';
+import { Profile } from '../types';
+import ChangeProjectsForm from './ChangeProjectsForm';
 
 interface Props {
   organization: string | null;
index 94112a3193ce62ef2f54f763d91895406dc0ca2b..0e6c50c1482ed70205b2ecd980b4a977fb6896d7 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { keyBy } from 'lodash';
 import * as React from 'react';
 import { Link } from 'react-router';
-import { keyBy } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
-import ProfileRulesRowOfType from './ProfileRulesRowOfType';
-import ProfileRulesRowTotal from './ProfileRulesRowTotal';
-import ProfileRulesDeprecatedWarning from './ProfileRulesDeprecatedWarning';
-import ProfileRulesSonarWayComparison from './ProfileRulesSonarWayComparison';
-import { searchRules, takeFacet } from '../../../api/rules';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getQualityProfile } from '../../../api/quality-profiles';
+import { searchRules, takeFacet } from '../../../api/rules';
+import DocTooltip from '../../../components/docs/DocTooltip';
 import { getRulesUrl } from '../../../helpers/urls';
 import { Profile } from '../types';
-import DocTooltip from '../../../components/docs/DocTooltip';
+import ProfileRulesDeprecatedWarning from './ProfileRulesDeprecatedWarning';
+import ProfileRulesRowOfType from './ProfileRulesRowOfType';
+import ProfileRulesRowTotal from './ProfileRulesRowTotal';
+import ProfileRulesSonarWayComparison from './ProfileRulesSonarWayComparison';
 
 const TYPES = ['BUG', 'VULNERABILITY', 'CODE_SMELL', 'SECURITY_HOTSPOT'];
 
index f70aeea299271bfc88c4092c217a847896034140..b5a51ccf909ce4cc639c9f84a5e1da42886650eb 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { Link } from 'react-router';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getDeprecatedActiveRulesUrl } from '../../../helpers/urls';
 
 interface Props {
index ac0db586a5b5735d2cedd04550a0f5054e93e952..0beee2bc4ffcedce57e628414e48124344800765 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import { Link } from 'react-router';
+import IssueTypeIcon from 'sonar-ui-common/components/icons/IssueTypeIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import IssueTypeIcon from 'sonar-ui-common/components/icons/IssueTypeIcon';
 import { getRulesUrl } from '../../../helpers/urls';
 
 interface Props {
index e3ee03d5b6872c6a7c336b85c3254cd61258ca3f..ebedb894debe427c2c56f769eff7d2b8f0759e52 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { Link } from 'react-router';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getRulesUrl } from '../../../helpers/urls';
 
 interface Props {
index 610f26ae122be4335de1bd686e318f4cd83968c7..b8928ecf7d9015132b205cd05b87a255cd44e964 100644 (file)
 import { shallow } from 'enzyme';
 import * as React from 'react';
 import SelectList, { SelectListFilter } from 'sonar-ui-common/components/controls/SelectList';
-import { waitAndUpdate, click } from 'sonar-ui-common/helpers/testUtils';
-import ChangeProjectsForm from '../ChangeProjectsForm';
+import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import {
-  getProfileProjects,
   associateProject,
-  dissociateProject
+  dissociateProject,
+  getProfileProjects
 } from '../../../../api/quality-profiles';
+import ChangeProjectsForm from '../ChangeProjectsForm';
 
 const profile: any = { key: 'profFile_key' };
 const organization = 'TEST';
index e9b7b384e662dfd4ec4fb7426bc2f3ed284cf17d..b6b91f5c944d1eabb56f278d3e97b0ac2378f8df 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ProfileDetails from '../ProfileDetails';
+import * as React from 'react';
 import { Profile } from '../../types';
+import ProfileDetails from '../ProfileDetails';
 
 it('renders without permissions', () => {
   expect(
index aa5f8479673b7e26d6a8db70ef1af6ab34850bea..79bd398b5b9a274938246336582165b5ccfeb9cc 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable import/order */
-import * as React from 'react';
 import { mount, shallow } from 'enzyme';
-import ProfilePermissions from '../ProfilePermissions';
+import * as React from 'react';
 import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
+import ProfilePermissions from '../ProfilePermissions';
 
 jest.mock('../../../../api/quality-profiles', () => ({
   searchUsers: jest.fn(() => Promise.resolve([])),
index 65517fe1b2a50b38ab5153523f433da10430d55b..c29ea301e947197a6acbbfd5b66e6f84c370c52e 100644 (file)
@@ -23,10 +23,10 @@ jest.mock('../../../../api/quality-profiles', () => ({
   addGroup: jest.fn(() => Promise.resolve())
 }));
 
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ProfilePermissionsForm from '../ProfilePermissionsForm';
+import * as React from 'react';
 import { submit } from 'sonar-ui-common/helpers/testUtils';
+import ProfilePermissionsForm from '../ProfilePermissionsForm';
 
 const addUser = require('../../../../api/quality-profiles').addUser as jest.Mock<any>;
 const addGroup = require('../../../../api/quality-profiles').addGroup as jest.Mock<any>;
index 448e5536a0cb62737431bf717ba65604fced2348..3580993fc368234c7357d4ed5cf72a3b8ba7a088 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ProfilePermissionsFormSelect from '../ProfilePermissionsFormSelect';
 
 jest.mock('lodash', () => {
index f6e3e5388dba91809bbd7075d4b1d56059135e04..76c61a9da74ad5e9453693b2d826c2d46642d9b7 100644 (file)
@@ -22,10 +22,10 @@ jest.mock('../../../../api/quality-profiles', () => ({
   removeGroup: jest.fn(() => Promise.resolve())
 }));
 
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ProfilePermissionsGroup from '../ProfilePermissionsGroup';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
+import ProfilePermissionsGroup from '../ProfilePermissionsGroup';
 
 const removeGroup = require('../../../../api/quality-profiles').removeGroup as jest.Mock<any>;
 
index e70e777f7d60883130cfa4f25bbb5adbfbe24e6e..b6486c31942748da73b4916b075e2ff7a38118ae 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
-import ProfilePermissionsUser from '../ProfilePermissionsUser';
 import { removeUser } from '../../../../api/quality-profiles';
+import ProfilePermissionsUser from '../ProfilePermissionsUser';
 
 jest.mock('../../../../api/quality-profiles', () => ({
   removeUser: jest.fn(() => Promise.resolve())
index 6aa5238b4f320c5d4109c56a30bc4c73cf023a24..36c45a63c42eba019bf4be516057d06c827900e3 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import ProfileProjects from '../ProfileProjects';
 import { mockQualityProfile } from '../../../../helpers/testMocks';
+import ProfileProjects from '../ProfileProjects';
 
 jest.mock('../../../../api/quality-profiles', () => ({
   getProfileProjects: jest.fn().mockResolvedValue({
index 124fa491bde04b777d8ccbc6ffba96b586e7b4a3..8181332f6d574b5f266433452c5b06affa082e08 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import ProfileRules from '../ProfileRules';
-import * as apiRules from '../../../../api/rules';
 import * as apiQP from '../../../../api/quality-profiles';
+import * as apiRules from '../../../../api/rules';
 import { mockQualityProfile } from '../../../../helpers/testMocks';
+import ProfileRules from '../ProfileRules';
 
 const PROFILE = mockQualityProfile({
   activeRuleCount: 68,
index 248878e0fad65c61ddd0b9eb601815287c0bce88..3170724cd801f23e26f3a1032ad21279fbd28fdf 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ProfileRulesDeprecatedWarning from '../ProfileRulesDeprecatedWarning';
 
 it('should render correctly', () => {
index c07dfbe4c2b11ea10f11b5d980eb90c38a7cd0db..c99e2f084ae30ead52f940c7e255209e4d40a643 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ProfileRulesRowOfType from '../ProfileRulesRowOfType';
 
 it('should render correctly', () => {
index 92516ac8dd5c9c96104f2036fecde9bb6a64650b..21d415dd245e26d42a1d1f928b1e109fd2084714 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ProfileRulesRowTotal from '../ProfileRulesRowTotal';
 
 it('should render correctly', () => {
index 0e841615951f83c6d3523ff7613aeddc1782aef5..5dcd01fff785785765772e4948604d63f4dc2a2f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ProfileRulesSonarWayComparison from '../ProfileRulesSonarWayComparison';
 
 it('should render correctly', () => {
index 89fb516f6659ff8f7a1c55e5d2c233b0d3a6b691..249064bc1160a1d93a255d947e86794360788eda 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import * as React from 'react';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
 import Select from 'sonar-ui-common/components/controls/Select';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import {
   changeProfileParent,
   createQualityProfile,
index 212c13a9c7089fac4b04a1f945e53f2615e3c47e..ca0fb5fa4fa8dcee7ad2509f099e4d7edc0b7feb 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { Profile } from '../types';
 import EvolutionDeprecated from './EvolutionDeprecated';
-import EvolutionStagnant from './EvolutionStagnant';
 import EvolutionRules from './EvolutionRules';
-import { Profile } from '../types';
+import EvolutionStagnant from './EvolutionStagnant';
 
 interface Props {
   organization: string | null;
index 8bd88d61349f8d806bde9ac4eec1384a22252d7d..d70f560512348f6b3270f21632ab047368353321 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { sortBy } from 'lodash';
 import * as React from 'react';
 import { Link } from 'react-router';
-import { sortBy } from 'lodash';
-import { translateWithParameters, translate } from 'sonar-ui-common/helpers/l10n';
-import ProfileLink from '../components/ProfileLink';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { getDeprecatedActiveRulesUrl } from '../../../helpers/urls';
+import ProfileLink from '../components/ProfileLink';
 import { Profile } from '../types';
 
 interface Props {
index 165b86c633f237e506469f69324f215106836a2a..6dc79202b372c465929c63fc2fcff5f234191656 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { sortBy } from 'lodash';
 import * as React from 'react';
 import { Link } from 'react-router';
-import { sortBy } from 'lodash';
 import { toShortNotSoISOString } from 'sonar-ui-common/helpers/dates';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import { translateWithParameters, translate } from 'sonar-ui-common/helpers/l10n';
 import { searchRules } from '../../../api/rules';
 import { getRulesUrl } from '../../../helpers/urls';
 
index adeeb8fe88a0632b814ac54b7bf4f9d7e8ce8a36..02bbee0e237857bfc5802f51262064594f725a3b 100644 (file)
@@ -21,8 +21,8 @@ import * as React from 'react';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import DateFormatter from '../../../components/intl/DateFormatter';
 import ProfileLink from '../components/ProfileLink';
-import { isStagnant } from '../utils';
 import { Profile } from '../types';
+import { isStagnant } from '../utils';
 
 interface Props {
   organization: string | null;
index defe270b574cbd196ab5e96ce554773e27c85161..ef6e41be4295f3496db2a778d5975000f5895e51 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import PageHeader from './PageHeader';
+import { Actions } from '../../../api/quality-profiles';
+import { Profile } from '../types';
 import Evolution from './Evolution';
+import PageHeader from './PageHeader';
 import ProfilesList from './ProfilesList';
-import { Profile } from '../types';
-import { Actions } from '../../../api/quality-profiles';
 
 interface Props {
   actions: Actions;
index e320068db79ff133605c0d28c18a37ba770e7b50..34f1d73d68efe2b3a58982d93aede08e4eead5cc 100644 (file)
  */
 import * as React from 'react';
 import { Link } from 'react-router';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import CreateProfileForm from './CreateProfileForm';
-import RestoreProfileForm from './RestoreProfileForm';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { Actions } from '../../../api/quality-profiles';
+import { Router, withRouter } from '../../../components/hoc/withRouter';
 import { Profile } from '../types';
 import { getProfilePath } from '../utils';
-import { Actions } from '../../../api/quality-profiles';
-import { withRouter, Router } from '../../../components/hoc/withRouter';
+import CreateProfileForm from './CreateProfileForm';
+import RestoreProfileForm from './RestoreProfileForm';
 
 interface Props {
   actions: Actions;
index 1058eb12383ca80148c1dc6fc033e910b582b020..93bd415bd081a8d99e4a3b727a2a9717956bff93 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
-import { groupBy, pick, sortBy } from 'lodash';
 import { Location } from 'history';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { groupBy, pick, sortBy } from 'lodash';
+import * as React from 'react';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import ProfilesListRow from './ProfilesListRow';
-import ProfilesListHeader from './ProfilesListHeader';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import DocTooltip from '../../../components/docs/DocTooltip';
 import { Profile } from '../types';
+import ProfilesListHeader from './ProfilesListHeader';
+import ProfilesListRow from './ProfilesListRow';
 
 interface Props {
   languages: T.Language[];
index b9a2f6b18fc49aaa935cec76373eface07be4c8c..5fb64210365982c0b490ff7441dc9c1beefc296d 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Select from 'sonar-ui-common/components/controls/Select';
-import { getProfilesPath, getProfilesForLanguagePath } from '../utils';
-import { withRouter, Router } from '../../../components/hoc/withRouter';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { Router, withRouter } from '../../../components/hoc/withRouter';
+import { getProfilesForLanguagePath, getProfilesPath } from '../utils';
 
 interface Props {
   currentFilter?: string;
index 5b249be9f0c4f5a36230b287366e07d1198a17a6..fbafb80a7de4ba8649758c912be3ff2d2cdc23d4 100644 (file)
  */
 import * as React from 'react';
 import { Link } from 'react-router';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import ProfileLink from '../components/ProfileLink';
-import ProfileDate from '../components/ProfileDate';
-import ProfileActions from '../components/ProfileActions';
-import BuiltInQualityProfileBadge from '../components/BuiltInQualityProfileBadge';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import DocTooltip from '../../../components/docs/DocTooltip';
 import { getRulesUrl } from '../../../helpers/urls';
-import { isStagnant } from '../utils';
+import BuiltInQualityProfileBadge from '../components/BuiltInQualityProfileBadge';
+import ProfileActions from '../components/ProfileActions';
+import ProfileDate from '../components/ProfileDate';
+import ProfileLink from '../components/ProfileLink';
 import { Profile } from '../types';
-import DocTooltip from '../../../components/docs/DocTooltip';
+import { isStagnant } from '../utils';
 
 interface Props {
   organization: string | null;
index 1a1e120119ffee6f4548cafc9cd839d50b6f4df2..5b668ab9d38d2c6cae1bb7fc25b5fcf28bb77161 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { restoreQualityProfile } from '../../../api/quality-profiles';
 
 interface Props {
index 6d5c388e38b0cd2ca0a4edb373f0c6b52c2c96d1..d36546a0126822053f2b04b2de5e1c157700f05f 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import CreateProfileForm from '../CreateProfileForm';
+import * as React from 'react';
 import { mockQualityProfile } from '../../../../helpers/testMocks';
+import CreateProfileForm from '../CreateProfileForm';
 
 jest.mock('../../../../api/quality-profiles', () => ({
   changeProfileParent: jest.fn(),
index ae320ce8ef7bc3333be5205aa8a8fc1289d4bb91..cf82d8a0277fb4854a3f8db6d2b01703216609d5 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import EvolutionDeprecated from '../EvolutionDeprecated';
+import * as React from 'react';
 import { mockQualityProfile } from '../../../../helpers/testMocks';
+import EvolutionDeprecated from '../EvolutionDeprecated';
 
 it('should render correctly', () => {
   const wrapper = shallow(
index 28facb5a45cabd77620be5ff22beea261a9d84dc..b12f5fe7181c62856a147b7e846e234fc9d8eeb5 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
-import { PageHeader } from '../PageHeader';
 import { mockLanguage, mockQualityProfile, mockRouter } from '../../../../helpers/testMocks';
+import { PageHeader } from '../PageHeader';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 560523ffebc95c48c68e3764322565bb9b4a381a..93213f98bd1a56ad651df9931c5af57c23457428 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ProfilesList from '../ProfilesList';
+import * as React from 'react';
 import { mockLanguage, mockLocation, mockQualityProfile } from '../../../../helpers/testMocks';
+import ProfilesList from '../ProfilesList';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 377d9a8b016ba3cf671ad1e1635a89ce9a8249b0..4cb2117773534be2cfab13a81620658ac10d5a41 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { ProfilesListHeader } from '../ProfilesListHeader';
+import * as React from 'react';
 import { mockRouter } from '../../../../helpers/testMocks';
+import { ProfilesListHeader } from '../ProfilesListHeader';
 
 it('should render correctly', () => {
   const wrapper = shallowRender();
index f5c082b3d3b3140b47d9c0db0f89c0191b37b620..0b85dc70bc64a48340f1d3d956fd010eb1866577 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import RestoreProfileForm from '../RestoreProfileForm';
 
 it('should render correctly', () => {
index c288f4cd1e2addf9e440472b7ba882e2b28ef21b..71926d0bbde2c0a4324f4d111f6f7530029fbd64 100644 (file)
@@ -20,8 +20,8 @@
 import * as differenceInYears from 'date-fns/difference_in_years';
 import { sortBy } from 'lodash';
 import { isValidDate, parseDate } from 'sonar-ui-common/helpers/dates';
-import { Profile } from './types';
 import { Profile as BaseProfile } from '../../api/quality-profiles';
+import { Profile } from './types';
 
 export function sortProfiles(profiles: BaseProfile[]): Profile[] {
   const result: Profile[] = [];
index 005ec2fb9e6291ee917e2f177d06d6c4154d4550..e4e5b7c23a6fd34319d3f8245e78ad238aad3a05 100644 (file)
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import { getTextColor } from 'sonar-ui-common/helpers/colors';
 import { getCookie } from 'sonar-ui-common/helpers/cookies';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import { colors } from '../../../app/theme';
 import { getIdentityProviders } from '../../../api/users';
+import { colors } from '../../../app/theme';
 
 interface State {
   identityProviders: T.IdentityProvider[];
index fb66dfff36faff5f90ebdfc2f1055a71f147d43a..907a5ce63c19646f07aecd0a9f517836cf505192 100644 (file)
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import LoginForm from './LoginForm';
-import OAuthProviders from './OAuthProviders';
 import GlobalMessagesContainer from '../../../app/components/GlobalMessagesContainer';
 import './Login.css';
+import LoginForm from './LoginForm';
+import OAuthProviders from './OAuthProviders';
 
 interface Props {
   identityProviders: T.IdentityProvider[];
index bc866210dacbd4b4253073acf5ce9a04fcf38018..3edae6c67b16f4366401fe4f81e83e4fcda100c4 100644 (file)
 import * as React from 'react';
 import { connect } from 'react-redux';
 import { getReturnUrl } from 'sonar-ui-common/helpers/urls';
-import Login from './Login';
-import LoginSonarCloud from './LoginSonarCloud';
-import { doLogin } from '../../../store/rootActions';
 import { getIdentityProviders } from '../../../api/users';
 import { isSonarCloud } from '../../../helpers/system';
+import { doLogin } from '../../../store/rootActions';
+import Login from './Login';
+import LoginSonarCloud from './LoginSonarCloud';
 
 interface OwnProps {
   location: {
index 387104d95f8c71313ee9ad9231a0bd3dd1beb7f8..11ebb9851c0219dae7eb997ba32fa29807f438cf 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
 import { SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
 import './LoginForm.css';
 
 interface Props {
index 877b20d4514387f5e37806ce282d7074b3d8c9cb..c16147c3b5c35f1e741a82ef58d58a0209f1f476 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as classNames from 'classnames';
 import * as React from 'react';
 import { connect } from 'react-redux';
-import * as classNames from 'classnames';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { Store } from '../../../store/rootReducer';
 import LoginForm from './LoginForm';
-import OAuthProviders from './OAuthProviders';
 import './LoginSonarCloud.css';
-import { Store } from '../../../store/rootReducer';
+import OAuthProviders from './OAuthProviders';
 
 interface Props {
   identityProviders: T.IdentityProvider[];
index acf5012e1205817259f81accc0c06029312af25b..02986d031f5930973a19abf9a21f58557f27c5eb 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
+import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import IdentityProviderLink from 'sonar-ui-common/components/controls/IdentityProviderLink';
 import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import './OAuthProviders.css';
 
 interface Props {
index 716436e8a7f93efdc6dca30ea581549ca5fb3869..06c8139c79a11bc780bbe2350fdc36147ca9e5ee 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import EmailAlreadyExists from '../EmailAlreadyExists';
 
index 25e360a713fcf57aaef7b5118b2008a5ba2e4aab..817f62dd338d39f6014ab5dadaf560c4310fa72f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Login from '../Login';
 
 const identityProvider = {
index d1aece97c9be36b109a7a5be763b550925b115ff..e8b7196bf565225b9896cceedb57d4de7d4c726d 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { change, click, submit, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import LoginForm from '../LoginForm';
 
index 5bb972b4e56de9b1992373f97585bb748f954c9c..f922a702efa42818092aab5b51706a409c97e994 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { LoginSonarCloud } from '../LoginSonarCloud';
 
 const identityProvider = {
index dcd7df7c9e44faba2e13ebe168c9e6fe2ab5b207..4685f0b3516b02786a048d5490d87d30ff903810 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import { Logout } from '../Logout';
 
index addef8425238f5a205f3dddd8b6a77e393353d3f..c08b5cf0848c15a1a72c5b52a01af46277e048ab 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import OAuthProviders from '../OAuthProviders';
 
 const identityProviders = [
index 85552ffaf86b4d666c498486c1bad471fb4ba01b..370409ccec4e382b021d012f6b2d183553a6f15b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Unauthorized from '../Unauthorized';
 
 jest.mock('sonar-ui-common/helpers/cookies', () => ({
index 642fb09c98fece25ae0400d4b3bc3108197b2acb..0e60a1240899cf0e325cc5a3fca77236df2a3dbb 100644 (file)
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { getEmptyValue, getDefaultValue, sanitizeTranslation } from '../utils';
+import { getDefaultValue, getEmptyValue, sanitizeTranslation } from '../utils';
 
 const fields = [
   { key: 'foo', type: 'STRING' } as T.SettingFieldDefinition,
index 6dee93eee92547b3e716c4279285fa2726ccf826..daf2bc69e3d117be0f167b5c2d43453510bbf595 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { connect } from 'react-redux';
 import { sortBy } from 'lodash';
+import * as React from 'react';
+import { connect } from 'react-redux';
 import { IndexLink } from 'react-router';
-import { getCategoryName } from '../utils';
 import { getSettingsAppAllCategories, Store } from '../../../store/rootReducer';
+import { getCategoryName } from '../utils';
 
 interface Category {
   key: string;
index bf47b0be1add91b9e37fd5301b28e8b49be6e305..0ac1a690f084e6f5313c0539526bd4e8bec86118 100644 (file)
@@ -22,15 +22,15 @@ import Helmet from 'react-helmet';
 import { connect } from 'react-redux';
 import { WithRouterProps } from 'react-router';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
+import { getSettingsAppDefaultCategory, Store } from '../../../store/rootReducer';
+import '../side-tabs.css';
+import { fetchSettings } from '../store/actions';
+import '../styles.css';
 import AllCategoriesList from './AllCategoriesList';
 import CategoryDefinitionsList from './CategoryDefinitionsList';
 import PageHeader from './PageHeader';
 import WildcardsHelp from './WildcardsHelp';
-import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
-import { fetchSettings } from '../store/actions';
-import { getSettingsAppDefaultCategory, Store } from '../../../store/rootReducer';
-import '../styles.css';
-import '../side-tabs.css';
 
 interface Props {
   component?: T.Component;
index 780ba704715c3238bcb49971b68bccfa759f9149..245f94a3773acfff48cb4932078fee065cf41ab6 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { connect } from 'react-redux';
-import SubCategoryDefinitionsList from './SubCategoryDefinitionsList';
-import { fetchValues } from '../store/actions';
 import { getSettingsAppSettingsForCategory, Store } from '../../../store/rootReducer';
+import { fetchValues } from '../store/actions';
+import SubCategoryDefinitionsList from './SubCategoryDefinitionsList';
 
 interface Props {
   category: string;
index c9586fdf62339a0270dc82a49818e0c345ee54c5..7ef74e4e6cf6f721b0a5a9e9434eeb31c9c4d697 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import classNames from 'classnames';
 import * as React from 'react';
 import { connect } from 'react-redux';
 import AlertErrorIcon from 'sonar-ui-common/components/icons/AlertErrorIcon';
 import AlertSuccessIcon from 'sonar-ui-common/components/icons/AlertSuccessIcon';
-import classNames from 'classnames';
-import { translateWithParameters, translate } from 'sonar-ui-common/helpers/l10n';
-import Input from './inputs/Input';
-import DefinitionActions from './DefinitionActions';
-import {
-  getPropertyName,
-  getPropertyDescription,
-  getSettingValue,
-  isDefaultOrInherited,
-  sanitizeTranslation
-} from '../utils';
-import { resetValue, saveValue, checkValue } from '../store/actions';
-import { cancelChange, changeValue, passValidation } from '../store/settingsPage';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import {
   getSettingsAppChangedValue,
   getSettingsAppValidationMessage,
   isSettingsAppLoading,
   Store
 } from '../../../store/rootReducer';
+import { checkValue, resetValue, saveValue } from '../store/actions';
+import { cancelChange, changeValue, passValidation } from '../store/settingsPage';
+import {
+  getPropertyDescription,
+  getPropertyName,
+  getSettingValue,
+  isDefaultOrInherited,
+  sanitizeTranslation
+} from '../utils';
+import DefinitionActions from './DefinitionActions';
+import Input from './inputs/Input';
 
 interface Props {
   cancelChange: (key: string) => void;
index bebfc385522b42cbf89cd9947ce4665f57cee2ca..d975fb30b0b002ad0864f4ebbd2418841434a7a1 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button, ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
-import { isEmptyValue, getDefaultValue, getSettingValue } from '../utils';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { getDefaultValue, getSettingValue, isEmptyValue } from '../utils';
 
 type Props = {
   changedValue: string;
index a1f9518c9dfba6570f884b9bda22240f46f201f2..dd1a311650f5259c1c75a236ae3cf0b4c261a457 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { parseError } from 'sonar-ui-common/helpers/request';
 import { SubmitButton } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import { withCurrentUser } from '../../../components/hoc/withCurrentUser';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { parseError } from 'sonar-ui-common/helpers/request';
 import { sendTestEmail } from '../../../api/settings';
+import { withCurrentUser } from '../../../components/hoc/withCurrentUser';
 
 interface Props {
   currentUser: T.LoggedInUser;
index 7733c37c709af1ccb46514349b57870d7e9e3792..cc4e80a84e5a1c052d50a30949209d1be6e46229 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { groupBy, isEqual, sortBy } from 'lodash';
+import * as React from 'react';
+import { getSubCategoryDescription, getSubCategoryName, sanitizeTranslation } from '../utils';
 import DefinitionsList from './DefinitionsList';
 import EmailForm from './EmailForm';
-import { getSubCategoryName, getSubCategoryDescription, sanitizeTranslation } from '../utils';
 
 interface Props {
   category: string;
index 9babfc9fa6a35d4f201bfb0262c88becf28d8d9b..e021776ddbacfa20555a3783ddafd0e543c006e6 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import { Definition } from '../Definition';
 
index 6d1cac684c65d7b6aa10ae2cbb6fd8526ce731dd..0973e800df92ffb21853c6a02e013240cf307395 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable import/order */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import DefinitionActions from '../DefinitionActions';
 
 const definition: T.SettingCategoryDefinition = {
index 7ec5daf83dcb0a2cfac970ad6c324024169bcc47..8160d79ed583ed88208e57f7db54bbe58afc2b77 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { EmailForm } from '../EmailForm';
+import * as React from 'react';
 import { mockLoggedInUser } from '../../../../helpers/testMocks';
+import { EmailForm } from '../EmailForm';
 
 it('should render correctly', () => {
   expect(shallow(<EmailForm currentUser={mockLoggedInUser()} />)).toMatchSnapshot();
index d03547788906c59fb6e909a34d4a54758470f21d..0dc1c3d080c33ffa7fcee6f4b5a862f4c668812e 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import PropertySetInput from './PropertySetInput';
+import { DefaultInputProps, isCategoryDefinition } from '../../utils';
 import MultiValueInput from './MultiValueInput';
 import PrimitiveInput from './PrimitiveInput';
-import { DefaultInputProps, isCategoryDefinition } from '../../utils';
+import PropertySetInput from './PropertySetInput';
 
 export default function Input(props: DefaultInputProps) {
   const { definition } = props.setting;
index 3ad0d79530276a6a528d8dd5c33641b9570fb961..d561eea96d52269e16b47b6879fc46977aa284ce 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Toggle from 'sonar-ui-common/components/controls/Toggle';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { DefaultSpecializedInputProps } from '../../utils';
 
 interface Props extends DefaultSpecializedInputProps {
index 3a786e019516154c6a4c11c7d453c20d101f5968..8337f6be1900cffb2c398e42cd9beafab79dd4d6 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import SimpleInput from './SimpleInput';
 import { DefaultSpecializedInputProps } from '../../utils';
+import SimpleInput from './SimpleInput';
 
 export default function InputForNumber(props: DefaultSpecializedInputProps) {
   return <SimpleInput {...props} className="input-small" type="text" />;
index e0ebd2a29cffd2223b5c2a5e0d19ecf92c6421c0..0d93cc5e80b9284d1770917c1f70528ee272807b 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { Button } from 'sonar-ui-common/components/controls/buttons';
 import LockIcon from 'sonar-ui-common/components/icons/LockIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Button } from 'sonar-ui-common/components/controls/buttons';
 import { colors } from '../../../../app/theme';
 import { DefaultSpecializedInputProps } from '../../utils';
 
index ceaa6c255a74c91a800b4451ea2eb9e8e429e861..f02e9eefee3e746d3e26eb7a81b5076994b39233 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import SimpleInput from './SimpleInput';
 import { DefaultSpecializedInputProps } from '../../utils';
+import SimpleInput from './SimpleInput';
 
 export default function InputForString(props: DefaultSpecializedInputProps) {
   return <SimpleInput {...props} className="settings-large-input" type="text" />;
index ebebcc05521792e7de0b6d25bd0e487c2fa6acdd..fc6b2f92208ceccc9e2b114ca722556d677a2707 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { DeleteButton } from 'sonar-ui-common/components/controls/buttons';
+import { DefaultInputProps, getEmptyValue } from '../../utils';
 import PrimitiveInput from './PrimitiveInput';
-import { getEmptyValue, DefaultInputProps } from '../../utils';
 
 export default class MultiValueInput extends React.PureComponent<DefaultInputProps> {
   ensureValue = () => {
index 3744dc83ad64016b7d9c3b87c1eef11c6bf39980..d7f3fb4711077857bb5aea7084b6d6acf960f3fc 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import InputForString from './InputForString';
-import InputForText from './InputForText';
-import InputForPassword from './InputForPassword';
-import InputForBoolean from './InputForBoolean';
-import InputForNumber from './InputForNumber';
-import InputForSingleSelectList from './InputForSingleSelectList';
 import {
-  getUniqueName,
-  isDefaultOrInherited,
   DefaultInputProps,
-  DefaultSpecializedInputProps
+  DefaultSpecializedInputProps,
+  getUniqueName,
+  isDefaultOrInherited
 } from '../../utils';
+import InputForBoolean from './InputForBoolean';
+import InputForNumber from './InputForNumber';
+import InputForPassword from './InputForPassword';
+import InputForSingleSelectList from './InputForSingleSelectList';
+import InputForString from './InputForString';
+import InputForText from './InputForText';
 
 const typeMapping: {
   [type in T.SettingType]?: React.ComponentType<DefaultSpecializedInputProps>
index d730e1a137210f5dce1ef82e464bbdb58c686a04..c1b45aebeb2b64a34a1e31d5b69dc0ef26eff397 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { DeleteButton } from 'sonar-ui-common/components/controls/buttons';
+import { DefaultInputProps, getEmptyValue, getUniqueName, isCategoryDefinition } from '../../utils';
 import PrimitiveInput from './PrimitiveInput';
-import { getEmptyValue, getUniqueName, DefaultInputProps, isCategoryDefinition } from '../../utils';
 
 export default class PropertySetInput extends React.PureComponent<DefaultInputProps> {
   ensureValue() {
index c76854949e4ab5b9117b4ebe2ad34fd7b05787fc..490d4ed77144912fa35bf10d4216c288bf480cad 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { DefaultSpecializedInputProps } from '../../utils';
 
 interface Props extends DefaultSpecializedInputProps {
index 666f57d23dd8108b5f0091a91fe182c5c08e9c4c..2409086829fa3757b29dcf28b591798d7b370b9c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import Input from '../Input';
+import * as React from 'react';
 import { DefaultInputProps } from '../../../utils';
+import Input from '../Input';
 
 const settingValue = {
   key: 'example'
index 6b7711c5c6c987c4820a7abe2115a629c8901e5b..b80474a4d927cbae55deb56f329b9daeecb8e003 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import InputForBoolean from '../InputForBoolean';
+import * as React from 'react';
 import { DefaultSpecializedInputProps } from '../../../utils';
+import InputForBoolean from '../InputForBoolean';
 
 it('should render Toggle', () => {
   const onChange = jest.fn();
index e548d796d155c993d1b86155d2fe0953ce6f24c8..6a250be3b47a025e2a2b4df9949856dfb4707b36 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import InputForNumber from '../InputForNumber';
 import SimpleInput from '../SimpleInput';
 
index 598143c12c03f4f6663dd12d6d82fe9382ce3784..2ac8b3d7191e01613197b10ed92e71a060b59645 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { click, change, submit } from 'sonar-ui-common/helpers/testUtils';
-import InputForPassword from '../InputForPassword';
+import * as React from 'react';
+import { change, click, submit } from 'sonar-ui-common/helpers/testUtils';
 import { DefaultSpecializedInputProps } from '../../../utils';
+import InputForPassword from '../InputForPassword';
 
 it('should render lock icon, but no form', () => {
   const onChange = jest.fn();
index 95a88286ec4f60996e9608c7d17c9f4396bf4210..e30c0b183aa1efc28f79305d466e819bfc2a8093 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import InputForSingleSelectList from '../InputForSingleSelectList';
+import * as React from 'react';
 import { DefaultSpecializedInputProps } from '../../../utils';
+import InputForSingleSelectList from '../InputForSingleSelectList';
 
 it('should render Select', () => {
   const onChange = jest.fn();
index 703b3314832add0dd5119c40892842ce4fd7b1b7..bb27326c8f7f866b6f053314abcb29e5637850bc 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import InputForString from '../InputForString';
 import SimpleInput from '../SimpleInput';
 
index cff5d753ab2930c80d062a6b29b07c984320261f..d3aa2739c48e836f7372f942d822256c5e30418b 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { change } from 'sonar-ui-common/helpers/testUtils';
-import InputForText from '../InputForText';
 import { DefaultSpecializedInputProps } from '../../../utils';
+import InputForText from '../InputForText';
 
 it('should render textarea', () => {
   const onChange = jest.fn();
index 314ee84d909d2d15223e447d9e54871b517f0951..411ef8d315c3d7d48575882019862e4d7e187fd3 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow, ShallowWrapper } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
+import { DefaultInputProps } from '../../../utils';
 import MultiValueInput from '../MultiValueInput';
 import PrimitiveInput from '../PrimitiveInput';
-import { DefaultInputProps } from '../../../utils';
 
 const settingValue = {
   key: 'example'
index 06a481350b2efb913e2407d97f4abd5d9a814263..95d4e278430d5054a4e34e4f2cb43ecdfce163e6 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { change } from 'sonar-ui-common/helpers/testUtils';
 import SimpleInput from '../SimpleInput';
 
index 0638b826410ec8e79365d06eca56c8c94fd6e096..95d4cb62cc2c601aaaa665fa2d9b96e0937915ab 100644 (file)
  */
 import * as React from 'react';
 import Helmet from 'react-helmet';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { checkSecretKey, generateSecretKey } from '../../../api/settings';
 import EncryptionForm from './EncryptionForm';
 import GenerateSecretKeyForm from './GenerateSecretKeyForm';
-import { checkSecretKey, generateSecretKey } from '../../../api/settings';
 
 interface State {
   loading: boolean;
index e9040aecc5f5fb2192ca357c7d31832489ea1392..62ecc6cfb5c42d7c8852cca7a4c60001be6287f9 100644 (file)
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { SubmitButton } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import ClipboardButton from 'sonar-ui-common/components/controls/ClipboardButton';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { encryptValue } from '../../../api/settings';
 
 interface Props {
index 0df869bbee539178ab92568d0db97b6e24f661b3..d5a4bf7feebdb6ff6389115e368b973a45c248d4 100644 (file)
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { SubmitButton } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import ClipboardButton from 'sonar-ui-common/components/controls/ClipboardButton';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   generateSecretKey: () => Promise<void>;
index be5d5a13d8d15607e2be8a27b96368afcf2bc9c3..0611ca45b8839a89a8b043a34e6eadbfc7910af1 100644 (file)
 import { Dispatch } from 'redux';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { parseError } from 'sonar-ui-common/helpers/request';
-import { receiveValues } from './values';
-import { receiveDefinitions } from './definitions';
-import {
-  cancelChange,
-  failValidation,
-  passValidation,
-  startLoading,
-  stopLoading
-} from './settingsPage';
 import {
   getDefinitions,
   getValues,
-  setSettingValue,
-  resetSettingValue
+  resetSettingValue,
+  setSettingValue
 } from '../../../api/settings';
 import { closeAllGlobalMessages } from '../../../store/globalMessages';
-import { isEmptyValue } from '../utils';
 import {
-  getSettingsAppDefinition,
   getSettingsAppChangedValue,
+  getSettingsAppDefinition,
   Store
 } from '../../../store/rootReducer';
+import { isEmptyValue } from '../utils';
+import { receiveDefinitions } from './definitions';
+import {
+  cancelChange,
+  failValidation,
+  passValidation,
+  startLoading,
+  stopLoading
+} from './settingsPage';
+import { receiveValues } from './values';
 
 export function fetchSettings(component?: string) {
   return (dispatch: Dispatch) => {
index c282cd847e7c5c750b13638ce229510cfe40f5e1..4620229f05fc554ccf32077a9ce60f21c2b68fda 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { combineReducers } from 'redux';
+import globalMessages, * as fromGlobalMessages from '../../../store/globalMessages';
 import definitions, * as fromDefinitions from './definitions';
-import values, * as fromValues from './values';
 import settingsPage, * as fromSettingsPage from './settingsPage';
-import globalMessages, * as fromGlobalMessages from '../../../store/globalMessages';
+import values, * as fromValues from './values';
 
 interface State {
   definitions: fromDefinitions.State;
index 7dfeb996fc17aa771046c26037d38ce56944c78c..50a4d77bf3dfbd16a175dfe38cbd0a6159d68d7a 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { combineReducers } from 'redux';
 import { keyBy } from 'lodash';
-import { ActionType } from '../../../store/utils/actions';
+import { combineReducers } from 'redux';
 import { Action as AppStateAction, Actions as AppStateActions } from '../../../store/appState';
+import { ActionType } from '../../../store/utils/actions';
 
 enum Actions {
   receiveValues = 'RECEIVE_VALUES'
index 36979c5d8999c6c32cd3a7999bf0c0c60ade7c9e..997b649e12484c3479e0301487e84b3b769ad0ca 100644 (file)
@@ -18,7 +18,7 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { sanitize } from 'dompurify';
-import { translate, hasMessage } from 'sonar-ui-common/helpers/l10n';
+import { hasMessage, translate } from 'sonar-ui-common/helpers/l10n';
 
 export const DEFAULT_CATEGORY = 'general';
 
index 22247758f54e71d0611c4f25b64ce2b01107f444..b90fab875f1505b39330c49960f3681b48fc7aa4 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable sonarjs/no-duplicate-string */
-import * as u from '../utils';
 import { mockClusterSysInfo, mockStandaloneSysInfo } from '../../../helpers/testMocks';
+import * as u from '../utils';
 
 describe('parseQuery', () => {
   it('should correctly parse the expand array', () => {
index 0c5efb86550f5b6dc45029f0b0d32b82e84af405..7f1dbf392f3d280ffcad88d53f05b35fa7618b9d 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { withRouter, WithRouterProps } from 'react-router';
 import Helmet from 'react-helmet';
+import { withRouter, WithRouterProps } from 'react-router';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import ClusterSysInfos from './ClusterSysInfos';
-import PageHeader from './PageHeader';
-import StandaloneSysInfos from './StandaloneSysInfos';
-import SystemUpgradeNotif from './system-upgrade/SystemUpgradeNotif';
-import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
 import { getSystemInfo } from '../../../api/system';
+import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
+import '../styles.css';
 import {
+  getClusterVersion,
   getServerId,
   getSystemLogsLevel,
+  getVersion,
   isCluster,
   parseQuery,
   Query,
-  serializeQuery,
-  getVersion,
-  getClusterVersion
+  serializeQuery
 } from '../utils';
-import '../styles.css';
+import ClusterSysInfos from './ClusterSysInfos';
+import PageHeader from './PageHeader';
+import StandaloneSysInfos from './StandaloneSysInfos';
+import SystemUpgradeNotif from './system-upgrade/SystemUpgradeNotif';
 
 type Props = WithRouterProps;
 
index 11b2f5212ab1c11273af9eaa68b1eff37d243fae..dce503ae928e01e648fc919de613819c2c7694eb 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import { LOGS_LEVELS } from '../utils';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { setLogLevel } from '../../../api/system';
+import { LOGS_LEVELS } from '../utils';
 
 interface Props {
   infoMsg: string;
index 3c1d6c8c1173ad4775354ebf95c8676a65c32e8d..68a049fd2e7f5ca8f802637258c1e1fe805d63b7 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import HealthCard from './info-items/HealthCard';
 import {
   getAppNodes,
+  getClusterMainCardSection,
   getHealth,
   getHealthCauses,
-  getClusterMainCardSection,
   getNodeName,
   getSearchNodes,
   ignoreInfoFields
 } from '../utils';
+import HealthCard from './info-items/HealthCard';
 
 interface Props {
   expandedCards: string[];
index ff28b7d403cd93768f57154394c6e6f2cdb1efdd..1c1dd77286670cb322bf999860360e02b5a2176a 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { Button, EditButton } from 'sonar-ui-common/components/controls/buttons';
+import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
 import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import { EditButton, Button } from 'sonar-ui-common/components/controls/buttons';
-import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
-import ChangeLogLevelForm from './ChangeLogLevelForm';
 import AdminContext from '../../../app/components/AdminContext';
 import RestartButton from '../../../components/common/RestartButton';
 import { getFileNameSuffix } from '../utils';
+import ChangeLogLevelForm from './ChangeLogLevelForm';
 
 interface Props {
   canDownloadLogs: boolean;
index 938aeeafbb8416db8fc8b60789d9bae7d2e3ac43..7f508bb9810fcb892a810873b5c79fa5f1f50ffe 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import ClipboardButton from 'sonar-ui-common/components/controls/ClipboardButton';
 import { toShortNotSoISOString } from 'sonar-ui-common/helpers/dates';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import ClipboardButton from 'sonar-ui-common/components/controls/ClipboardButton';
 import PageActions from './PageActions';
 
 export interface Props {
index adb9db52ec5ee3550da8638bd13acc20502fd228..80f1153f411ed63171504649334435b749931cd2 100644 (file)
@@ -17,9 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { map } from 'lodash';
-import HealthCard from './info-items/HealthCard';
+import * as React from 'react';
 import {
   getHealth,
   getHealthCauses,
@@ -27,6 +26,7 @@ import {
   getStandaloneSecondarySections,
   ignoreInfoFields
 } from '../utils';
+import HealthCard from './info-items/HealthCard';
 
 interface Props {
   expandedCards: string[];
index 29ba32c1abbc2f24623f06de40a7807a382f15e8..e7218c289d373fe462b501cdaabad15aa6c1b935 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ChangeLogLevelForm from '../ChangeLogLevelForm';
 
 it('should render correctly', () => {
index 395f5bf30ac90cede71597adcf4cfb93cb6a6ec0..9c4f23bd76139b57b1af9a95dd297021d2c37790 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ClusterSysInfos from '../ClusterSysInfos';
+import * as React from 'react';
 import { mockClusterSysInfo } from '../../../../helpers/testMocks';
+import ClusterSysInfos from '../ClusterSysInfos';
 
 it('should render correctly', () => {
   expect(
index badecafb644b891691f563aed355fcaf292388a4..c54a6ded0b66e904844110fe6327fcc789f217f4 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import PageActions from '../PageActions';
 
index d284f71c7f3a42dcf616538597ecdf8b5a47f8c1..85628d3e89c2cbb90ffae10a27e45228703d01fb 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import PageHeader, { Props } from '../PageHeader';
 
 jest.mock('sonar-ui-common/helpers/dates', () => ({
index e7bec64929e5bf2b16ba8fcaf0dabc36ba1f41e7..cc84b4c8e09d6df4129da92b36e77340c4161240 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import StandaloneSysInfos from '../StandaloneSysInfos';
+import * as React from 'react';
 import { mockStandaloneSysInfo } from '../../../../helpers/testMocks';
+import StandaloneSysInfos from '../StandaloneSysInfos';
 
 it('should render correctly', () => {
   expect(getWrapper()).toMatchSnapshot();
index 8deb0fe862e360636d88d5375b2b6d39635196b3..ab7d36b2a571ce69c997869a64f578b48afcb9f2 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { map } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import * as React from 'react';
 import BoxedGroupAccordion from 'sonar-ui-common/components/controls/BoxedGroupAccordion';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { getLogsLevel, groupSections, LOGS_LEVELS } from '../../utils';
 import HealthItem from './HealthItem';
 import Section from './Section';
-import { LOGS_LEVELS, groupSections, getLogsLevel } from '../../utils';
 
 interface Props {
   biggerHealth?: boolean;
index 60e29321155b0f9b39855046d9a14033e592694d..ee5869921d8bc4b8db75900db95f748337d17af5 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
 
 interface Props {
index c1aa70aad0d6b91f1d62d24450229f6714946c94..e2daa34352810eb9ff0537b916703f3316eace0c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import HealthCauseItem from './HealthCauseItem';
+import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import StatusIndicator from '../../../../components/common/StatusIndicator';
+import HealthCauseItem from './HealthCauseItem';
 
 interface Props {
   biggerHealth?: boolean;
index b548e94afa9362467d7d85f0cfb31fea260ba6a5..8e9f13a8633ecc74e303155b0972c43b54e13332 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { map } from 'lodash';
+import * as React from 'react';
 import SysInfoItem from './SysInfoItem';
 
 interface Props {
index 61560dffac6edcdf2b63f7074a47667dde244a4a..99a8732552576954f2c0418f2b208ef796afff22 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { map } from 'lodash';
 import * as React from 'react';
 import AlertErrorIcon from 'sonar-ui-common/components/icons/AlertErrorIcon';
 import AlertSuccessIcon from 'sonar-ui-common/components/icons/AlertSuccessIcon';
-import { map } from 'lodash';
-import HealthItem from './HealthItem';
 import { HEALTH_FIELD, STATE_FIELD } from '../../utils';
+import HealthItem from './HealthItem';
 
 export interface Props {
   name: string;
index f96d0245c37a20547c7c3bb9364530d6a4b06472..a8e9fe7381e17db601dc3bdcccc19dea2ff6b6d2 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import HealthCard from '../HealthCard';
 
 it('should render correctly', () => {
index 52ca0760f4c9800498a5d7f26e49a9dc8b4d1c58..5dcd9f034fa3015626a45aab20f9b0db267e8414 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import HealthCauseItem from '../HealthCauseItem';
 
 it('should render correctly', () => {
index a17f1140b98fc5db37efc019a0cff30030fb4172..116a3072c00f52eebf305d3b07f52ba70209c0ad 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import HealthItem from '../HealthItem';
 
 it('should render correctly', () => {
index d524a4c95fb758f8736d2cd6c3cfe13cc031140c..2d75d6254fa3196a347a194869d01366a42e415d 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Section from '../Section';
 
 it('should render correctly', () => {
index 7d4db450fbef7e1b22f88d700239e178166e55e3..80ec94bfcad11a83f2185fdae46360c07cfc2d0c 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SysInfoItem, { Props } from '../SysInfoItem';
 
 it('should render string', () => {
index 04aefd232d5d206473950956827980fdfb79c60c..a6de6790b7f9f7aaa3d0e3235f8c1ebf34bd76ac 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import SystemUpgradeItem from './SystemUpgradeItem';
 
 interface Props {
index b5009a722ef35a7891138b2cb82d148c73d3f71b..86135043784dac5f2f14edae42465be65269dd9b 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import DateFormatter from '../../../../components/intl/DateFormatter';
 
 interface Props {
index ed8eb1596c42f0f5d03878e5e961c77917fbfe46..71494e0ab775109f18910ff0b3e919ddb6df6150 100644 (file)
@@ -20,8 +20,8 @@
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import SystemUpgradeIntermediate from './SystemUpgradeIntermediate';
 import DateFormatter from '../../../../components/intl/DateFormatter';
+import SystemUpgradeIntermediate from './SystemUpgradeIntermediate';
 
 interface Props {
   type?: string;
index ebc4edd5425ad46e5475be20a17f1c07b29f8a86..9db71aa7c220f28f9b292d8772fe8c56b1a93487 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import SystemUpgradeForm from './SystemUpgradeForm';
-import { sortUpgrades, groupUpgrades } from '../../utils';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getSystemUpgrades } from '../../../../api/system';
+import { groupUpgrades, sortUpgrades } from '../../utils';
+import SystemUpgradeForm from './SystemUpgradeForm';
 
 interface State {
   systemUpgrades: T.SystemUpgrade[][];
index 4d880c5ebf4b9e51414768e6c35f6a7b2b5ce84b..be4a15b7a33f33eda0f198255ed53246f58bbe73 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SystemUpgradeForm from '../SystemUpgradeForm';
 
 const UPGRADES = [
index d3b8995c7905777b7c1f8eeb878c1382f28d2e69..40f1bdbb8610b1945edb9a3a246f6d4af9ec6593 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import SystemUpgradeIntermediate from '../SystemUpgradeIntermediate';
 
index 0a05f8b9bb4a575b291a6b59ba63941f2f434d35..ef7b7c632d279c11ecdb407160d381abbd5bd01c 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SystemUpgradeItem from '../SystemUpgradeItem';
 
 const UPGRADES = [
index 2c630d615c2b107962d4a5338bcfda15bc2ee417..14a9802ea4f70fc827a995449eca32e5922e38bd 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable import/order */
-import * as React from 'react';
 import { mount, shallow } from 'enzyme';
+import * as React from 'react';
 import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import SystemUpgradeNotif from '../SystemUpgradeNotif';
 
index d9342adbd45e5f4510d77ff1cfb39afff6abe645..9b75c19d451ad9784eb8dd6da3bd3895eaf6b400 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { each, groupBy, memoize, omit, omitBy, pickBy, sortBy } from 'lodash';
+import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import {
   cleanQuery,
   parseAsArray,
   parseAsString,
   serializeStringArray
 } from 'sonar-ui-common/helpers/query';
-import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 
 export interface Query {
   expandedCards: string[];
index 41bb0bb9bcd93b83ba339733eeac91614f7f02cd..73048f1d14590f05b73f67def51546b6f10ba87d 100644 (file)
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import AnalyzeTutorialSuggestion from './AnalyzeTutorialSuggestion';
-import ProjectAnalysisStep from '../components/ProjectAnalysisStep';
-import TokenStep from '../components/TokenStep';
-import { isVSTS } from '../../../helpers/almIntegrations';
 import InstanceMessage from '../../../components/common/InstanceMessage';
+import { isVSTS } from '../../../helpers/almIntegrations';
 import { isSonarCloud } from '../../../helpers/system';
+import ProjectAnalysisStep from '../components/ProjectAnalysisStep';
+import TokenStep from '../components/TokenStep';
 import '../styles.css';
+import AnalyzeTutorialSuggestion from './AnalyzeTutorialSuggestion';
 
 export enum Steps {
   ANALYSIS,
index 314a486af407848dbb8c06667ee984d1a1ec4117..94beebfeff4df767d82936e1c3ce6fb14c153597 100644 (file)
  */
 import * as classnames from 'classnames';
 import * as React from 'react';
+import BackButton from 'sonar-ui-common/components/controls/BackButton';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { get, remove, save } from 'sonar-ui-common/helpers/storage';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import BackButton from 'sonar-ui-common/components/controls/BackButton';
+import { getGithubLanguages } from '../../../api/alm-integration';
+import { generateToken, getTokens } from '../../../api/user-tokens';
+import InstanceMessage from '../../../components/common/InstanceMessage';
+import { isBitbucket, isGithub, isVSTS } from '../../../helpers/almIntegrations';
+import { isSonarCloud } from '../../../helpers/system';
+import AnalyzeTutorialDone from '../components/AnalyzeTutorialDone';
+import ProjectAnalysisStep from '../components/ProjectAnalysisStep';
+import TokenStep from '../components/TokenStep';
+import '../styles.css';
+import { getUniqueTokenName } from '../utils';
+import './AnalyzeTutorialSonarCloud.css';
+import { TutorialSuggestionBitbucket, TutorialSuggestionVSTS } from './AnalyzeTutorialSuggestion';
 import ConfigureWithAutoScan from './configurations/ConfigureWithAutoScan';
-import ConfigureWithTravis from './configurations/ConfigureWithTravis';
 import ConfigureWithLocalScanner from './configurations/ConfigureWithLocalScanner';
 import ConfigureOtherCI from './configurations/ConfigureWithOtherCI';
-import { TutorialSuggestionBitbucket, TutorialSuggestionVSTS } from './AnalyzeTutorialSuggestion';
+import ConfigureWithTravis from './configurations/ConfigureWithTravis';
 import {
   Alm,
-  ALM_KEYS,
   AlmLanguagesStats,
   alms,
+  ALM_KEYS,
   AnalysisMode,
   autoScanMode,
   isAutoScannable,
@@ -42,17 +53,6 @@ import {
   PROJECT_STEP_PROGRESS,
   TutorialProps
 } from './utils';
-import { getUniqueTokenName } from '../utils';
-import AnalyzeTutorialDone from '../components/AnalyzeTutorialDone';
-import InstanceMessage from '../../../components/common/InstanceMessage';
-import TokenStep from '../components/TokenStep';
-import ProjectAnalysisStep from '../components/ProjectAnalysisStep';
-import { generateToken, getTokens } from '../../../api/user-tokens';
-import { getGithubLanguages } from '../../../api/alm-integration';
-import { isBitbucket, isGithub, isVSTS } from '../../../helpers/almIntegrations';
-import { isSonarCloud } from '../../../helpers/system';
-import '../styles.css';
-import './AnalyzeTutorialSonarCloud.css';
 
 interface Props {
   component: T.Component;
index 722814d3207da2c8076acbb8b6b13efd560c9e8b..f0f7150e5de1f1c2ea1d54ba2423e86a87eec4fe 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import { isBitbucket, isGithub, isVSTS } from '../../../helpers/almIntegrations';
 
 export function TutorialSuggestionBitbucket() {
index 4db768b3d74c2229d93ec1f2a5965b0cfea762fb..cfbeef2ff6159746956f7ee10936be9d32e04595 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import AnalyzeTutorial from '../AnalyzeTutorial';
 
 jest.mock('../../../../helpers/system', () => ({
index 9ced4c62f270f2382372d02b939c0c17fa547515..bc740e1af63976664e3946a220706a318f209246 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { get } from 'sonar-ui-common/helpers/storage';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import AnalyzeTutorialSonarCloud from '../AnalyzeTutorialSonarCloud';
-import { mockComponent, mockLoggedInUser } from '../../../../helpers/testMocks';
 import { generateToken, getTokens } from '../../../../api/user-tokens';
+import { mockComponent, mockLoggedInUser } from '../../../../helpers/testMocks';
 import { getUniqueTokenName } from '../../utils';
+import AnalyzeTutorialSonarCloud from '../AnalyzeTutorialSonarCloud';
 
 jest.mock('sonar-ui-common/helpers/storage', () => ({
   get: jest.fn(),
index c6fc19927277c51bd94ce1b2a92f3219713e960c..22f3dcedcd39dae2f22d987423dd07c39ad320ee 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import AnalyzeTutorialSuggestion, {
   TutorialSuggestionBitbucket,
   TutorialSuggestionGithub,
index 815e308bc8f9b27bacd6d94148c3bd075d5cf531..8b094c0db0d4c64e402764ebb8c420379e18abac 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import DocTooltip from '../../../../components/docs/DocTooltip';
 
 export function AutoScanAlert() {
index 0419830ec3ab49f6eb1e932617da6ffc2bacb676..a4d7c52aa880905611e50b3a2a9ef662830f003f 100644 (file)
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import { Button, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
-import { AutoScanAlert } from './AutoScanAlert';
+import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import CodeSnippet from '../../../../components/common/CodeSnippet';
 import Step from '../../components/Step';
 import { TutorialProps } from '../utils';
+import { AutoScanAlert } from './AutoScanAlert';
 
 export default function ConfigureWithAutoScan({ onDone }: TutorialProps) {
   const [showCustomizationOptions, setCustomizationOptions] = React.useState<boolean>(false);
index 86b3d59003880c168f2262d689adb5160bb1447b..1cdc475785036cdf714e163a6ebffa2496e3bee8 100644 (file)
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { get, save } from 'sonar-ui-common/helpers/storage';
-import EncryptYourTokenStep from '../steps/EncryptYourTokenStep';
+import { isSonarCloud } from '../../../../helpers/system';
 import CreateSonarPropertiesStep from '../steps/CreateSonarPropertiesStep';
 import EditTravisYmlStep from '../steps/EditTravisYmlStep';
-import { isSonarCloud } from '../../../../helpers/system';
+import EncryptYourTokenStep from '../steps/EncryptYourTokenStep';
 import { PROJECT_STEP_PROGRESS, TutorialProps } from '../utils';
 
 enum Steps {
index 199befdf043e507881c954c864b765f6cb1d384e..0f388ccec9bfed8e08ca6cb76a38256f1f627714 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { AutoScanAlert } from '../AutoScanAlert';
 
 it('should renders correctly', () => {
index f236a32788d9055c6e164b5442503802b0cfd33b..5fd950bc579b6ee0c50e0eaecddb5d682ae735b3 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ConfigureWithOtherCI from '../ConfigureWithOtherCI';
-import { TutorialProps } from '../../utils';
+import * as React from 'react';
 import { mockComponent, mockLoggedInUser } from '../../../../../helpers/testMocks';
+import { TutorialProps } from '../../utils';
+import ConfigureWithOtherCI from '../ConfigureWithOtherCI';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 55e70d552a81d1e8ba480bad0da2bbb67d6e2df7..6a2099f0b4a0f5beabe3acc719c8ad4402eb1b66 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ConfigureWithAutoScan from '../ConfigureWithAutoScan';
-import { TutorialProps } from '../../utils';
+import * as React from 'react';
 import { mockComponent, mockLoggedInUser } from '../../../../../helpers/testMocks';
+import { TutorialProps } from '../../utils';
+import ConfigureWithAutoScan from '../ConfigureWithAutoScan';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index c206bfe6e899389229c115bba38682ee96a21eff..cfcf2f0fa3294f84c112bc8e784e9f304b8bbe13 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ConfigureWithLocalScanner from '../ConfigureWithLocalScanner';
-import { TutorialProps } from '../../utils';
+import * as React from 'react';
 import { mockComponent, mockLoggedInUser } from '../../../../../helpers/testMocks';
+import { TutorialProps } from '../../utils';
+import ConfigureWithLocalScanner from '../ConfigureWithLocalScanner';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index cfd719e132ca783280bdc2851e0bd708a07274fa..d11d22d5247681ffd1269b71abd08d4b9c0fa32c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ConfigureWithTravis from '../ConfigureWithTravis';
-import { TutorialProps } from '../../utils';
+import * as React from 'react';
 import { mockComponent, mockLoggedInUser } from '../../../../../helpers/testMocks';
+import { TutorialProps } from '../../utils';
+import ConfigureWithTravis from '../ConfigureWithTravis';
 
 jest.mock('sonar-ui-common/helpers/storage', () => ({
   get: jest.fn().mockReturnValue(
index 86719078fef551165e2a7446afa851690ba08f89..df5a6919320d103db970563bbaf7fe827cb6f03b 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import CodeSnippet from '../../../../components/common/CodeSnippet';
 import Step from '../../components/Step';
 import { StepProps } from '../../utils';
index 816b3ce6bf1e97c8dc24af811899612034d8e35b..313f7bbcee325b794e1463f1f9b66cf4a42a89f6 100644 (file)
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { Link } from 'react-router';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Button, DeleteButton } from 'sonar-ui-common/components/controls/buttons';
 import ConfirmModal from 'sonar-ui-common/components/controls/ConfirmModal';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { generateToken, getTokens, revokeToken } from '../../../../api/user-tokens';
-import { getUniqueTokenName } from '../../utils';
 import { RenderOptions } from '../../components/RenderOptions';
+import { getUniqueTokenName } from '../../utils';
 
 export enum TokenMode {
   use_existing_token = 'use_existing_token',
index c9563ccc710f36ee2faa97307b6253664f950e5e..ebbebcd65bcbd24843d84168b78ce61a3dea0da9 100644 (file)
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import BuildSystemForm from '../../components/BuildSystemForm';
 import AnalysisCommandTravis from '../../components/commands/AnalysisCommandTravis';
 import Step from '../../components/Step';
-import BuildSystemForm from '../../components/BuildSystemForm';
 import { StepProps } from '../../utils';
 
 interface BuildProps {
index 7208c825ba65a5627d6d88586f8e705d99425c58..b4f423fa1bb7a1882417d4b209f480e31965ba0f 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button, EditButton } from 'sonar-ui-common/components/controls/buttons';
-import EditTokenModal from './EditTokenModal';
-import Step from '../../components/Step';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import CodeSnippet from '../../../../components/common/CodeSnippet';
+import Step from '../../components/Step';
+import EditTokenModal from './EditTokenModal';
 
 export interface YourTokenProps {
   component: T.Component;
index 88738c53dbd997cfd8b13a26d34149edfb92e1b0..c693a69422653c2b8b1ee74f16dda1aa07c23c9f 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import CreateSonarPropertiesStep from '../CreateSonarPropertiesStep';
+import * as React from 'react';
 import { StepProps } from '../../../utils';
+import CreateSonarPropertiesStep from '../CreateSonarPropertiesStep';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 4a88807c91d128d8468a8448b4cb90094f7ed225..bc8562968d54953e0784c6225ef768fc568db096 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import EditTokenModal, { TokenMode } from '../EditTokenModal';
-import { mockComponent, mockEvent, mockLoggedInUser } from '../../../../../helpers/testMocks';
 import { generateToken, getTokens, revokeToken } from '../../../../../api/user-tokens';
+import { mockComponent, mockEvent, mockLoggedInUser } from '../../../../../helpers/testMocks';
 import { getUniqueTokenName } from '../../../utils';
+import EditTokenModal, { TokenMode } from '../EditTokenModal';
 
 jest.mock('../../../../../api/user-tokens', () => ({
   generateToken: jest.fn().mockResolvedValue({
index 2ce447bd6cbdcdc9f8cfc616b79c1d441cde84ca..2edd1d7a7d148d55e66b911bf4f1fd3bcadc19b8 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import EditTravisYmlStep from '../EditTravisYmlStep';
+import * as React from 'react';
 import { StepProps } from '../../../utils';
+import EditTravisYmlStep from '../EditTravisYmlStep';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 68f7c392b372d5abccc42556268c91bd264e165e..db5b9ee2ea53b18a17e81a51500d717e544efcdb 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import EncryptYourTokenStep from '../EncryptYourTokenStep';
-import { StepProps } from '../../../utils';
+import * as React from 'react';
 import { mockComponent, mockLoggedInUser } from '../../../../../helpers/testMocks';
+import { StepProps } from '../../../utils';
+import EncryptYourTokenStep from '../EncryptYourTokenStep';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index b8d1c05aba4cdea0a33c54b12fde17087f8b1dc4..3b510fb4ad374e931ad1fd584d2228c6f16ea960 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import BackButton from 'sonar-ui-common/components/controls/BackButton';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getBaseUrl } from 'sonar-ui-common/helpers/urls';
-import BackButton from 'sonar-ui-common/components/controls/BackButton';
 
 interface Props {
   setTutorialDone: (done: boolean) => void;
index f3525341d7a588e0302fa83693a1049ce4793233..2385a9dcdb58fa690e89ad7d783e5cfe636eaf47 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import RadioToggle from 'sonar-ui-common/components/controls/RadioToggle';
-import { RenderOptions } from './RenderOptions';
-import NewProjectForm from './NewProjectForm';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { isSonarCloud } from '../../../helpers/system';
 import { isLanguageConfigured, LanguageConfig } from '../utils';
+import NewProjectForm from './NewProjectForm';
+import { RenderOptions } from './RenderOptions';
 
 interface Props {
   component?: T.Component;
index 322563f05b2a3bff16d8a17d1af40a9b884e8758..c394f5f061463801f4e18f086ed780e18c376524 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { DeleteButton, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { createProject, deleteProject } from '../../../api/components';
 
 interface Props {
index 6af1907638ea40682aed2d52357f235684d33a21..f6421837108209bd5f0d4f94a458c09f40af4ed4 100644 (file)
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Step from './Step';
-import LanguageForm from './LanguageForm';
-import AnalysisCommand from './commands/AnalysisCommand';
 import { LanguageConfig } from '../utils';
+import AnalysisCommand from './commands/AnalysisCommand';
+import LanguageForm from './LanguageForm';
+import Step from './Step';
 
 interface Props {
   component?: T.Component;
index c84000b7d64b492bcbf7dc26b8d80d495466246d..929c2a24bd54d584b84cffcd36a0e82fccfae296 100644 (file)
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { get, save } from 'sonar-ui-common/helpers/storage';
-import Step from './Step';
+import { PROJECT_STEP_PROGRESS } from '../analyzeProject/utils';
 import BuildSystemForm from './BuildSystemForm';
 import AnalysisCommandCustom from './commands/AnalysisCommandCustom';
 import AnalysisCommandOtherCI from './commands/AnalysisCommandOtherCI';
-import { PROJECT_STEP_PROGRESS } from '../analyzeProject/utils';
+import Step from './Step';
 
 export enum ProjectAnalysisModes {
   CI = 'CI',
index e86607b59d73bc2bf0018366c11df2a18ecfb978..912107e2c83480e57b199c82cbd93f2550b93b23 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import RadioToggle from 'sonar-ui-common/components/controls/RadioToggle';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface RenderOptionsProps {
   checked: string | undefined;
index 34e6327e0c2a3a5b1280e53239b3c8e7bec0d3b9..4aec8956f408c3bfe88db84d77e6b78a4c092657 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/no-noninteractive-tabindex */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 
 interface Props {
   finished?: boolean;
index 15975a3e086bef34e29994578e57011016e8689f..116a4f50c3fd5e75890e35fd194ac27127691fff 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { Link } from 'react-router';
+import { Button, DeleteButton, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import AlertErrorIcon from 'sonar-ui-common/components/icons/AlertErrorIcon';
 import AlertSuccessIcon from 'sonar-ui-common/components/icons/AlertSuccessIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { DeleteButton, SubmitButton, Button } from 'sonar-ui-common/components/controls/buttons';
-import Step from './Step';
-import { getTokens, generateToken, revokeToken } from '../../../api/user-tokens';
+import { generateToken, getTokens, revokeToken } from '../../../api/user-tokens';
 import { getUniqueTokenName } from '../utils';
+import Step from './Step';
 
 interface Props {
   currentUser: Pick<T.LoggedInUser, 'login'>;
index f0dede54998010dbd8260448fca6d7af15e178ab..9532fcec0e5550a07cb491ee08fd2b7a5c60dc64 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import AnalyzeTutorialDone from '../AnalyzeTutorialDone';
 
 it('should render correctly', () => {
index a478875edc89850897bb9f837d50ae8a4bf2abb1..045240efcd656a97e5a676bdfe596c36e44aeea3 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import BuildSystemForm from '../BuildSystemForm';
 
 it('should render correctly', () => {
index 18af8e638b54cea2214129ef7f088717690e07d4..770ad94355bf06db8ca8cef1832344c2af02e721 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import LanguageForm from '../LanguageForm';
+import * as React from 'react';
 import { isSonarCloud } from '../../../../helpers/system';
+import LanguageForm from '../LanguageForm';
 
 jest.mock('../../../../helpers/system', () => ({ isSonarCloud: jest.fn() }));
 
index cf91df3d1a45e51acab46172b7ce5708d33b3138..c058a76c3bb1f5d3a84967576413b34189a90dd5 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { change, submit, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import NewProjectForm from '../NewProjectForm';
 
index 45d666de5db808b51afbe4c02552ab6ff9cf7942..7916779b6399a10ef43c95b52866fe4e81eaa838 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { mockComponent } from '../../../../helpers/testMocks';
 import ProjectAnalysisStep from '../ProjectAnalysisStep';
 
index 50ea22afa34f085c65fd73933f4b438032e4065e..4ddbaae51007b328db376625674b1a30dc7b8dc2 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { mockComponent, mockLoggedInUser } from '../../../../helpers/testMocks';
 import ProjectAnalysisStepFromBuildTool, {
   ProjectAnalysisModes,
   Props
 } from '../ProjectAnalysisStepFromBuildTool';
-import { mockComponent, mockLoggedInUser } from '../../../../helpers/testMocks';
 
 jest.mock('sonar-ui-common/helpers/storage', () => ({
   get: jest.fn().mockReturnValue(
index 17903a15e418a510acf26adb4dd8f9d74e171307..c433053af9524ca36f6815b711cb49f70d859d4b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import Step from '../Step';
 
index a72a95bfcb70e2d5ceab72a6fbbae9defe86c7f6..fa20225b33e9a3e1f02e63726320733bbce74e45 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { change, click, submit, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import TokenStep from '../TokenStep';
 
index c5365be57a911b5d5199a0ed4d5a1631a8aa658d..27198982071928197832271037ba9dbd2cf5cec0 100644 (file)
  */
 import * as React from 'react';
 import { getHostUrl } from 'sonar-ui-common/helpers/urls';
-import JavaMaven from './JavaMaven';
-import JavaGradle from './JavaGradle';
+import { LanguageConfig } from '../../utils';
+import { getProjectKey } from '../ProjectAnalysisStep';
+import ClangGCC from './ClangGCC';
 import DotNet from './DotNet';
+import JavaGradle from './JavaGradle';
+import JavaMaven from './JavaMaven';
 import Msvc from './Msvc';
-import ClangGCC from './ClangGCC';
 import Other from './Other';
-import { LanguageConfig } from '../../utils';
-import { getProjectKey } from '../ProjectAnalysisStep';
 
 interface Props {
   component?: T.Component;
index 3e4e24c6f390c7b9974b7bf6a3cf18a1213f9523..dd77b14d7c2d55500670da908a969387d6c15d05 100644 (file)
  */
 import * as React from 'react';
 import { getHostUrl } from 'sonar-ui-common/helpers/urls';
-import JavaMavenCustom from './Custom/JavaMavenCustom';
-import JavaGradleCustom from './Custom/JavaGradleCustom';
+import { RenderOS, RenderOSProps } from '../LanguageForm';
+import { getProjectKey } from '../ProjectAnalysisStep';
+import { ProjectAnalysisModes } from '../ProjectAnalysisStepFromBuildTool';
+import { AnalysisCommandCommon } from './AnalysisCommandOtherCI';
 import ClangGCCCustom from './Custom/ClangGCCCustom';
+import JavaGradleCustom from './Custom/JavaGradleCustom';
+import JavaMavenCustom from './Custom/JavaMavenCustom';
 import OtherCustom from './Custom/OtherCustom';
 import { AnalysisCommandProps, AnalysisCommandRenderProps } from './utils';
-import { AnalysisCommandCommon } from './AnalysisCommandOtherCI';
-import { getProjectKey } from '../ProjectAnalysisStep';
-import { ProjectAnalysisModes } from '../ProjectAnalysisStepFromBuildTool';
-import { RenderOS, RenderOSProps } from '../LanguageForm';
 
 export function RenderCommandForMaven({
   component,
index 577e9f0eb0c7d1e72005a31aac538b2f8ae92aab..fe8d1328c0afe84fe99af6ee19f6a82e579f5b5a 100644 (file)
  */
 import * as React from 'react';
 import { getHostUrl } from 'sonar-ui-common/helpers/urls';
-import OtherOtherCI from './OtherCI/OtherOtherCI';
-import ClangGCCOtherCI from './OtherCI/ClangGCCOtherCI';
-import { AnalysisCommandProps, AnalysisCommandRenderProps } from './utils';
-import { RenderCommandForGradle, RenderCommandForMaven } from './AnalysisCommandCustom';
-import { getProjectKey } from '../ProjectAnalysisStep';
+import EditTokenModal from '../../analyzeProject/steps/EditTokenModal';
 import { RenderOS, RenderOSProps } from '../LanguageForm';
+import { getProjectKey } from '../ProjectAnalysisStep';
 import { ProjectAnalysisModes } from '../ProjectAnalysisStepFromBuildTool';
-import EditTokenModal from '../../analyzeProject/steps/EditTokenModal';
+import { RenderCommandForGradle, RenderCommandForMaven } from './AnalysisCommandCustom';
+import ClangGCCOtherCI from './OtherCI/ClangGCCOtherCI';
+import OtherOtherCI from './OtherCI/OtherOtherCI';
+import { AnalysisCommandProps, AnalysisCommandRenderProps } from './utils';
 
 export function RenderCommandForClangOrGCC({
   component,
index f0e2b5c17d2d29eaf81ee718d4b41fdd9e226a3a..e9afe60d5d13c3b7d3c8c7f7495762a069db436f 100644 (file)
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getHostUrl } from 'sonar-ui-common/helpers/urls';
-import { JavaMavenTravisSonarCloud } from './TravisSonarCloud/JavaMavenTravisSonarCloud';
+import CodeSnippet from '../../../../components/common/CodeSnippet';
+import { getProjectKey } from '../ProjectAnalysisStep';
+import { ClangGCCTravisSonarCloud } from './TravisSonarCloud/ClangGCCTravisSonarCloud';
 import { JavaGradleTravisSonarCloud } from './TravisSonarCloud/JavaGradleTravisSonarCloud';
+import { JavaMavenTravisSonarCloud } from './TravisSonarCloud/JavaMavenTravisSonarCloud';
 import { OtherTravisSonarCloud } from './TravisSonarCloud/OtherTravisSonarCloud';
-import { ClangGCCTravisSonarCloud } from './TravisSonarCloud/ClangGCCTravisSonarCloud';
-import { getProjectKey } from '../ProjectAnalysisStep';
-import CodeSnippet from '../../../../components/common/CodeSnippet';
 
 interface Props {
   buildType: string | undefined;
index 74b95b5b3e86bdb6d1e7c390cbf7cbdab05d8235..ace09fad32902482ca442de6bcad32961be4f60f 100644 (file)
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import SQScanner from './SQScanner';
-import BuildWrapper from './BuildWrapper';
 import CodeSnippet from '../../../../components/common/CodeSnippet';
 import InstanceMessage from '../../../../components/common/InstanceMessage';
 import { quote } from '../../utils';
+import BuildWrapper from './BuildWrapper';
+import SQScanner from './SQScanner';
 
 export interface Props {
   host: string;
index c73ba8e2dc246966c21c42aeb7bb3b80a6143ed3..e9509b8a2bd49679fc25614db6fc2dd955de939a 100644 (file)
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button, EditButton } from 'sonar-ui-common/components/controls/buttons';
-import { quote } from '../../../utils';
-import SQScanner from '../SQScanner';
-import BuildWrapper from '../BuildWrapper';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import CodeSnippet from '../../../../../components/common/CodeSnippet';
+import { quote } from '../../../utils';
 import { ProjectAnalysisModes } from '../../ProjectAnalysisStepFromBuildTool';
+import BuildWrapper from '../BuildWrapper';
+import SQScanner from '../SQScanner';
 
 export interface Props {
   host: string;
index cd0ce89fde2f5246ad094e92697506ba514bd097..03491dd45a0081a4ce2a1180bf2ac3430b39658e 100644 (file)
@@ -20,9 +20,9 @@
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { JavaCustomProps, RenderCustomContent } from './JavaMavenCustom';
 import CodeSnippet from '../../../../../components/common/CodeSnippet';
 import { ProjectAnalysisModes } from '../../ProjectAnalysisStepFromBuildTool';
+import { JavaCustomProps, RenderCustomContent } from './JavaMavenCustom';
 
 export default function JavaGradleCustom(props: JavaCustomProps) {
   const suffix = props.mode === ProjectAnalysisModes.CI ? '.ci' : '';
index 44546f6e84239840af382e06820cd04d4c2805e6..b64c9b485e99347793a588f1adfede23be965a07 100644 (file)
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button, EditButton } from 'sonar-ui-common/components/controls/buttons';
-import InstanceMessage from '../../../../../components/common/InstanceMessage';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import CodeSnippet from '../../../../../components/common/CodeSnippet';
+import InstanceMessage from '../../../../../components/common/InstanceMessage';
 import { ProjectAnalysisModes } from '../../ProjectAnalysisStepFromBuildTool';
 
 export interface JavaCustomProps {
index d54a1cd1f15a443cf7cce85ef5d21f7e8a61c2cb..aec4567a100f62a231f94b801d2ffb0e044c77fb 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button, EditButton } from 'sonar-ui-common/components/controls/buttons';
-import SQScanner from '../SQScanner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import CodeSnippet from '../../../../../components/common/CodeSnippet';
 import InstanceMessage from '../../../../../components/common/InstanceMessage';
 import { quote } from '../../../utils';
 import { ProjectAnalysisModes } from '../../ProjectAnalysisStepFromBuildTool';
+import SQScanner from '../SQScanner';
 
 export interface Props {
   component: T.Component;
index 37af8eddc4276f0a42f446149a9d3ceafb3bd85b..ba4b8d6d511524c4aa05c5cf68b539f44d40c1d6 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import ClangGCCCustom, { ClangGCCCommon } from '../ClangGCCCustom';
+import * as React from 'react';
 import { ProjectAnalysisModes } from '../../../ProjectAnalysisStepFromBuildTool';
+import ClangGCCCustom, { ClangGCCCommon } from '../ClangGCCCustom';
 
 it('should render correctly', () => {
   expect(
index f86c99772ee2f1385cea05552a6bd5281f1c71b7..6ecfd14c5baa674cb0e266bf44f4d64b2ba78ed7 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { ProjectAnalysisModes } from '../../../ProjectAnalysisStepFromBuildTool';
 import JavaGradleCustom from '../JavaGradleCustom';
 import { RenderCustomContent } from '../JavaMavenCustom';
index 21d987eb0e1d67c9f53d9d3d2e58d6b62f94c7bd..17b2a57b1018fd31ca23bcfb911e37b5c1db8a8b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { ProjectAnalysisModes } from '../../../ProjectAnalysisStepFromBuildTool';
 import JavaMavenCustom, { RenderCustomContent } from '../JavaMavenCustom';
 
index e9768fd08a82a4ef69dc462ddaa280bd99ce8a55..1f9dfb5c1815c592e9614137668809fefd0f063b 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { mockComponent, mockLoggedInUser } from '../../../../../../helpers/testMocks';
 import { ProjectAnalysisModes } from '../../../ProjectAnalysisStepFromBuildTool';
 import OtherCustom from '../OtherCustom';
-import { mockComponent, mockLoggedInUser } from '../../../../../../helpers/testMocks';
 
 it('should render correctly', () => {
   expect(
index aa5643e82bdcf144ff6ca97d33a2c0ef58b3f912..451437059f670b101ba581dc80e502675300de1c 100644 (file)
@@ -20,9 +20,9 @@
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import MSBuildScanner from './MSBuildScanner';
 import CodeSnippet from '../../../../components/common/CodeSnippet';
 import InstanceMessage from '../../../../components/common/InstanceMessage';
+import MSBuildScanner from './MSBuildScanner';
 
 export interface Props {
   host: string;
index 20679baf93f494c82ea03a0092ec00019daceae2..e40f16f377f012e83967c3de13d3d70a5e36f339 100644 (file)
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import MSBuildScanner from './MSBuildScanner';
-import BuildWrapper from './BuildWrapper';
 import CodeSnippet from '../../../../components/common/CodeSnippet';
 import InstanceMessage from '../../../../components/common/InstanceMessage';
+import BuildWrapper from './BuildWrapper';
+import MSBuildScanner from './MSBuildScanner';
 
 interface Props {
   host: string;
index 45483b77d3e0cb2748485ed62a7ef4704a80cd78..a60028d198ca132e47a9e921026eaed1b15393d5 100644 (file)
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import SQScanner from './SQScanner';
 import CodeSnippet from '../../../../components/common/CodeSnippet';
 import InstanceMessage from '../../../../components/common/InstanceMessage';
 import { quote } from '../../utils';
+import SQScanner from './SQScanner';
 
 export interface Props {
   host: string;
index a0d15f1142850119e135d6a4cc644549cd9aff9f..78151a07437fc4e967de87afd447eacbe2783412 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { EditButton } from 'sonar-ui-common/components/controls/buttons';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import CodeSnippet from '../../../../../components/common/CodeSnippet';
 import { quote } from '../../../utils';
-import SQScanner from '../SQScanner';
 import BuildWrapper from '../BuildWrapper';
-import CodeSnippet from '../../../../../components/common/CodeSnippet';
 import { ClangGCCCommon } from '../Custom/ClangGCCCustom';
+import SQScanner from '../SQScanner';
 
 export interface Props {
   host: string;
index 5a1569f0931bbf085816948d7a9ae2cd13d891dd..41d3ae7836bb1c8c6edb5a671ffd93c7b40de3c4 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button, EditButton } from 'sonar-ui-common/components/controls/buttons';
-import SQScanner from '../SQScanner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import CodeSnippet from '../../../../../components/common/CodeSnippet';
 import InstanceMessage from '../../../../../components/common/InstanceMessage';
 import { quote } from '../../../utils';
+import SQScanner from '../SQScanner';
 
 export interface Props {
   component: T.Component;
index ee38c21387c0b9f809082036ae1bd53d376d3154..282177bb94c242328b1405929499b38da99da8a3 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ClangGCCOtherCI from '../ClangGCCOtherCI';
 
 it('should render correctly', () => {
index 09321998252239368c741c0e6c4d9682b4c5e73b..9ef2faedb8f2c9569ccc840a03242806132cb393 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import OtherOtherCI from '../OtherOtherCI';
+import * as React from 'react';
 import { mockComponent, mockLoggedInUser } from '../../../../../../helpers/testMocks';
+import OtherOtherCI from '../OtherOtherCI';
 
 it('should render correctly', () => {
   expect(
index 7a75cdcf90910e0b28ec6fae05df9fc3a7e64d41..79599be78796305e45376d1426187f10831a2c49 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { CommonTravisSonarCloud } from './utils';
 import { getSonarcloudAddonYml, getSonarcloudAddonYmlRender } from '../AnalysisCommandTravis';
 import { Props } from '../ClangGCC';
+import { CommonTravisSonarCloud } from './utils';
 
 export function ClangGCCTravisSonarCloud(props: Props) {
   const command = `${getSonarcloudAddonYml(props.organization)}
index 77ab032e910b6baa6af02ae6960b45ca53431a63..5c1d3b964cf4bdf12ce85d66db941610b271537d 100644 (file)
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import CodeSnippet from '../../../../../components/common/CodeSnippet';
 import {
   getSonarcloudAddonYml,
-  RequirementJavaBuild,
-  getSonarcloudAddonYmlRender
+  getSonarcloudAddonYmlRender,
+  RequirementJavaBuild
 } from '../AnalysisCommandTravis';
 import { Props } from '../JavaGradle';
-import CodeSnippet from '../../../../../components/common/CodeSnippet';
 
 export function JavaGradleTravisSonarCloud(props: Props) {
   const config = `plugins {
index aa15d4145bc71ca9746b25ba5e7c8ad263820ba2..be9ebce10abba4782a174628d007bb5996af8efb 100644 (file)
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Props } from '../JavaMaven';
+import CodeSnippet from '../../../../../components/common/CodeSnippet';
 import {
   getSonarcloudAddonYml,
-  RequirementJavaBuild,
-  getSonarcloudAddonYmlRender
+  getSonarcloudAddonYmlRender,
+  RequirementJavaBuild
 } from '../AnalysisCommandTravis';
-import CodeSnippet from '../../../../../components/common/CodeSnippet';
+import { Props } from '../JavaMaven';
 
 export function JavaMavenTravisSonarCloud(props: Props) {
   const command = `${getSonarcloudAddonYml(props.organization)}
index 0a89214429cf5984f0e3993f9d19f439a2f3dea0..dd887dcd636575c89702a4ecd1ae793a7fbdf057 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { CommonTravisSonarCloud } from './utils';
 import { getSonarcloudAddonYml, getSonarcloudAddonYmlRender } from '../AnalysisCommandTravis';
 import { Props } from '../Other';
+import { CommonTravisSonarCloud } from './utils';
 
 export function OtherTravisSonarCloud(props: Props) {
   const command = `${getSonarcloudAddonYml(props.organization)}
index 2a2094233ed3d571bd6d0b5041eaf7bba20c67c4..8f6417408eaa110ccfb8633cae600b2152062de7 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { ClangGCCTravisSonarCloud } from '../ClangGCCTravisSonarCloud';
 
 it('should render correctly', () => {
index 9d107303906f122f807c071a95a677d294d2348b..47d8c953f8cce53b1ab6c452d53e5d505317b4d6 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { JavaGradleTravisSonarCloud } from '../JavaGradleTravisSonarCloud';
 
 it('should render correctly', () => {
index d41e247c5f90c50c96f90a3c6ab64bab6b050cb2..3d758d0d8fcb1ebb7ae2321fac0b5abc68b14198 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { JavaMavenTravisSonarCloud } from '../JavaMavenTravisSonarCloud';
 
 it('should render correctly', () => {
index 6f8cd9aacc75a5f90b9a4269edf0c8b97446fa35..b8658ceaaa297ab880892b925c3b23f783928d0e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { OtherTravisSonarCloud } from '../OtherTravisSonarCloud';
 
 it('should render correctly', () => {
index 54c953c0510520cd003dcaa30b1c603877902117..9e31caf005be7effe92a5b164eac96b48f9d9f4b 100644 (file)
@@ -20,8 +20,8 @@
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { RequirementOtherBuild } from '../AnalysisCommandTravis';
 import CodeSnippet from '../../../../../components/common/CodeSnippet';
+import { RequirementOtherBuild } from '../AnalysisCommandTravis';
 
 interface CommonTravisSonarCloudProps {
   command: string;
index bf57a1bb502717294e8844b024d57d6c0cd86cfc..f285947912cfda7a9dcf2d08a31be1a2bcc5aaf3 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import AnalysisCommand from '../AnalysisCommand';
 
 jest.mock('../../../../../helpers/system', () => ({
index afeec8bd0ad9234ccb5353961558464969c78072..7bb8e783e4b41bf2e2972fd6797f491d67b803d5 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { mockComponent, mockLoggedInUser } from '../../../../../helpers/testMocks';
+import { ProjectAnalysisModes } from '../../ProjectAnalysisStepFromBuildTool';
 import AnalysisCommandTravis, {
   RenderCommandForClangOrGCC,
   RenderCommandForGradle,
   RenderCommandForMaven,
   RenderCommandForOther
 } from '../AnalysisCommandCustom';
-import { ProjectAnalysisModes } from '../../ProjectAnalysisStepFromBuildTool';
-import { mockComponent, mockLoggedInUser } from '../../../../../helpers/testMocks';
 
 const organization = 'org';
 const token = '123';
index 899e8c345a4630cc34ea30dfb3c1ebb69c0df7ed..474281fadefabeba764b1bacdb6691a4d7cc8214 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { mockComponent, mockLoggedInUser } from '../../../../../helpers/testMocks';
+import { ProjectAnalysisModes } from '../../ProjectAnalysisStepFromBuildTool';
 import AnalysisCommandOtherCI, {
   AnalysisCommandCommon,
   RenderCommandForClangOrGCC,
   RenderCommandForOther
 } from '../AnalysisCommandOtherCI';
-import { ProjectAnalysisModes } from '../../ProjectAnalysisStepFromBuildTool';
-import { mockComponent, mockLoggedInUser } from '../../../../../helpers/testMocks';
 
 const organization = 'org';
 const token = '123';
index ad5f0bad13994ad4c03f40943e417b57a0b56c21..0ad1bf4048922176cd2e77a64ac0b89a110daf9f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import AnalysisCommandTravis, {
   getSonarcloudAddonYml,
   getSonarcloudAddonYmlRender,
index 34f1b26a813c4a4acebfbe4951cb01b83e31b247..d753755141afdcb19a4def7f6f2b38de8b051aeb 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import BuildWrapper from '../BuildWrapper';
 
 it('renders correctly', () => {
index 67ccb52e35eeff4301966028485b07c2f9a927c7..ee8a36ee259b87876513ec227d5a08e30a6569a2 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ClangGCC from '../ClangGCC';
 
 it('renders correctly', () => {
index 9729e6e12b6f11ba82ae69d1931dcd15714bd6b1..c864764bc16eaccb532a77ef1fa0060fd40ef5b9 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import DotNet, { Props } from '../DotNet';
 
 it('DotNet renders correctly', () => {
index c96f861c3b23b119ff99caaca34aacc5a4763b51..f5b6e0fa3f2f58e9efdf3165ff647ea833b94dbf 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import JavaGradle from '../JavaGradle';
 
 it('renders correctly', () => {
index 3db2b9683ffd788931d481a45ddb44210f252281..80dfcb15fdb1dde68211e12c5530581329c9b474 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import JavaMaven from '../JavaMaven';
 
 it('renders correctly', () => {
index af1b2a55c3890677e1de409e8a790bec0cd2952e..b78bb7e09fe8a76598ff4224f6ff563ce7d3cea7 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import MSBuildScanner from '../MSBuildScanner';
 
 it('renders correctly', () => {
index ae87d25704cd7a090f796ec8a05f3114f34c171b..5f5d6eb9e180f8d64eab1ce846ec7bfb1b1df4ab 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Msvc from '../Msvc';
 
 it('renders correctly', () => {
index d73e4dd55454e3bb97a544d431e6b09a8ca7e363..947a3a2abf27f8cfc5b870d71819d9013def4dff 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Other from '../Other';
 
 it('renders correctly', () => {
index d0f2d8ff7ca01932a46d791ccd6f3095c0e27f75..8e9f15bf29f1b9ab9cde5bab9f3ea9ab0f629fbb 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SQScanner from '../SQScanner';
 
 it('renders correctly', () => {
index e537bb80abd13b633faa2734d9fdbb11506f92e9..8d694abc17c49c06c3d2827cbb5ba3e1ea185919 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { Button, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import Modal from 'sonar-ui-common/components/controls/Modal';
 import OnboardingProjectIcon from 'sonar-ui-common/components/icons/OnboardingProjectIcon';
 import OnboardingTeamIcon from 'sonar-ui-common/components/icons/OnboardingTeamIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { Button, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
-import Modal from 'sonar-ui-common/components/controls/Modal';
-import OrganizationsShortList from './OrganizationsShortList';
 import { whenLoggedIn } from '../../../components/hoc/whenLoggedIn';
 import { withUserOrganizations } from '../../../components/hoc/withUserOrganizations';
 import '../styles.css';
+import OrganizationsShortList from './OrganizationsShortList';
 
 export interface Props {
   onClose: VoidFunction;
index 68cbd0559f60d27a7e98368f81faded3cc3bcf92..d0bfa1633b121960fdd8d0dc5f321c2cd11e7a43 100644 (file)
  */
 import * as React from 'react';
 import { connect } from 'react-redux';
-import OnboardingModal from './OnboardingModal';
-import { skipOnboarding } from '../../../store/users';
 import { OnboardingContext } from '../../../app/components/OnboardingContext';
 import { Router } from '../../../components/hoc/withRouter';
+import { skipOnboarding } from '../../../store/users';
+import OnboardingModal from './OnboardingModal';
 
 interface Props {
   router: Router;
index daf264159d74b3f2228c03b71ca8e6e54dc00d78..db80224b57f10452c129a850f6786c3c687576e6 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
+import * as React from 'react';
 import { Link } from 'react-router';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import OrganizationsShortListItem from './OrganizationsShortListItem';
index 21feb94feff14b19f82849e9249a7c4a18c0355c..db4f3c2b4c09ddec0b2687339a17dd2cab2d124d 100644 (file)
@@ -20,7 +20,7 @@
 import * as React from 'react';
 import { ListButton } from 'sonar-ui-common/components/controls/buttons';
 import OrganizationAvatar from '../../../components/common/OrganizationAvatar';
-import { withRouter, Router } from '../../../components/hoc/withRouter';
+import { Router, withRouter } from '../../../components/hoc/withRouter';
 import { getOrganizationUrl } from '../../../helpers/urls';
 
 interface Props {
index 59fd7585b30a4302893b87a35e0f8bfec60115bc..94ce7a434165091af322074d6882add32d10adce 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
-import { OnboardingModal, Props } from '../OnboardingModal';
 import { mockOrganization } from '../../../../helpers/testMocks';
+import { OnboardingModal, Props } from '../OnboardingModal';
 
 it('renders correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index f5f46c188c7e563ae5d11581c7f078a2feb4a501..910973b42abb573032036e18dd7bda43cf86b1b8 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import OrganizationsShortList, { Props } from '../OrganizationsShortList';
+import * as React from 'react';
 import { mockOrganization } from '../../../../helpers/testMocks';
+import OrganizationsShortList, { Props } from '../OrganizationsShortList';
 
 it('should render null with no orgs', () => {
   expect(shallowRender().getElement()).toBe(null);
index ace1cc61a37bd59e5a5f9445edef533ceaa11833..4142ab421dd170415c7deca0560f4d1a8ff91dc3 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
+import { mockOrganization, mockRouter } from '../../../../helpers/testMocks';
 import { OrganizationsShortListItem } from '../OrganizationsShortListItem';
-import { mockRouter, mockOrganization } from '../../../../helpers/testMocks';
 
 it('renders correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 3dc772b71f1b98104d61f5583174865fa5e09958..2228bdb4f618bef996d4d5c1699c0c70f0442c5a 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import UserForm from './components/UserForm';
 
 interface Props {
index f185faf8d6802d5732d66e2dcf3d791d737b3b89..b734309d9c0e43a7aa2596d4bd8723c093bc3d6f 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Query } from './utils';
 
 interface Props {
index 1ff056a5b1cc7af575986ab613ef63f0444e3155..6124bb9f929d3cd60a13da25e0b43bd58cc762d4 100644 (file)
  */
 import * as React from 'react';
 import Helmet from 'react-helmet';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { getIdentityProviders, searchUsers } from '../../api/users';
+import Suggestions from '../../app/components/embed-docs-modal/Suggestions';
+import { Location, Router, withRouter } from '../../components/hoc/withRouter';
 import Header from './Header';
 import Search from './Search';
 import UsersList from './UsersList';
 import { parseQuery, Query, serializeQuery } from './utils';
-import Suggestions from '../../app/components/embed-docs-modal/Suggestions';
-import { getIdentityProviders, searchUsers } from '../../api/users';
-import { withRouter, Location, Router } from '../../components/hoc/withRouter';
 
 interface Props {
   currentUser: { isLoggedIn: boolean; login?: string };
index 5c4c0a40df9df65c982432e47cd27885de3f0594..4ddd17fd074215fd927f621327c7ee239f851e55 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { connect } from 'react-redux';
-import UsersApp from './UsersApp';
 import { areThereCustomOrganizations, getCurrentUser, Store } from '../../store/rootReducer';
+import UsersApp from './UsersApp';
 
 const mapStateToProps = (state: Store) => ({
   currentUser: getCurrentUser(state),
index a8f8ad22cd66a6852a9c3b55df8389635e25d32f..eb6f272d5d18fb5012ccb0da6d20213b73b49819 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import Header from '../Header';
 
index bf2cee17d88c134d755a61105fbf667cf2dbe9bf..8ab6df8fa8a654ff5abad9e993d9b1ec9f8ca490 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable import/order */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { UsersApp } from '../UsersApp';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import { Location } from '../../../components/hoc/withRouter';
+import { UsersApp } from '../UsersApp';
 
 jest.mock('../../../api/users', () => ({
   getIdentityProviders: jest.fn(() =>
index 7004f7e41094ff91bf547340b9248efea51e08f0..6200d7eb2a5f90459f70f27968d0d0cc054c7fc3 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import UsersList from '../UsersList';
 
 const users = [
index a193e71bcceda20d794035291c35c6b6d2de27e2..f77b200b4ab9da366f2081d5b3d7867ac50e3d64 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { deactivateUser } from '../../../api/users';
 
 export interface Props {
index 3de115171607ccf61a301e7d0cf4f7cdd8e400d0..1e4a5c599308b23f243371ae89f3ac5a0f6c1c50 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { find, without } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import Modal from 'sonar-ui-common/components/controls/Modal';
 import SelectList, {
   SelectListFilter,
   SelectListSearchParams
 } from 'sonar-ui-common/components/controls/SelectList';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getUserGroups, UserGroup } from '../../../api/users';
 import { addUserToGroup, removeUserFromGroup } from '../../../api/user_groups';
 
index 516d3102972ab52b04313ede20cfe278b609a12a..c0069ce4b4329a291572f308e1f7f96c9bff88f3 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { parseError } from 'sonar-ui-common/helpers/request';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { parseError } from 'sonar-ui-common/helpers/request';
 import { changePassword } from '../../../api/users';
 import addGlobalSuccessMessage from '../../../app/utils/addGlobalSuccessMessage';
 import throwGlobalError from '../../../app/utils/throwGlobalError';
index 9d5041ca9579a81b690edd43644eceec071299e9..c4589f02c8786fd967be4d2a8db78b98c3b0de38 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { generateToken, getTokens } from '../../../api/user-tokens';
 import TokensFormItem, { TokenDeleteConfirmation } from './TokensFormItem';
 import TokensFormNewToken from './TokensFormNewToken';
-import { getTokens, generateToken } from '../../../api/user-tokens';
 
 interface Props {
   deleteConfirmation: TokenDeleteConfirmation;
index 52ce2002b0bf21b6e20461b18f65e02bde593636..e4f2fb6fffa6d8174a6b4e358065637e52a65f0f 100644 (file)
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { limitComponentName } from 'sonar-ui-common/helpers/path';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { limitComponentName } from 'sonar-ui-common/helpers/path';
+import { revokeToken } from '../../../api/user-tokens';
 import DateFormatter from '../../../components/intl/DateFormatter';
 import DateFromNowHourPrecision from '../../../components/intl/DateFromNowHourPrecision';
-import { revokeToken } from '../../../api/user-tokens';
 
 export type TokenDeleteConfirmation = 'inline' | 'modal';
 
index d7d0023c3f42f07d02f0bbd690faf0a1f49239a2..4018f083b2727d9b0241bd132a64abaf4766bfa8 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import TokensForm from './TokensForm';
 
 interface Props {
index af8e72a9a454ad4e4c0e8a2d673571a86ffa11a8..359303bf8f9dfd12e1154354fafca6e0a2f97ff7 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import ClipboardButton from 'sonar-ui-common/components/controls/ClipboardButton';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   token: { name: string; token: string };
index d42480142146bbde46ce53cdb872bf66cc555ac9..4f2a93793e07aa16c4abd36ffd76790ae4795e83 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ActionsDropdown, {
-  ActionsDropdownItem,
-  ActionsDropdownDivider
+  ActionsDropdownDivider,
+  ActionsDropdownItem
 } from 'sonar-ui-common/components/controls/ActionsDropdown';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { isUserActive } from '../../../helpers/users';
 import DeactivateForm from './DeactivateForm';
 import PasswordForm from './PasswordForm';
 import UserForm from './UserForm';
-import { isUserActive } from '../../../helpers/users';
 
 interface Props {
   isCurrentUser: boolean;
index 584095c3779e855f650ee9773fa0fa868fc61dba..dd7a279935297bd6ec96a3c80caa7d6603501fa3 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { uniq } from 'lodash';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { parseError } from 'sonar-ui-common/helpers/request';
+import * as React from 'react';
 import { Button, ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
-import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
-import UserScmAccountInput from './UserScmAccountInput';
-import throwGlobalError from '../../../app/utils/throwGlobalError';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { parseError } from 'sonar-ui-common/helpers/request';
 import { createUser, updateUser } from '../../../api/users';
+import throwGlobalError from '../../../app/utils/throwGlobalError';
+import UserScmAccountInput from './UserScmAccountInput';
 
 export interface Props {
   onClose: () => void;
index 98a76b0459f424e266583320be69a3b295fcc155..bd08cd9cf19cdc53e92e3d14d45a4d789c6b8ffd 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { ButtonIcon } from 'sonar-ui-common/components/controls/buttons';
 import BulletListIcon from 'sonar-ui-common/components/icons/BulletListIcon';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { ButtonIcon } from 'sonar-ui-common/components/controls/buttons';
 import GroupsForm from './GroupsForm';
 
 interface Props {
index 6b5f9477ca267597a0bb64260936645d847de6f6..11e10978bc1b58a9b8093d898266953028970802 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { ButtonIcon } from 'sonar-ui-common/components/controls/buttons';
 import BulletListIcon from 'sonar-ui-common/components/icons/BulletListIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { ButtonIcon } from 'sonar-ui-common/components/controls/buttons';
+import DateFromNowHourPrecision from '../../../components/intl/DateFromNowHourPrecision';
+import Avatar from '../../../components/ui/Avatar';
 import TokensFormModal from './TokensFormModal';
 import UserActions from './UserActions';
 import UserGroups from './UserGroups';
 import UserListItemIdentity from './UserListItemIdentity';
 import UserScmAccounts from './UserScmAccounts';
-import Avatar from '../../../components/ui/Avatar';
-import DateFromNowHourPrecision from '../../../components/intl/DateFromNowHourPrecision';
 
 interface Props {
   identityProvider?: T.IdentityProvider;
index 0f3a3778785f50d1a1cd24d088a76a33824e915c..69c4bde7ad72bba71c6977d5de4ba71765e65d20 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { debounce } from 'lodash';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import Select from 'sonar-ui-common/components/controls/Select';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import Avatar from '../../../components/ui/Avatar';
 
 interface Option {
index 61c721b4ea86986d01ee53d6dd8a56b39afe3ba6..ca1ce2f4bd879ccefc723b330f60a56f86096ec6 100644 (file)
 import { shallow } from 'enzyme';
 import * as React from 'react';
 import SelectList, { SelectListFilter } from 'sonar-ui-common/components/controls/SelectList';
-import { waitAndUpdate, click } from 'sonar-ui-common/helpers/testUtils';
-import GroupsForm from '../GroupsForm';
+import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import { getUserGroups } from '../../../../api/users';
 import { addUserToGroup, removeUserFromGroup } from '../../../../api/user_groups';
 import { mockUser } from '../../../../helpers/testMocks';
+import GroupsForm from '../GroupsForm';
 
 const user = mockUser();
 
index f0f13f51d0f95035295a2316f53fee3db9d8d14b..8fed4d531dfa8e31158d6b47e2f32e158a5a2779 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import PasswordForm from '../PasswordForm';
+import * as React from 'react';
 import { mockUser } from '../../../../helpers/testMocks';
+import PasswordForm from '../PasswordForm';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 1d9ce0340a005ac53192ca264c998243864bfcf1..089663427de52653d4ae4c75af590daf52c22664 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { change, submit, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import TokensForm from '../TokensForm';
 import { generateToken, getTokens } from '../../../../api/user-tokens';
+import TokensForm from '../TokensForm';
 
 jest.mock('../../../../api/user-tokens', () => ({
   generateToken: jest.fn().mockResolvedValue({
index f655299909ef1977571ba9e44bed51dbf312e8f4..fc69fcd05cd4c55c27d14000acccd9aedd577694 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import TokensFormItem from '../TokensFormItem';
 import { revokeToken } from '../../../../api/user-tokens';
+import TokensFormItem from '../TokensFormItem';
 
 jest.mock('../../../../components/intl/DateFormatter');
 jest.mock('../../../../components/intl/DateFromNow');
index 235a2a8865416ba18fdbd57ea0791565b8841c25..9954bc23e2a6aaad9c20b9b865232bd218fda9d0 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import TokensFormModal from '../TokensFormModal';
+import * as React from 'react';
 import { mockUser } from '../../../../helpers/testMocks';
+import TokensFormModal from '../TokensFormModal';
 
 it('should render correctly', () => {
   expect(
index 58d7916807539faec3df09d6638beda6d8b2109b..8e189602f3a085ccfa2ffc5cf58213560086a202 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import UserActions from '../UserActions';
 
index 70ebba9aedcfced6a89f31423e24c9dcaa4614af..db97e0cd3b9891140dd4333600c439a6aafdd6ce 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { waitAndUpdate, submit } from 'sonar-ui-common/helpers/testUtils';
-import UserForm from '../UserForm';
-import { mockUser } from '../../../../helpers/testMocks';
+import * as React from 'react';
+import { submit, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import { createUser, updateUser } from '../../../../api/users';
+import { mockUser } from '../../../../helpers/testMocks';
+import UserForm from '../UserForm';
 
 jest.mock('../../../../api/users', () => ({
   createUser: jest.fn().mockResolvedValue({}),
index b1302d28e3f3962ab02e7467ed58161f3c7dd320..6867c595f721c97fd5a8b41a79bcf919a64e52f6 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import UserGroups from '../UserGroups';
 
index 49c8d7b6f9f8e649135cac65e81e65768b8ed1e9..c19f61257db76d95d6e88223514d6a1d2d5e2ec3 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import UserListItem from '../UserListItem';
 
index 126e2aebac5041ab1b3ae1c0c62eb633414fc3ef..265db7b165ce7cf98b06f69a50cd638cd758a30b 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import UserListItemIdentity, { Props, ExternalProvider } from '../UserListItemIdentity';
+import * as React from 'react';
+import UserListItemIdentity, { ExternalProvider, Props } from '../UserListItemIdentity';
 
 describe('#UserListItemIdentity', () => {
   it('should render correctly', () => {
index 726948dbd10e108600c2307a8dcd12e8f08e0166..08f2b8f24f315e0df94c16cc03b9bd2e32fc091f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import UsersSelectSearch, {
   UsersSelectSearchOption,
   UsersSelectSearchValue
index daa069cbe3ad6dd29e7b5a635db856aa5e2c75a2..a625db9a2ec327a7b96f36562f5c27549766adf9 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as classNames from 'classnames';
 import * as React from 'react';
-import LinkIcon from 'sonar-ui-common/components/icons/LinkIcon';
 import { Link } from 'react-router';
-import * as classNames from 'classnames';
+import LinkIcon from 'sonar-ui-common/components/icons/LinkIcon';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import Params from './Params';
-import ResponseExample from './ResponseExample';
+import { getActionKey, serializeQuery } from '../utils';
 import ActionChangelog from './ActionChangelog';
 import DeprecatedBadge from './DeprecatedBadge';
 import InternalBadge from './InternalBadge';
-import { getActionKey, serializeQuery } from '../utils';
+import Params from './Params';
+import ResponseExample from './ResponseExample';
 
 interface Props {
   action: T.WebApi.Action;
index a26c19a8665c4df1813ab28d08914d75178b0336..1bffacec7c086022f4cc513811aecc9883195d2d 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { parseVersion } from '../utils';
 
 export default function DeprecatedBadge({ since }: { since?: string }) {
index d7e4ab6ee4d24fc23fe68d372352f024357a6b2c..dad4d65ed7dd5531f7844800e1a02a1e501455f9 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { actionsFilter, getActionKey, Query } from '../utils';
 import Action from './Action';
 import DeprecatedBadge from './DeprecatedBadge';
 import InternalBadge from './InternalBadge';
-import { getActionKey, actionsFilter, Query } from '../utils';
 
 interface Props {
   domain: T.WebApi.Domain;
index 4862967a648ffd6abe1bc5f955f8e8300a14cce4..0259922365d06cd95589bc495ab9682cbae3b6ae 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 export default function InternalBadge() {
   return (
index d21148ea2ea3d622ddcbc6422217de52967a989a..1aaffdb3136f9626db2b49b820846a094e1d1358 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as classNames from 'classnames';
 import * as React from 'react';
 import { Link } from 'react-router';
-import * as classNames from 'classnames';
+import { actionsFilter, isDomainPathActive, Query, serializeQuery } from '../utils';
 import DeprecatedBadge from './DeprecatedBadge';
 import InternalBadge from './InternalBadge';
-import { isDomainPathActive, actionsFilter, Query, serializeQuery } from '../utils';
 
 interface Props {
   domains: T.WebApi.Domain[];
index a53e8f20995442abb21e17a2533877f8b3bcb4e7..7619698b7e6f0ce58d56ed1827e53c3c67566a6f 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import InternalBadge from './InternalBadge';
 import DeprecatedBadge from './DeprecatedBadge';
+import InternalBadge from './InternalBadge';
 
 interface Props {
   params: T.WebApi.Param[];
index d05e016b7e63d1da52ad3645ecbb1ec3cdfea8a1..03c294ce16afd9c92d0166fdf0d241483b80bb03 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Query } from '../utils';
 
 interface Props {
index 23016e3a61755722ff08ff0d049e4ecd2f2d1a8f..0e6e62202e9c2092486003764311eba6f55c28e1 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { maxBy } from 'lodash';
 import * as React from 'react';
 import Helmet from 'react-helmet';
-import { maxBy } from 'lodash';
 import { Link, withRouter, WithRouterProps } from 'react-router';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { addSideBarClass, removeSideBarClass } from 'sonar-ui-common/helpers/pages';
 import { scrollToElement } from 'sonar-ui-common/helpers/scrolling';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import Domain from './Domain';
-import Menu from './Menu';
-import Search from './Search';
+import { fetchWebApi } from '../../../api/web-api';
 import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget';
-import ScreenPositionHelper from '../../../components/common/ScreenPositionHelper';
 import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
-import { fetchWebApi } from '../../../api/web-api';
+import ScreenPositionHelper from '../../../components/common/ScreenPositionHelper';
+import '../styles/web-api.css';
 import {
   getActionKey,
   isDomainPathActive,
-  Query,
-  serializeQuery,
   parseQuery,
-  parseVersion
+  parseVersion,
+  Query,
+  serializeQuery
 } from '../utils';
-import '../styles/web-api.css';
+import Domain from './Domain';
+import Menu from './Menu';
+import Search from './Search';
 
 type Props = WithRouterProps;
 
index 22b558944393ffe3ace97dbc49a0e29192e7dd68..b4faa9eda6f33265bad6f8266d62fc8e19322c2a 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Action from '../Action';
 
 const ACTION = {
index c84d0b40cc310b0ffd86c922b16217d807f19c79..2e6c21fcd62510ac2002fa6e692e099b53986aa3 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ActionChangelog from '../ActionChangelog';
 
 it('should render', () => {
index 5440bb2dfa44f522f3f98371144f5315ee9a3568..7451433191f9b7a6c6d91b4b0b050966af84a369 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import DeprecatedBadge from '../DeprecatedBadge';
 
 it('should render with version', () => {
index df86df75baadfaa1d5f9112ede172cba449a768f..f1a7d3ad2bced764310a3cddcd6998748aebabaa 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Domain from '../Domain';
 
 const ACTION = {
index c4b9059c412f6633e7939e6e06a1186e61035201..daf0ab476213185a3156f83f1ced1412a68e2f63 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Menu from '../Menu';
 
 const ACTION: T.WebApi.Action = {
index 4f2c64c8a81b6844c0c7b0dd879b8693f5c28761..7b0696c2263f9169274d19186186683d005b56c3 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Params from '../Params';
 
 const DEFAULT_PARAM: T.WebApi.Param = {
index 9b4be916510dcf3becddc799e55a1af6d3fd06f0..211da16b9d4f37c98bd521a918511858345ee568 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import ResponseExample from '../ResponseExample';
 
 const ACTION = {
index d6ba3a4a5e7839df6a97029c3c2cc067c2b60944..a577c63c5bbb14a4cae539cd5d305f967795f17d 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Search from '../Search';
 
 const PROPS = {
index d08a917bdbb885ce19363cf75cb4e9f1efb66e3e..d7f4cfe0b531af5b7ec01f58fb8af7d0daec0faf 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { addSideBarClass, removeSideBarClass } from 'sonar-ui-common/helpers/pages';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { WebApiApp } from '../WebApiApp';
 import { fetchWebApi } from '../../../../api/web-api';
 import { mockLocation, mockRouter } from '../../../../helpers/testMocks';
+import { WebApiApp } from '../WebApiApp';
 
 jest.mock('../../../../api/web-api', () => ({
   fetchWebApi: jest.fn().mockResolvedValue([
index 1640e4832fdab1ef608ff023f3e57fcd6be41b33..f15f14c577de3fb61ce4c44095b60f8219dacec3 100644 (file)
@@ -20,9 +20,9 @@
 import { memoize } from 'lodash';
 import {
   cleanQuery,
-  serializeString,
   parseAsOptionalBoolean,
-  parseAsString
+  parseAsString,
+  serializeString
 } from 'sonar-ui-common/helpers/query';
 
 export interface Query {
index 4c4b417fc6ee691907cbc4b35fbff4c998e5f76d..6ca1793da5535ed52f4f70f1a397da7480deb421 100644 (file)
 import * as React from 'react';
 import { Helmet } from 'react-helmet';
 import { translate } from 'sonar-ui-common/helpers/l10n';
+import { createWebhook, deleteWebhook, searchWebhooks, updateWebhook } from '../../../api/webhooks';
+import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
 import PageActions from './PageActions';
 import PageHeader from './PageHeader';
 import WebhooksList from './WebhooksList';
-import { createWebhook, deleteWebhook, searchWebhooks, updateWebhook } from '../../../api/webhooks';
-import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
 
 interface Props {
   component?: T.LightComponent;
index cf9162e19db7bb752b466b28692591186e843f14..93174e9e1cee4382bafbb2c612c5b8b8bd94208c 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { isWebUri } from 'valid-url';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import InputValidationField from 'sonar-ui-common/components/controls/InputValidationField';
 import ValidationModal from 'sonar-ui-common/components/controls/ValidationModal';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { isWebUri } from 'valid-url';
 
 interface Props {
   onClose: () => void;
index 6a5cd81de1c85a73cfce9896664fb7030393726f..9bcc12775c8c5c586f7e0aa6867244da20c18f42 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { SubmitButton, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   onClose: () => void;
index d069f8b09552af96482a866071674088797804fc..3d53f59afcd3ef05d21349c18a6ec6846a740457 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translateWithParameters, translate } from 'sonar-ui-common/helpers/l10n';
 import { ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import Modal from 'sonar-ui-common/components/controls/Modal';
 import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
-import DeliveryAccordion from './DeliveryAccordion';
+import Modal from 'sonar-ui-common/components/controls/Modal';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { searchDeliveries } from '../../../api/webhooks';
+import DeliveryAccordion from './DeliveryAccordion';
 
 interface Props {
   onClose: () => void;
index 02a436d216d5c36779f6ea3a33fc39d307e829bd..c3aa27799f9743c61fe89990e09050006ebc5ee7 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import BoxedGroupAccordion from 'sonar-ui-common/components/controls/BoxedGroupAccordion';
 import AlertErrorIcon from 'sonar-ui-common/components/icons/AlertErrorIcon';
 import AlertSuccessIcon from 'sonar-ui-common/components/icons/AlertSuccessIcon';
-import BoxedGroupAccordion from 'sonar-ui-common/components/controls/BoxedGroupAccordion';
-import DeliveryItem from './DeliveryItem';
-import DateTimeFormatter from '../../../components/intl/DateTimeFormatter';
 import { getDelivery } from '../../../api/webhooks';
+import DateTimeFormatter from '../../../components/intl/DateTimeFormatter';
+import DeliveryItem from './DeliveryItem';
 
 interface Props {
   delivery: T.WebhookDelivery;
index 9e17ef0ea9617aa75131f52f913d597c61c51178..535cf7d14c23491b1b12d8d76f59d8a4d4186b99 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translateWithParameters, translate } from 'sonar-ui-common/helpers/l10n';
-import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import CodeSnippet from '../../../components/common/CodeSnippet';
 
 interface Props {
index 01ffaf67470e2b56f0560c7e1624517114a02714..ee3f5bd01252779c0ab73fcdcdf58261c4acafc4 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translateWithParameters, translate } from 'sonar-ui-common/helpers/l10n';
 import { ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
-import DeliveryItem from './DeliveryItem';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { getDelivery } from '../../../api/webhooks';
+import DeliveryItem from './DeliveryItem';
 
 interface Props {
   delivery: T.WebhookDelivery;
index 5b7829221cf8f528cf102fe63066765a25c5f4b8..c31906261f3187078874a6d18d5f89eb3f3dd1c4 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import CreateWebhookForm from './CreateWebhookForm';
 
 interface Props {
index 490b82ba7fd06bb7f8b46dea094ee6642d4eaab1..c7e546a1141648aa449d15bab077497cc5e695c6 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import ActionsDropdown, {
-  ActionsDropdownItem,
-  ActionsDropdownDivider
+  ActionsDropdownDivider,
+  ActionsDropdownItem
 } from 'sonar-ui-common/components/controls/ActionsDropdown';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import CreateWebhookForm from './CreateWebhookForm';
 import DeleteWebhookForm from './DeleteWebhookForm';
 import DeliveriesForm from './DeliveriesForm';
index 18966485040d179671c7064f2857c6903ea9f6ab..43bc5928140875e22adcbde083b3030c9714f6e3 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import WebhookItemLatestDelivery from './WebhookItemLatestDelivery';
 import WebhookActions from './WebhookActions';
+import WebhookItemLatestDelivery from './WebhookItemLatestDelivery';
 
 interface Props {
   onDelete: (webhook: string) => Promise<void>;
index 67b6325def3b35a49c96e8bc24be93a14ae5006e..de1dfbc7841df3efae37165ac564fd53a0e60d7f 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { ButtonIcon } from 'sonar-ui-common/components/controls/buttons';
 import AlertErrorIcon from 'sonar-ui-common/components/icons/AlertErrorIcon';
 import AlertSuccessIcon from 'sonar-ui-common/components/icons/AlertSuccessIcon';
 import BulletListIcon from 'sonar-ui-common/components/icons/BulletListIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { ButtonIcon } from 'sonar-ui-common/components/controls/buttons';
-import LatestDeliveryForm from './LatestDeliveryForm';
 import DateTimeFormatter from '../../../components/intl/DateTimeFormatter';
+import LatestDeliveryForm from './LatestDeliveryForm';
 
 interface Props {
   webhook: T.Webhook;
index 5da536c0c00686a0452d89c164491c9d13f9fef1..fcc31533c0db2dbc86fe9c10e2613f0ad3ba62d7 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import WebhookItem from './WebhookItem';
 
index 570a880ebe9bf45c7010a8ffeb25f901ce6884d9..a5ed4b852e0d27923587a019649a052d4d3913c1 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import App from '../App';
+import * as React from 'react';
 import {
   createWebhook,
   deleteWebhook,
   searchWebhooks,
   updateWebhook
 } from '../../../../api/webhooks';
+import App from '../App';
 
 jest.mock('../../../../api/webhooks', () => ({
   createWebhook: jest.fn(() =>
index 19a7d0a5f0cc500593afb4473040b5e623567325..fc126b6bf21c5e1232a0c4077ee382685d063be7 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import CreateWebhookForm from '../CreateWebhookForm';
 
 const webhookWithoutSecret = { key: '1', name: 'foo', url: 'http://foo.bar' };
index 971beaa4a7de4ce567c3927280a39b807f700d04..5d5d459aad52140e0abd6d17d7d17792a7345ac8 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import DeliveriesForm from '../DeliveriesForm';
+import * as React from 'react';
 import { searchDeliveries } from '../../../../api/webhooks';
+import DeliveriesForm from '../DeliveriesForm';
 
 jest.mock('../../../../api/webhooks', () => ({
   searchDeliveries: jest.fn(() =>
index cab6dc959f95d571ae3ce3b480a7b0330921eac1..384c1d20d9a7e75fe2586f0dba442f75785e664f 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import DeliveryAccordion from '../DeliveryAccordion';
+import * as React from 'react';
 import { getDelivery } from '../../../../api/webhooks';
+import DeliveryAccordion from '../DeliveryAccordion';
 
 jest.mock('../../../../api/webhooks', () => ({
   getDelivery: jest.fn(() =>
index 18e879f30e410cd012d071e0406a85208c679df7..6c533c1068db38842407baa26129400d43d61d47 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import DeliveryItem from '../DeliveryItem';
 
 const delivery = {
index fedb2de0a6f9895155bce354888391224bf5a2fd..11f7bc7f849ef99e15ff20fc61df9cea27d8eb5e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import LatestDeliveryForm from '../LatestDeliveryForm';
+import * as React from 'react';
 import { getDelivery } from '../../../../api/webhooks';
+import LatestDeliveryForm from '../LatestDeliveryForm';
 
 jest.mock('../../../../api/webhooks', () => ({
   getDelivery: jest.fn(() =>
index 8174f6b49cfeca5b60fb6d75798cc5243b543eed..a2a8033ad9ee496d8780b1ee7e0509014e3c7079 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import PageActions from '../PageActions';
 
index efb52ab45a1e4420eb5a253e8b62ff3517056f8f..5204f3ae1812ba8157addfc9f7b61fe7fc432494 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import PageHeader from '../PageHeader';
 
 it('should render correctly', () => {
index 3262d61fc6d4215449f0323ebfe45b0f3b27abf0..712e656220a13497540b43feaf9ff234a27525ef 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import WebhookActions from '../WebhookActions';
 
index 0a02aba55bd0d968cc3adf0718d740923d6e91af..6b5519ea0895c5972ad03dba56d4851312364d9a 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import WebhookItem from '../WebhookItem';
 
 const webhook = {
index 580944a4a1b50bd8c9a64668db0ce0e5f644c368..846071cf54e70bf6c9f3245eafdc2bf49b0476d2 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import WebhookItemLatestDelivery from '../WebhookItemLatestDelivery';
 
index e50a71115f93983802cba517a241680732351963..22bcf703799115618101903ccd4f1634cc1046ef 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import WebhooksList from '../WebhooksList';
 
 const webhooks = [
index a2c704e0a7b7cbe884a80164705c81621e10d84a..381cbde0128ed47f1f582eded0ffeadfe159c75c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
 import { intersection, uniqBy } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import SourceViewerCode from './SourceViewerCode';
-import SourceViewerHeader from './SourceViewerHeader';
-import SourceViewerHeaderSlim from './SourceViewerHeaderSlim';
-import { SourceViewerContext } from './SourceViewerContext';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import {
+  getComponentData,
+  getComponentForSourceViewer,
+  getDuplications,
+  getSources
+} from '../../api/components';
+import { getBranchLikeQuery, isSameBranchLike } from '../../helpers/branches';
+import { WorkspaceContext } from '../workspace/context';
 import DuplicationPopup from './components/DuplicationPopup';
-import defaultLoadIssues from './helpers/loadIssues';
-import getCoverageStatus from './helpers/getCoverageStatus';
 import {
   filterDuplicationBlocksByLine,
   getDuplicationBlocksForIndex,
   isDuplicationBlockInRemovedComponent
 } from './helpers/duplications';
+import getCoverageStatus from './helpers/getCoverageStatus';
 import {
   duplicationsByLine,
   issuesByLine,
   locationsByLine,
   symbolsByLine
 } from './helpers/indexing';
-import {
-  getComponentData,
-  getComponentForSourceViewer,
-  getDuplications,
-  getSources
-} from '../../api/components';
-import { isSameBranchLike, getBranchLikeQuery } from '../../helpers/branches';
-import { WorkspaceContext } from '../workspace/context';
+import defaultLoadIssues from './helpers/loadIssues';
+import SourceViewerCode from './SourceViewerCode';
+import { SourceViewerContext } from './SourceViewerContext';
+import SourceViewerHeader from './SourceViewerHeader';
+import SourceViewerHeaderSlim from './SourceViewerHeaderSlim';
 import './styles.css';
 
 // TODO react-virtualized
index cea4dea906f562e94da447ac718b5f13ad40bc9a..075a44be4740e81fc6f7987b38e2cf7d1be0286a 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import Line from './components/Line';
 import { getSecondaryIssueLocationsForLine } from './helpers/issueLocations';
 import {
-  optimizeSelectedIssue,
+  optimizeHighlightedSymbols,
   optimizeLocationMessage,
-  optimizeHighlightedSymbols
+  optimizeSelectedIssue
 } from './helpers/lines';
 
 const EMPTY_ARRAY: any[] = [];
index bc0f2abe4878ac1256403e3a0d321724d955bad5..8e6d57513c5bd7e23ec48a9915c52f33f0d73da0 100644 (file)
 import { stringify } from 'querystring';
 import * as React from 'react';
 import { Link } from 'react-router';
+import { ButtonIcon } from 'sonar-ui-common/components/controls/buttons';
+import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
 import ListIcon from 'sonar-ui-common/components/icons/ListIcon';
 import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
-import { collapsedDirFromPath, fileFromPath } from 'sonar-ui-common/helpers/path';
+import { PopupPlacement } from 'sonar-ui-common/components/ui/popups';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
+import { collapsedDirFromPath, fileFromPath } from 'sonar-ui-common/helpers/path';
 import { omitNil } from 'sonar-ui-common/helpers/request';
 import { getBaseUrl, getPathUrlAsString } from 'sonar-ui-common/helpers/urls';
-import { ButtonIcon } from 'sonar-ui-common/components/controls/buttons';
-import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
-import { PopupPlacement } from 'sonar-ui-common/components/ui/popups';
-import MeasuresOverlay from './components/MeasuresOverlay';
-import Favorite from '../controls/Favorite';
-import { WorkspaceContextShape } from '../workspace/context';
 import { getBranchLikeQuery, isMainBranch } from '../../helpers/branches';
 import { getBranchLikeUrl, getCodeUrl, getComponentIssuesUrl } from '../../helpers/urls';
+import Favorite from '../controls/Favorite';
+import { WorkspaceContextShape } from '../workspace/context';
+import MeasuresOverlay from './components/MeasuresOverlay';
 
 interface Props {
   branchLike: T.BranchLike | undefined;
index 6668ac19c863c6e63e775ad4031d89131255f970..613df85a99864fcd124bbf9011455c01e0c5d580 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { Link } from 'react-router';
+import { ButtonIcon } from 'sonar-ui-common/components/controls/buttons';
 import ExpandSnippetIcon from 'sonar-ui-common/components/icons/ExpandSnippetIcon';
 import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { collapsedDirFromPath, fileFromPath } from 'sonar-ui-common/helpers/path';
 import { getPathUrlAsString } from 'sonar-ui-common/helpers/urls';
-import { ButtonIcon } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import Favorite from '../controls/Favorite';
-import { isMainBranch, getBranchLikeQuery } from '../../helpers/branches';
+import { getBranchLikeQuery, isMainBranch } from '../../helpers/branches';
 import { getBranchLikeUrl, getComponentIssuesUrl } from '../../helpers/urls';
+import Favorite from '../controls/Favorite';
 import './SourceViewerHeaderSlim.css';
 
 export interface Props {
index 0d494a24e239bb154a53b72377d0b95d423ce22a..3a78dea570a234bac8749f20010de6c92de4998c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { mockIssue, mockMainBranch, mockSourceViewerFile } from '../../../helpers/testMocks';
 import SourceViewerHeader from '../SourceViewerHeader';
-import { mockMainBranch, mockSourceViewerFile, mockIssue } from '../../../helpers/testMocks';
 
 it('should render correctly for a regular file', () => {
   expect(shallowRender()).toMatchSnapshot();
index 2bc8557ec28d301061c9eb6ec8245e3ebf036134..4adb4391d1c8e62195bb4ab9ebfa68e31abc545a 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import SourceViewerHeaderSlim, { Props } from '../SourceViewerHeaderSlim';
+import * as React from 'react';
 import { mockMainBranch, mockSourceViewerFile } from '../../../helpers/testMocks';
+import SourceViewerHeaderSlim, { Props } from '../SourceViewerHeaderSlim';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 9df54b8899ba81caa1c737363874415d5a74b7f2..53b28bab2a8bf5a9f19787f5c454f7b712d66baf 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { groupBy, sortBy } from 'lodash';
+import * as React from 'react';
 import { Link } from 'react-router';
+import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
 import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
-import { collapsedDirFromPath, fileFromPath } from 'sonar-ui-common/helpers/path';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
 import { PopupPlacement } from 'sonar-ui-common/components/ui/popups';
-import { WorkspaceContextShape } from '../../workspace/context';
-import { isShortLivingBranch, isPullRequest } from '../../../helpers/branches';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { collapsedDirFromPath, fileFromPath } from 'sonar-ui-common/helpers/path';
+import { isPullRequest, isShortLivingBranch } from '../../../helpers/branches';
 import { getProjectUrl } from '../../../helpers/urls';
+import { WorkspaceContextShape } from '../../workspace/context';
 
 interface Props {
   blocks: T.DuplicationBlock[];
index 9dfa67cf3a0062708bf500854302d65ec7a2763a..cc86553eeb582004ea6f426f7851b5a954fca1c7 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
 import { times } from 'lodash';
-import LineNumber from './LineNumber';
-import LineSCM from './LineSCM';
+import * as React from 'react';
+import './Line.css';
+import LineCode from './LineCode';
 import LineCoverage from './LineCoverage';
-import LineDuplications from './LineDuplications';
 import LineDuplicationBlock from './LineDuplicationBlock';
+import LineDuplications from './LineDuplications';
 import LineIssuesIndicator from './LineIssuesIndicator';
-import LineCode from './LineCode';
-import './Line.css';
+import LineNumber from './LineNumber';
+import LineSCM from './LineSCM';
 
 interface Props {
   branchLike: T.BranchLike | undefined;
index ca5118377b916b892e32ecbd939968a3d7ae74b3..14ea6fc4f7811368700787172811c3e4b2ef56e3 100644 (file)
@@ -17,9 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import LineIssuesList from './LineIssuesList';
+import * as React from 'react';
 import LocationIndex from '../../common/LocationIndex';
 import LocationMessage from '../../common/LocationMessage';
 import {
@@ -28,6 +27,7 @@ import {
   splitByTokens,
   Token
 } from '../helpers/highlight';
+import LineIssuesList from './LineIssuesList';
 
 interface Props {
   branchLike: T.BranchLike | undefined;
index 4c9e4312bb716f5b208566a11ef867316f64ed41..4f831ecbd36035b87defc3ef47ca02561504b972 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   line: T.SourceLine;
index 969c76cc5c02cbd618dd89944879faaf916a82e7..a16b5704f5d0962ddd864c8939f263a099de6124 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import * as React from 'react';
 import Toggler from 'sonar-ui-common/components/controls/Toggler';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   duplicated: boolean;
index ab3e09de58e80dbcbdb488d5d6362d84f0e6dd0c..b25b6155f6d19fa86c63d6b8fe8aa6d3581f88d3 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   line: T.SourceLine;
index 85f409a073bab12f1f99a13dba85153f26f4da0c..18673a97837c27184e0a357269e02b45e6af38d4 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import IssueIcon from 'sonar-ui-common/components/icons/IssueIcon';
 import { sortByType } from '../../../helpers/issues';
 
index 4c48e6181b76fe2d13a54a5b1169e1420cc8dd82..4cee80b9450e5f64e202f6db6f29aea4e6a3279c 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import { Link } from 'react-router';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
 import { PopupPlacement } from 'sonar-ui-common/components/ui/popups';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getCodeUrl } from '../../../helpers/urls';
 import { SourceViewerContext } from '../SourceViewerContext';
 
index 60198f81617137565b55d358729314f84ae6b636..29fad7f53544499b25649ad8cd35aecdbca74711 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { groupBy, keyBy, sortBy } from 'lodash';
 import * as React from 'react';
 import { Link } from 'react-router';
-import { keyBy, sortBy, groupBy } from 'lodash';
+import { ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import Modal from 'sonar-ui-common/components/controls/Modal';
 import IssueTypeIcon from 'sonar-ui-common/components/icons/IssueTypeIcon';
 import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
 import TagsIcon from 'sonar-ui-common/components/icons/TagsIcon';
-import { translate, getLocalizedMetricName } from 'sonar-ui-common/helpers/l10n';
-import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import { ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
-import Modal from 'sonar-ui-common/components/controls/Modal';
 import DuplicationsRating from 'sonar-ui-common/components/ui/DuplicationsRating';
-import MeasuresOverlayMeasure from './MeasuresOverlayMeasure';
+import { getLocalizedMetricName, translate } from 'sonar-ui-common/helpers/l10n';
+import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import { getFacets } from '../../../api/issues';
 import { getMeasures } from '../../../api/measures';
 import { getAllMetrics } from '../../../api/metrics';
+import { getBranchLikeQuery } from '../../../helpers/branches';
+import { ISSUE_TYPES, SEVERITIES } from '../../../helpers/constants';
+import { enhanceMeasuresWithMetrics, getDisplayMetrics } from '../../../helpers/measures';
+import { getBranchLikeUrl } from '../../../helpers/urls';
 import Measure from '../../measure/Measure';
 import SeverityHelper from '../../shared/SeverityHelper';
 import CoverageRating from '../../ui/CoverageRating';
-import { SEVERITIES, ISSUE_TYPES } from '../../../helpers/constants';
-import { getDisplayMetrics, enhanceMeasuresWithMetrics } from '../../../helpers/measures';
-import { getBranchLikeUrl } from '../../../helpers/urls';
-import { getBranchLikeQuery } from '../../../helpers/branches';
+import MeasuresOverlayMeasure from './MeasuresOverlayMeasure';
 
 interface Props {
   branchLike: T.BranchLike | undefined;
index 27168a3664c501ce082dff747d8ebd370a74fd59..bf4a7f7cb7c0611106b16cd714eb631de1b2232d 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
 import { PopupPlacement } from 'sonar-ui-common/components/ui/popups';
 import DateFormatter from '../../intl/DateFormatter';
index 084cba155fad99991a1413757cf1f96331fe9344..45bfddc91697722f24e17ffe944644846f4c1c39 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { mockIssue, mockPullRequest, mockSourceLine } from '../../../../helpers/testMocks';
 import Line from '../Line';
-import { mockPullRequest, mockSourceLine, mockIssue } from '../../../../helpers/testMocks';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 50a447bf0c7b88be32ade25ba97ba8e526cbd641..36d94ea9bebd25ff259e4cc907a7b3379cc17123 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
+import { mockIssue, mockShortLivingBranch, mockSourceLine } from '../../../../helpers/testMocks';
 import LineCode from '../LineCode';
-import { mockShortLivingBranch, mockIssue, mockSourceLine } from '../../../../helpers/testMocks';
 
 it('render code', () => {
   expect(shallowRender()).toMatchSnapshot();
index 2f45d494f39df994996f41a54f0a4c998ac301d8..bc01d9646e44a4a36415a0246422f9c13708ceff 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import LineCoverage from '../LineCoverage';
 
 it('render covered line', () => {
index 11bb3bd059bb4b9421f5fba94c25e6442b8e4a4e..27ad38a082e5d1f613bd0f1a3d372d722064e6f1 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import LineDuplicationBlock from '../LineDuplicationBlock';
 
index f8b5dd25ddd5fbe93e3cce262488deb9adbd8050..2b2f7ea0edb238e0036c60f5c910b5b7e980ac77 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import LineDuplications from '../LineDuplications';
 
index f14eeb408491b535f7b83d828b9456999a0a81b5..e0c28a3661f6f8aa632a365b6da37484a8a887d4 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
-import LineIssuesIndicator from '../LineIssuesIndicator';
 import { mockIssue } from '../../../../helpers/testMocks';
+import LineIssuesIndicator from '../LineIssuesIndicator';
 
 it('should render correctly', () => {
   const onClick = jest.fn();
index 435e4932d7f7e8bb1b933bc66c0834716bd3f0af..39bacd64833f882adcae75356b5845102fcb7f65 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import LineIssuesList from '../LineIssuesList';
 
 const issueBase: T.Issue = {
index a5842ee9dfe25b4a64c837e8f624aabf1311c465..8867116abbf7b1636b5380e31c6a95a6fca08701 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import LineNumber from '../LineNumber';
 
index 4bdb873af4fc8850b72a7050bbd1f3913e840de6..81fc9ef12302a1a49d09fa5397b17ed6f70730e5 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import LineOptionsPopup from '../LineOptionsPopup';
 
 jest.mock('../../SourceViewerContext', () => ({
index b6ccb034820a9ad2a7859f09edf7bb4d9cab9940..1ea03d177bb7e4fed18435e7ee34f19189c9e260 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import LineSCM from '../LineSCM';
 
index 938ec371dde14850ec0a70f47911f953fc2b0285..1c831cf717fa54c91342583432c78cb60aca56de 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { waitAndUpdate, click } from 'sonar-ui-common/helpers/testUtils';
+import * as React from 'react';
+import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import MeasuresOverlay from '../MeasuresOverlay';
 
 jest.mock('../../../../api/issues', () => ({
index 3fd4575f915f03a978e17f212148489adea3bf2a..b97cd31afe2198b8784889d604e8346ff5e5419f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import MeasuresOverlayMeasure from '../MeasuresOverlayMeasure';
 
 it('should render', () => {
index 94ef035a2f5d678706141350a734741fedc0a458..ae132be50cd48480304151c3e3bd94896207a46c 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SCMPopup from '../SCMPopup';
 
 it('should render', () => {
index 19aef66e7b92e817bf62d14f33e976f1b5146a17..efb250a36c7913d7db097fe041fe8368b4763615 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { issuesByComponentAndLine, symbolsByLine } from '../indexing';
 import { mockIssue } from '../../../../helpers/testMocks';
+import { issuesByComponentAndLine, symbolsByLine } from '../indexing';
 
 describe('issuesByComponentAndLine', () => {
   it('should map issues by lines and components', () => {
index 4096f9208d57aec28ad88e8d42b095267c173895..bee74a074e73b480df0a582f775b85e8a151b5a9 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { getSecondaryIssueLocationsForLine, getLinearLocations } from '../issueLocations';
-import { mockSourceLine, mockFlowLocation } from '../../../../helpers/testMocks';
+import { mockFlowLocation, mockSourceLine } from '../../../../helpers/testMocks';
+import { getLinearLocations, getSecondaryIssueLocationsForLine } from '../issueLocations';
 
 describe('getSecondaryIssueLocationsForLine', () => {
   it('should return secondary locations for a line', () => {
index 932eec9688b48a3a810d45d2ed0118b811777890..aebc4fe7ce1744a35aa28f07d5c86020385b9221 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import loadIssues from '../loadIssues';
 import { mockMainBranch } from '../../../../helpers/testMocks';
+import loadIssues from '../loadIssues';
 
 jest.mock('../../../../api/issues', () => ({
   searchIssues: jest.fn().mockResolvedValue({
index b2d388d38e93e3e0d0aea76f28ed406099276c2c..f716f760805de1509acca60fd2be6101dfdb5224 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
 import { ScaleLinear, ScaleOrdinal } from 'd3-scale';
+import * as React from 'react';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import './ColorBoxLegend.css';
 
index 21f951c954888e939d2d4118fe6ca300bb670ea8..5b3918c0c658e81143ba0e9bf3618942005df573 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 import { RATING_COLORS } from '../../helpers/constants';
 import './ColorBoxLegend.css';
index 900cdf57c554cfd7159664e3d58328ec6d31cffc..cf6ea1a4a0a5c482e5b48dd77599c6eb898a0b84 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sortBy } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import Histogram from 'sonar-ui-common/components/charts/Histogram';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 
 interface Props {
index 8c33a43cbf41eb05c2be3907c1c0f28f9da9a0fe..e218a0b270be30406174b2b9a38a86e03f34d33f 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { connect } from 'react-redux';
-import LanguageDistribution from './LanguageDistribution';
 import { getLanguages, Store } from '../../store/rootReducer';
+import LanguageDistribution from './LanguageDistribution';
 
 const mapStateToProps = (state: Store) => ({
   languages: getLanguages(state)
index a7bf782d2845284e0a5fc3751986882d0593fe1d..e34ccd3a5bf073036c9c3e321fbc80bb54717da0 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import LanguageDistribution from '../LanguageDistribution';
 
 it('renders', () => {
index 8195123b99d8b842b95c7791cb3c1c470c5d3a97..0b5004b630fed7a6b7d05f405b91602d1455b653 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import WarningIcon from 'sonar-ui-common/components/icons/WarningIcon';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Modal from 'sonar-ui-common/components/controls/Modal';
+import WarningIcon from 'sonar-ui-common/components/icons/WarningIcon';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getTask } from '../../api/ce';
 
 interface Props {
index ab9be8f8c189bf5da55763aea02fb581fa7769a4..3ed98bc0eb597eb6490583046b6d79f0a994ca3a 100644 (file)
@@ -20,7 +20,7 @@
 import * as React from 'react';
 import { connect } from 'react-redux';
 import Level from 'sonar-ui-common/components/ui/Level';
-import { Store, getBranchStatusByBranchLike } from '../../store/rootReducer';
+import { getBranchStatusByBranchLike, Store } from '../../store/rootReducer';
 
 interface Props {
   branchLike: T.BranchLike;
index 50014de9392df3e3631f5a0a6c87b9f34b7fb05d..c6b8c04646eae8ba6c54a0ea91c722e779b92d5e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import ClipboardButton from 'sonar-ui-common/components/controls/ClipboardButton';
 import './CodeSnippet.css';
 
index 4fc764b7ca97a4c27fb3e3fc46c979e3964838d4..02b7cccbb8e3af42acf0f1239532794a01dac753 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   displayReset: boolean;
index 7f73e64fd5db150735259f3a1c7b7b7e658ec06e..a2e945ae6884c62331644964b1b3ac894bcbe319 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import './LocationIndex.css';
 
 interface Props {
index 10f1f250f0640cf24df6e4270a97c183c039153e..21822e59f8c76a8c850826c750f9e2a67a70f9e6 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import './LocationMessage.css';
 
 interface Props {
index 0616d4adfc4e51ad40eae66f10e8ffc36919f9c7..5e316e0615e4ecc042b5628fb5a36b12d75c59b5 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { getMarkdownHelpUrl } from '../../helpers/urls';
 
index 6e51ef57f1991a6ca972e312fdaf1635a2e1c14a..9a167fd29fe91466b2f930f27a5c9407b311d152 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
 import { difference } from 'lodash';
-import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
+import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import MultiSelectOption from './MultiSelectOption';
 
 interface Props {
index ca99dad61ca548d1bd8e44bdc24260bea605fb81..309cdd503f42c498c9a3e386e2b42494a9d8e51b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 
 interface Props {
   active?: boolean;
index 245708408db4491dc4ab78ef05fb7201ad2e1464..0ec2c5c2580e73bcf4277b1e5f540963dc75d8e0 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import GenericAvatar from 'sonar-ui-common/components/ui/GenericAvatar';
 import './OrganizationAvatar.css';
 
index 3edbe6000001debb50c3d154ff8aee2d244cbc0b..4629681e8e277a7d2033898063516c33964a6e90 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
 
 interface Props {
index 6e302873b8f23d9fa71eace8a08051d3060b92d3..4f8235b099f3b8340133c3979a0aa8afe2c8458a 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import VisibleIcon from 'sonar-ui-common/components/icons/VisibleIcon';
+import * as React from 'react';
 import { connect } from 'react-redux';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import VisibleIcon from 'sonar-ui-common/components/icons/VisibleIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { colors } from '../../app/theme';
-import { isSonarCloud } from '../../helpers/system';
 import { isCurrentUserMemberOf, isPaidOrganization } from '../../helpers/organizations';
+import { isSonarCloud } from '../../helpers/system';
 import {
   getCurrentUser,
-  getOrganizationByKey,
   getMyOrganizations,
+  getOrganizationByKey,
   Store
 } from '../../store/rootReducer';
 import DocTooltip from '../docs/DocTooltip';
index 68f85c783f05ed6de8554b4741aae41a67253254..9a4827298fdbafa4cc4623c8a521b454dfc060bf 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import { translate } from 'sonar-ui-common/helpers/l10n';
+import * as React from 'react';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { restart } from '../../api/system';
 
 interface Props {
index b90f5a1d51eb02228f7f1d48805f1af5252497d4..c5f689e7066611018c42803df684d4bd26920531 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { debounce } from 'lodash';
+import * as React from 'react';
 
 interface Props {
   className?: string;
index 7da4754c8acde81027a7e00888f4b11303bcfad8..797d939827d9552890f493997e8035256d1c9590 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
+import classNames from 'classnames';
 import * as key from 'keymaster';
 import { uniqueId } from 'lodash';
-import classNames from 'classnames';
+import * as React from 'react';
 import SelectListItem from './SelectListItem';
 
 interface Props {
index 3fdbc272847313e8d4754339283c8f1298e2d19b..17236942c19ad2b6010f351ae4718aa5ad4712cb 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import classNames from 'classnames';
+import * as React from 'react';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 
 interface Props {
index db9c8ad2810dbc84cb57c15b56000da8e9ea7015..1ea2e1c69e384d80064833b89442360cdef8d287 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import './StatusIndicator.css';
 
 interface Props {
index d5d7e87807578f67e24327ee44dcd760fa93a4fe..c184969c3c1726411f61ddb02ad28fc8f9422dcf 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
index b3f4a335725687d5c2fd04083ed8b26a52291ffc..d0a3134c938fe8a2f627d66f327a0a2e95ab2c9f 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import AnalysisWarningsModal from '../AnalysisWarningsModal';
 import { getTask } from '../../../api/ce';
+import AnalysisWarningsModal from '../AnalysisWarningsModal';
 
 jest.mock('../../../api/ce', () => ({
   getTask: jest.fn().mockResolvedValue({
index 345a6ec8ae91c901fc75b80ecfe49edc99ef4272..6c3ea98d9b71c9e5577afc50ae63b63fcf256fc8 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { BranchStatus } from '../BranchStatus';
+import * as React from 'react';
 import { mockLongLivingBranch } from '../../../helpers/testMocks';
+import { BranchStatus } from '../BranchStatus';
 
 it('should render correctly', () => {
   expect(shallowRender().type()).toBeNull();
index 35276a8bdc3555ed11cd74cf18307ba2089b6718..b9a6fe45a61eef544418d76df17135bb29f6aac6 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { mount } from 'enzyme';
+import * as React from 'react';
 import CodeSnippet from '../CodeSnippet';
 
 it('renders correctly', () => {
index 161eabb7eb7d4b89a16c01717ea717156444f2a0..49bd05fbbece188ff2d25d63597cb8455a6c7516 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import EmptySearch from '../EmptySearch';
 
 it('renders', () => {
index 390c0234c67b4db2fe7adaf11e34c570838f5eae..9204c4a0873c3c74b0bbe96a72f2a1225044a726 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import InstanceMessage from '../InstanceMessage';
+import * as React from 'react';
 import { getInstance } from '../../../helpers/system';
+import InstanceMessage from '../InstanceMessage';
 
 jest.mock('../../../helpers/system', () => ({ getInstance: jest.fn() }));
 
index ea91170889736e6f35055d12073666692465ee56..392114512bb9647e50e98dbabc38abc2945208e5 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import MarkdownTips from '../MarkdownTips';
 
 it('should render the tips', () => {
index 4985e157aa06ed28702ad25380245d9c77670b7f..146a51931aba0c56d363c2f826e953613a89b4de 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { mount, shallow } from 'enzyme';
 import * as React from 'react';
-import { shallow, mount } from 'enzyme';
 import MultiSelect from '../MultiSelect';
 
 const props = {
index 924e869c0715faeb7faafad744bbb4836610e7a6..0213f79b8f6b685afe96aa104cc98cb87dde7b6b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import MultiSelectOption from '../MultiSelectOption';
 
 const props = {
index d770a34e5380a16123aa16375d84eb6f7be0f174..9e49a7f101042fbeed6f65a4720b8ab4d6e50542 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { PrivacyBadge } from '../PrivacyBadgeContainer';
+import * as React from 'react';
 import { isSonarCloud } from '../../../helpers/system';
+import { PrivacyBadge } from '../PrivacyBadgeContainer';
 
 jest.mock('../../../helpers/system', () => ({ isSonarCloud: jest.fn().mockReturnValue(false) }));
 
index 8cbfd883a339318ed4ef71b0913b6cd85e87ee29..1b40e5be0abc1ec1052ea0d6bf9011b2490c819e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import RestartButton from '../RestartButton';
 
 it('should render correctly', () => {
index f114f7ee055b1f65939ddcd644811057665f6844..0bada6c3eadc6f13e2ded1e576bd5302608ef298 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { mount, shallow } from 'enzyme';
 import * as React from 'react';
-import { shallow, mount } from 'enzyme';
 import { click, keydown } from 'sonar-ui-common/helpers/testUtils';
 import SelectList from '../SelectList';
 import SelectListItem from '../SelectListItem';
index de053a1c721b709a22ef638ab1a6f09f51534b60..263e4f199ae8ccc129beed34b775106fe1810b7a 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SelectListItem from '../SelectListItem';
 
 it('should render correctly without children', () => {
index 2e0ae3b81281c2a35a580c60099fcf8ddf056d80..208f5336401ea6533a4c8ae63e36b621f6877f78 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import VisibilitySelector from '../VisibilitySelector';
 
index da7918c9be360eaad106bcde45e8f00cebc9de1c..7b9a3429721af8eff50a340ccbf0bb72fe07865e 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
-import CalendarIcon from 'sonar-ui-common/components/icons/CalendarIcon';
-import ChevronLeftIcon from 'sonar-ui-common/components/icons/ChevronLeftIcon';
-import ChevronRightIcon from 'sonar-ui-common/components/icons/ChevronRightIcon';
-import { DayModifiers, Modifier, Modifiers } from 'react-day-picker';
-import { InjectedIntlProps, injectIntl } from 'react-intl';
-import { range } from 'lodash';
 import * as addMonths from 'date-fns/add_months';
 import * as setMonth from 'date-fns/set_month';
 import * as setYear from 'date-fns/set_year';
 import * as subMonths from 'date-fns/sub_months';
-import {
-  getShortMonthName,
-  getWeekDayName,
-  getShortWeekDayName
-} from 'sonar-ui-common/helpers/l10n';
+import { range } from 'lodash';
+import * as React from 'react';
+import { DayModifiers, Modifier, Modifiers } from 'react-day-picker';
+import { InjectedIntlProps, injectIntl } from 'react-intl';
 import { ButtonIcon, ClearButton } from 'sonar-ui-common/components/controls/buttons';
 import OutsideClickHandler from 'sonar-ui-common/components/controls/OutsideClickHandler';
-import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
 import Select from 'sonar-ui-common/components/controls/Select';
+import CalendarIcon from 'sonar-ui-common/components/icons/CalendarIcon';
+import ChevronLeftIcon from 'sonar-ui-common/components/icons/ChevronLeftIcon';
+import ChevronRightIcon from 'sonar-ui-common/components/icons/ChevronRightIcon';
+import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
+import {
+  getShortMonthName,
+  getShortWeekDayName,
+  getWeekDayName
+} from 'sonar-ui-common/helpers/l10n';
 import './DayPicker.css';
 import './styles.css';
 
index 1cc3a2ee2a6e97dc73733380464a0b6e4227e313..a15aa4a60b065104f8502ba4d2a2a90305ce0f72 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import DateInput from './DateInput';
 
index cf52da98d81e863280733b8826eb6041b5404d1d..1f39256ad80060ac45d58f3bbd0371f3e467111c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import { connect } from 'react-redux';
+import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import HomeIcon from 'sonar-ui-common/components/icons/HomeIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
-import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import { isLoggedIn } from '../../helpers/users';
 import { getCurrentUser, Store } from '../../store/rootReducer';
 import { setHomePage } from '../../store/users';
-import { isLoggedIn } from '../../helpers/users';
 
 interface StateProps {
   currentUser: T.CurrentUser;
index 40d91a5a211726488c6e4ad3e62af046fec93f8f..c22847c9442386ca22feeea280f07c7c9e4871e3 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
-import { shallow } from 'enzyme';
 import * as addDays from 'date-fns/add_days';
 import * as setMonth from 'date-fns/set_month';
 import * as setYear from 'date-fns/set_year';
 import * as subDays from 'date-fns/sub_days';
 import * as subMonths from 'date-fns/sub_months';
+import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
 import DateInput from '../DateInput';
 
index f033c841e614ae1528d68134f07aa0d81458c7e2..0fc981bb66b0ecd4a81c8d393685b583efc2955f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
 import DateRangeInput from '../DateRangeInput';
 
index 009f15f6e3049ce4535cf0b34ad561a8b847bda7..21f3af2c980a5560b879a52a20a82fe4ab34ece3 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Favorite from '../Favorite';
 
 jest.mock('../../../api/favorites', () => ({
index b5e563f08edc8858673b9183ec35ed143f97af31..d559e2eb8584a7bf864de056e8f827c942bc3637 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
-import HomePageSelect from '../HomePageSelect';
 import { setHomePage } from '../../../api/users';
 import rootReducer, { getCurrentUser, Store } from '../../../store/rootReducer';
 import configureStore from '../../../store/utils/configureStore';
+import HomePageSelect from '../HomePageSelect';
 
 jest.mock('../../../api/users', () => ({
   setHomePage: jest.fn(() => Promise.resolve())
index 629ed7250577e44507f95882d1984f86af39b500..ea14c42542b1cf4746606e0420ec1068e4478e19 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import remark from 'remark';
+import remarkCustomBlocks from 'remark-custom-blocks';
 import reactRenderer from 'remark-react';
 import slug from 'remark-slug';
-import remarkCustomBlocks from 'remark-custom-blocks';
+import 'sonar-ui-common/components/ui/Alert.css'; // eslint-disable-line import/extension
 import { scrollToElement } from 'sonar-ui-common/helpers/scrolling';
-import DocLink from './DocLink';
+import { filterContent, separateFrontMatter } from '../../helpers/markdown';
+import DocCollapsibleBlock from './DocCollapsibleBlock';
 import DocImg from './DocImg';
+import DocLink from './DocLink';
 import DocToc from './DocToc';
 import DocTooltipLink from './DocTooltipLink';
-import DocCollapsibleBlock from './DocCollapsibleBlock';
-import { separateFrontMatter, filterContent } from '../../helpers/markdown';
-import 'sonar-ui-common/components/ui/Alert.css'; // eslint-disable-line import/extension
 
 interface Props {
   childProps?: T.Dict<string>;
index 915feef77b2853595618c19562784b044540f61a..7c4a00fb6cb824d7bb8d851a303a030d1de5a251 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as classNames from 'classnames';
+import { debounce, memoize } from 'lodash';
 import * as React from 'react';
+import { findDOMNode } from 'react-dom';
 import remark from 'remark';
 import reactRenderer from 'remark-react';
-import { findDOMNode } from 'react-dom';
-import * as classNames from 'classnames';
-import { debounce, memoize } from 'lodash';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import onlyToc from './plugins/remark-only-toc';
 
index cd1770f7f63c35610591608cda3254c10eaa7ff1..c8ecab10e744b6fdb8ca2e484d6b7f1821223688 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { forEach } from 'lodash';
 import * as React from 'react';
 import { Link } from 'react-router';
-import { forEach } from 'lodash';
 import DetachIcon from 'sonar-ui-common/components/icons/DetachIcon';
 
 interface OwnProps {
index a324dbf11d31220ca73da67c8577fbd8a4a12374..135f974253123a4b105a9c6e3f6d605d5ebbfb24 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import DocCollapsibleBlock from '../DocCollapsibleBlock';
 
index dd884f19e8003023818ea3b3cdd49770d01650b9..95a4aacd15600531b4db218432604e29ef706c91 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { DocLink } from '../DocLink';
+import * as React from 'react';
 import { isSonarCloud } from '../../../helpers/system';
+import { DocLink } from '../DocLink';
 
 jest.mock('../../../helpers/system', () => ({
   isSonarCloud: jest.fn(() => false)
index 3f276e19f5220fd574bca9c417f5f1daccf7dcd3..f645411a3c3567d01b67dd46bc7a51b36eb81ade 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import DocMarkdownBlock from '../DocMarkdownBlock';
 
 const CONTENT = `
index 0206ea149cbac9ae747c0198d33f3208b94703c9..ded48dba536e229e6e4429e7fa93ebb1d3b24ac5 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { mount } from 'enzyme';
+import * as React from 'react';
 import { click, scrollTo } from 'sonar-ui-common/helpers/testUtils';
 import DocToc from '../DocToc';
 
index 4675f0fc87bcd9dd077137fa728583013e891a30..350cf5676f743c2a237d85cbba32f790c3257ac3 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import DocTooltip from '../DocTooltip';
 
index 2c4cdcdbc1342edd384bf0cb37d31eff550bbd19..c8ef5b1271472edc978babe1df2c04014fe50c43 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import DocTooltipLink from '../DocTooltipLink';
 
 it('should render simple link', () => {
index 521804fcec3d55ef094260679fc237d9f9b373c2..79b80d03863e73f6333b8b321868bfa8583a3705 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import slug from 'remark-slug';
 import util from 'mdast-util-toc';
+import slug from 'remark-slug';
 
 /**
  * This is a simplified version of the remark-toc plugin: https://github.com/remarkjs/remark-toc
index c3dd3c654916325c4544c47a59651d7cc33b0f3b..28473d51e1849948d6af331a5dabcfed6f3d9629 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 
 interface Props {
   className?: string;
index 74499c7154307227a70ad2460f1a5abfdd45f839..9b50252859f56906f8134aaf7d45c4cefdbd8509 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import OpenCloseIcon from 'sonar-ui-common/components/icons/OpenCloseIcon';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
-import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
+import OpenCloseIcon from 'sonar-ui-common/components/icons/OpenCloseIcon';
+import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   children?: React.ReactNode;
index e9e25e70613e07256c20743ccab5e49270d487a2..1818a7be80d8386ba0758e77fcfe233b91359b39 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 
 export interface Props {
   active?: boolean;
index 7544e444f730a672d7e45d491aa6e1eb74ab35b3..f4c8a089d393fbc6858beff388a603b56319d558 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
 import { sortBy, without } from 'lodash';
-import { queriesEqual } from 'sonar-ui-common/helpers/query';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import { formatMeasure } from 'sonar-ui-common/helpers/measures';
+import * as React from 'react';
+import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
+import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import { Alert } from 'sonar-ui-common/components/ui/Alert';
-import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
-import ListFooter from 'sonar-ui-common/components/controls/ListFooter';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { formatMeasure } from 'sonar-ui-common/helpers/measures';
+import { queriesEqual } from 'sonar-ui-common/helpers/query';
 import FacetBox from './FacetBox';
 import FacetHeader from './FacetHeader';
 import FacetItem from './FacetItem';
index 7040a30f239f652183c246ab210349db98d342fe..6eb266c33b05271b13a3775b22e295cd41befa02 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import FacetBox from '../FacetBox';
 
 it('should render', () => {
index 4f44bf99aaee4b1efb1ed52d54e2e0a968480555..667534d28c70f0b209f295f21e94688c38182b09 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import FacetHeader from '../FacetHeader';
 
index c76279e5742361635021778cd7771924a98bd4f1..603e67dbc19857d8cd92767cd9fc6b746b8cc270 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import FacetItem, { Props } from '../FacetItem';
 
index c8f21ca697b3267bd6ee95c4353cc09994941e6f..64b1c38d6b107f6891e00dd9778f255ece9158e0 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import FacetItemsList from '../FacetItemsList';
 
 it('should render', () => {
index 3a965d16ceea0f9a0288b088e54030e39c4c940e..dbacb3dee34a99df7d7003efd712e7885d4db873 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow, ShallowWrapper } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import ListStyleFacet, { Props } from '../ListStyleFacet';
 
index e508ad5f168bb0337a582d98e819e5afbde30d53..cd13a15dba6d35c1cc32719d140c8e1fee39d220 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import ListStyleFacetFooter from '../ListStyleFacetFooter';
 
index a302b866dd0e96c2c758c03859c902ce0e283427..3d2bf01f5bafebe77a1f8ecd05a8ea8bef1d5caf 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import MultipleSelectionHint from '../MultipleSelectionHint';
 
 it('should render for mac', () => {
index ddfd6fffcd1a483743d73211bde1aba7ca949141..7cb4b8e41b34536646b1de6d4da9404175979347 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow, ShallowWrapper } from 'enzyme';
+import * as React from 'react';
 import handleRequiredAuthentication from 'sonar-ui-common/helpers/handleRequiredAuthentication';
-import { whenLoggedIn } from '../whenLoggedIn';
 import { mockStore } from '../../../helpers/testMocks';
+import { whenLoggedIn } from '../whenLoggedIn';
 
 jest.mock('sonar-ui-common/helpers/handleRequiredAuthentication', () => ({
   default: jest.fn()
index 2a379a3423d5c88d8a699318ca2b64ad61d35efd..3e06ec2aad2772ca4f5925548883dab2ab133077 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { withCurrentUser } from '../withCurrentUser';
+import * as React from 'react';
 import { mockStore } from '../../../helpers/testMocks';
+import { withCurrentUser } from '../withCurrentUser';
 
 class X extends React.Component<{ currentUser: T.CurrentUser }> {
   render() {
index 45eb9c9a15f5358a017cbda965da73aba8fd85e0..83b05dcbfa16d96d776d54916ec7fe6f909c049d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { mount, shallow } from 'enzyme';
-import { keydown, KEYCODE_MAP } from 'sonar-ui-common/helpers/testUtils';
-import withKeyboardNavigation, { WithKeyboardNavigationProps } from '../withKeyboardNavigation';
+import * as React from 'react';
+import { KEYCODE_MAP, keydown } from 'sonar-ui-common/helpers/testUtils';
 import { mockComponent } from '../../../helpers/testMocks';
+import withKeyboardNavigation, { WithKeyboardNavigationProps } from '../withKeyboardNavigation';
 
 class X extends React.Component<{
   components?: T.ComponentMeasure[];
index 72f025bad0883051030f0bd00d66e9dd42322f9d..8b9818f67fe6932ad494333e1b323e05ee53cc2a 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import { withUserOrganizations } from '../withUserOrganizations';
+import * as React from 'react';
 import { mockStore } from '../../../helpers/testMocks';
+import { withUserOrganizations } from '../withUserOrganizations';
 
 jest.mock('../../../api/organizations', () => ({ getOrganizations: jest.fn() }));
 
index 800c04e5aaf5af62425d89915a19422752417c8e..36ff71517226983a9b291d87f5086ec6ec9fd97d 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import handleRequiredAuthentication from 'sonar-ui-common/helpers/handleRequiredAuthentication';
+import { isLoggedIn } from '../../helpers/users';
 import { getWrappedDisplayName } from './utils';
 import { withCurrentUser } from './withCurrentUser';
-import { isLoggedIn } from '../../helpers/users';
 
 export function whenLoggedIn<P>(WrappedComponent: React.ComponentType<P>) {
   class Wrapper extends React.Component<P & { currentUser: T.CurrentUser }> {
index 0e6e3f251cfe44bb848e5e1b2e80bc4c34585994..c81252162d4162d56b8d124fa944dcff592f584e 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { connect } from 'react-redux';
+import { getAppState, Store } from '../../store/rootReducer';
 import { getWrappedDisplayName } from './utils';
-import { Store, getAppState } from '../../store/rootReducer';
 
 export function withAppState<P>(
   WrappedComponent: React.ComponentClass<P & { appState: Partial<T.AppState> }>
index 0ea58a41e1885eb548d7c2cd076ad8fa3b5c8717..04dd155bc71e2442e36e6a6868a059a6a70118d7 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { connect } from 'react-redux';
+import { getCurrentUser, Store } from '../../store/rootReducer';
 import { getWrappedDisplayName } from './utils';
-import { Store, getCurrentUser } from '../../store/rootReducer';
 
 export function withCurrentUser<P>(
   WrappedComponent: React.ComponentType<P & { currentUser: T.CurrentUser }>
index bc4197d76b7614cdcd87d700c2ad16937628339b..2dc7012b44edb465e357a424cdd48353df86af28 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as key from 'keymaster';
+import * as React from 'react';
 import PageActions from 'sonar-ui-common/components/ui/PageActions';
 import { getWrappedDisplayName } from './utils';
 
index c016ce0ffa523a8f4526442970f2e3ff5210bc3f..0e16f6f83efa05fc688865db66ee733ceb570304 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import { connect } from 'react-redux';
-import { getWrappedDisplayName } from './utils';
-import { Store, getMyOrganizations } from '../../store/rootReducer';
 import { fetchMyOrganizations } from '../../apps/account/organizations/actions';
+import { getMyOrganizations, Store } from '../../store/rootReducer';
+import { getWrappedDisplayName } from './utils';
 
 interface OwnProps {
   fetchMyOrganizations: () => Promise<void>;
index 95cb79bb6e570c69b795aeba0ab617c3ae60f636..7f7794e73c8c1582b17dba9eaea10e9e8df0d7d0 100644 (file)
  */
 import * as React from 'react';
 import { IconProps } from 'sonar-ui-common/components/icons/Icon';
-import ShortLivingBranchIcon from 'sonar-ui-common/components/icons/ShortLivingBranchIcon';
 import LongLivingBranchIcon from 'sonar-ui-common/components/icons/LongLivingBranchIcon';
 import PullRequestIcon from 'sonar-ui-common/components/icons/PullRequestIcon';
-import { isShortLivingBranch, isPullRequest } from '../../helpers/branches';
+import ShortLivingBranchIcon from 'sonar-ui-common/components/icons/ShortLivingBranchIcon';
+import { isPullRequest, isShortLivingBranch } from '../../helpers/branches';
 
 interface Props extends IconProps {
   branchLike: T.BranchLike;
index 6e8bc731499e74ecff7dcbc638b2babfcc6bc256..abac48f926f919a2dd86f7a0269f6980cfe6dc6f 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as differenceInHours from 'date-fns/difference_in_hours';
+import * as React from 'react';
 import { DateSource } from 'react-intl';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import DateFromNow from './DateFromNow';
 import DateTimeFormatter from './DateTimeFormatter';
 
index b47e3a6d67862376aa1ae53530359788d409143b..bd7ee6114874c8d10a8ebd8493b40ea869c6eb55 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { parseDate } from 'sonar-ui-common/helpers/dates';
 import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { parseDate } from 'sonar-ui-common/helpers/dates';
 import DateFormatter from './DateFormatter';
 import DateTimeFormatter from './DateTimeFormatter';
 
index 6e65095250d97070121f78999297cf2ad7f420e4..547216554051321ad20adf8be39677de4739b92f 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as key from 'keymaster';
-import IssueView from './IssueView';
-import { updateIssue } from './actions';
+import * as React from 'react';
 import { setIssueAssignee } from '../../api/issues';
+import { updateIssue } from './actions';
 import './Issue.css';
+import IssueView from './IssueView';
 
 interface Props {
   branchLike?: T.BranchLike;
index 9f48e8a5be78d3533be6e7ea0f2f5f3892081c4f..d78f5df9e1cd40531a5ce01f1937a76f53c5a84c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import classNames from 'classnames';
+import * as React from 'react';
 import Checkbox from 'sonar-ui-common/components/controls/Checkbox';
+import { deleteIssueComment, editIssueComment } from '../../api/issues';
 import { updateIssue } from './actions';
-import IssueTitleBar from './components/IssueTitleBar';
 import IssueActionsBar from './components/IssueActionsBar';
 import IssueCommentLine from './components/IssueCommentLine';
-import { deleteIssueComment, editIssueComment } from '../../api/issues';
+import IssueTitleBar from './components/IssueTitleBar';
 
 interface Props {
   branchLike?: T.BranchLike;
index e7470f7dbaff3ab46b28c4c38ecf165fc23d8002..0128cb1968eab4160196a9253318c67a63002298 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import IssueView from '../IssueView';
+import * as React from 'react';
 import { mockIssue } from '../../../helpers/testMocks';
+import IssueView from '../IssueView';
 
 it('should render issues correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 56a1941714a1132e236dffe23183e84c693bce62..42847175fdce29ae3c7aefc1d91fde23594aa74a 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { parseIssueFromResponse } from '../../helpers/issues';
 import { IssueResponse } from '../../api/issues';
+import { parseIssueFromResponse } from '../../helpers/issues';
 
 export const updateIssue = (
   onChange: (issue: T.Issue) => void,
index 398be6a667a3a9092a2369168871a55d76602f3b..15d7040f7b42d863084c03be0c9bc4a0a4deea0a 100644 (file)
  */
 import * as React from 'react';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { IssueResponse } from '../../../api/issues';
+import { updateIssue } from '../actions';
 import IssueAssign from './IssueAssign';
 import IssueCommentAction from './IssueCommentAction';
 import IssueSeverity from './IssueSeverity';
 import IssueTags from './IssueTags';
 import IssueTransition from './IssueTransition';
 import IssueType from './IssueType';
-import { updateIssue } from '../actions';
-import { IssueResponse } from '../../../api/issues';
 
 interface Props {
   issue: T.Issue;
index 544456a265c4836f6bfe5bc25c10735c6a4e03d9..a021c4bd7bc55f46e5d702e859320dc1d7801b3a 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Toggler from 'sonar-ui-common/components/controls/Toggler';
+import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import Avatar from '../../ui/Avatar';
 import SetAssigneePopup from '../popups/SetAssigneePopup';
 
index 6def0df2907019f5c18d3df92452aa3cde1f02eb..cd20a495aa63bfd04e99ffdda3a57a932720acfb 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Toggler from 'sonar-ui-common/components/controls/Toggler';
-import ChangelogPopup from '../popups/ChangelogPopup';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import DateFromNow from '../../intl/DateFromNow';
 import DateTimeFormatter from '../../intl/DateTimeFormatter';
+import ChangelogPopup from '../popups/ChangelogPopup';
 
 interface Props {
   isOpen: boolean;
index b6347083bd5212d249ce0a2d4ea6df58764e5d9b..f2e23f6e45f9a0b99efbd52970ae9e8aa1d95999 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Toggler from 'sonar-ui-common/components/controls/Toggler';
-import CommentPopup from '../popups/CommentPopup';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { addIssueComment } from '../../../api/issues';
 import { updateIssue } from '../actions';
+import CommentPopup from '../popups/CommentPopup';
 
 interface Props {
   commentAutoTriggered?: boolean;
index 5d351a94347a1f248f9b6649ba4dbf67e529aa25..3b59d97ba2319e15c03a3f753070240ec50b004c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { sanitize } from 'dompurify';
-import { EditButton, DeleteButton } from 'sonar-ui-common/components/controls/buttons';
+import * as React from 'react';
+import { DeleteButton, EditButton } from 'sonar-ui-common/components/controls/buttons';
+import Toggler from 'sonar-ui-common/components/controls/Toggler';
 import { PopupPlacement } from 'sonar-ui-common/components/ui/popups';
 import { translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import Toggler from 'sonar-ui-common/components/controls/Toggler';
+import DateFromNow from '../../intl/DateFromNow';
 import Avatar from '../../ui/Avatar';
 import CommentDeletePopup from '../popups/CommentDeletePopup';
 import CommentPopup from '../popups/CommentPopup';
-import DateFromNow from '../../intl/DateFromNow';
 
 interface Props {
   comment: T.IssueComment;
index 08fa42b89840c6086eeb8de74689deebd4b35cd5..dbc965ea924c5e3e717ba4781beddc281c92ce58 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
+import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { WorkspaceContextShape } from '../../workspace/context';
 
 interface Props {
index 9ff9dc1cc4df0ac0cc39280c4445a8a093401091..2efcd35a623c83777779e5216febc92aab743a47 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Toggler from 'sonar-ui-common/components/controls/Toggler';
-import SetSeverityPopup from '../popups/SetSeverityPopup';
+import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
+import { IssueResponse, setIssueSeverity } from '../../../api/issues';
 import SeverityHelper from '../../shared/SeverityHelper';
-import { setIssueSeverity, IssueResponse } from '../../../api/issues';
+import SetSeverityPopup from '../popups/SetSeverityPopup';
 
 interface Props {
   canSetSeverity: boolean;
index efec83f5c8f6649278dfb39ef5f5b5d82f09a80b..b5aede268b6b841d60da598ebeda1ff69cc73f1d 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Toggler from 'sonar-ui-common/components/controls/Toggler';
-import SetIssueTagsPopup from '../popups/SetIssueTagsPopup';
-import TagsList from '../../tags/TagsList';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { setIssueTags } from '../../../api/issues';
+import TagsList from '../../tags/TagsList';
 import { updateIssue } from '../actions';
+import SetIssueTagsPopup from '../popups/SetIssueTagsPopup';
 
 interface Props {
   canSetTags: boolean;
index 136ce3cc9437b3cef18b40518f0f723a63ef77a1..2345b65c512cba25799b2e26201e9e4e7b58bbe4 100644 (file)
@@ -21,12 +21,12 @@ import * as React from 'react';
 import { Link } from 'react-router';
 import LinkIcon from 'sonar-ui-common/components/icons/LinkIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import IssueChangelog from './IssueChangelog';
-import IssueMessage from './IssueMessage';
-import SimilarIssuesFilter from './SimilarIssuesFilter';
 import { getBranchLikeQuery } from '../../../helpers/branches';
 import { getComponentIssuesUrl } from '../../../helpers/urls';
 import { WorkspaceContext } from '../../workspace/context';
+import IssueChangelog from './IssueChangelog';
+import IssueMessage from './IssueMessage';
+import SimilarIssuesFilter from './SimilarIssuesFilter';
 
 interface Props {
   branchLike?: T.BranchLike;
index 8ad432f35d6bdd28d837cbe18df2d73b77ae3084..56cb9b7069030e9b8fc988a52dbdb4ef1aa441e4 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Toggler from 'sonar-ui-common/components/controls/Toggler';
-import SetTransitionPopup from '../popups/SetTransitionPopup';
-import StatusHelper from '../../shared/StatusHelper';
+import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import { setIssueTransition } from '../../../api/issues';
+import StatusHelper from '../../shared/StatusHelper';
 import { updateIssue } from '../actions';
+import SetTransitionPopup from '../popups/SetTransitionPopup';
 
 interface Props {
   hasTransitions: boolean;
index 49a836b9bf57d2e41c3449ebcaf2c29e3db46480..9f277bee515c5151e70850b02708b0a08a680dce 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import Toggler from 'sonar-ui-common/components/controls/Toggler';
+import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import IssueTypeIcon from 'sonar-ui-common/components/icons/IssueTypeIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
+import { IssueResponse, setIssueType } from '../../../api/issues';
 import SetTypePopup from '../popups/SetTypePopup';
-import { setIssueType, IssueResponse } from '../../../api/issues';
 
 interface Props {
   canSetType: boolean;
index cd4240f90c39884e1aba4699525beae0c5fc7e76..27b12e689a7a92077c6be78a3b3f2b93fc84d4e7 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
+import Toggler from 'sonar-ui-common/components/controls/Toggler';
 import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import FilterIcon from 'sonar-ui-common/components/icons/FilterIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { ButtonLink } from 'sonar-ui-common/components/controls/buttons';
-import Toggler from 'sonar-ui-common/components/controls/Toggler';
 import SimilarIssuesPopup from '../popups/SimilarIssuesPopup';
 
 interface Props {
index 8de39292bac4e5cbf3aadd81ddbb7314bbc50221..0c9404e2af1d3f77a8013b26e5e81b4d8714a529 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import IssueActionsBar from '../IssueActionsBar';
+import * as React from 'react';
 import { mockIssue } from '../../../../helpers/testMocks';
+import IssueActionsBar from '../IssueActionsBar';
 
 jest.mock('../../actions', () => ({ updateIssue: jest.fn() }));
 
index fcf621c00862d66ac0121a4f7bee3660c4e389ce..1f59775d2fd7ae41d44d91fe91706c7bde75e60b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import IssueAssign from '../IssueAssign';
 
index fcf5125658eedd012d683620c2862fe3f1dc9559..7aae99899399d6895488aefb87384d5edf9166b6 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import IssueChangelog from '../IssueChangelog';
 
index 5509f5575c6bdde06aefd5a1c5c687a77159b3ac..595ff9240401c13dd2baddca0ce8e1a315fbfcb9 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import IssueCommentAction from '../IssueCommentAction';
 
index b2c3ac6eddb6acb97ef8fcc41338049522e43b17..3d8eabbdd426926eda87f74c5a85feff595497dc 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import IssueCommentLine from '../IssueCommentLine';
 
index a13805bf1000fdb1c574aa725ca78087c467ed62..f0e075efc602e294140ca395edf49dceace5c683 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import IssueMessage from '../IssueMessage';
 
 it('should render with the message and a link to open the rule', () => {
index c15017b0cd9322233c3af8f5fe25aeee8d9d7e26..8266af64ab3f99d335dd300bcec3960b271cf44b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import IssueSeverity from '../IssueSeverity';
 
index f9b14f5c7bce303c9ccc1088f9affeb88e6b6137..5011f13d315c9cf911dbdbcb6c1656ddf36c4223 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import IssueTags from '../IssueTags';
 
index 555d271d42b8842b847f1e8295a29cf6194243d1..0f7dcd76eb4b3abad5848aea7c575a7eb966b9fe 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import IssueTitleBar from '../IssueTitleBar';
+import * as React from 'react';
 import { mockIssue } from '../../../../helpers/testMocks';
+import IssueTitleBar from '../IssueTitleBar';
 
 const issue: T.Issue = mockIssue();
 
index 8e398bfe7822e5324c5be5556cca71e4bf8e9cb0..ace8625d0c60d910702e9a87ac09b5113a35ee6d 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import IssueTransition from '../IssueTransition';
 
index eaa221962a580fa42af9caea64798bcaf7578314..868d59d3885c930c9d19b0ccf6f89bce525ef9cf 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import IssueType from '../IssueType';
 
index 2393284a645f2ea111d0e444f5162f520e8600b9..002fbe027779df8255cec3d4016d2338fc17cace 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
 import { PopupPlacement } from 'sonar-ui-common/components/ui/popups';
+import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
 import { getIssueChangelog } from '../../../api/issues';
-import Avatar from '../../ui/Avatar';
 import DateTimeFormatter from '../../intl/DateTimeFormatter';
+import Avatar from '../../ui/Avatar';
 import IssueChangelogDiff from '../components/IssueChangelogDiff';
 
 interface Props {
index e6417dd06f2f9f446a2c67db1934e37f70ab3c92..28dd4b09cdff237206f7e6722e15eb6fa52c921e 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button } from 'sonar-ui-common/components/controls/buttons';
 import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
 import { PopupPlacement } from 'sonar-ui-common/components/ui/popups';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   onDelete: () => void;
index 94bb358351dcee499ecd38752775bdf4492231b7..aa5e411aa2923c1a17ea5d9514efe1c61ed3b1a1 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { Button, ResetButtonLink } from 'sonar-ui-common/components/controls/buttons';
 import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
 import { PopupPlacement } from 'sonar-ui-common/components/ui/popups';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import MarkdownTips from '../../common/MarkdownTips';
 
 interface Props {
index f019d02f673d1a54a3dcf1cde99e9b22d58a1d83..dc7d94a15bcee75aaa7f78718c86c90825e36454 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { map } from 'lodash';
-import { translate } from 'sonar-ui-common/helpers/l10n';
-import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
+import * as React from 'react';
 import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
-import Avatar from '../../ui/Avatar';
-import SelectList from '../../common/SelectList';
-import SelectListItem from '../../common/SelectListItem';
-import { withCurrentUser } from '../../hoc/withCurrentUser';
+import SearchBox from 'sonar-ui-common/components/controls/SearchBox';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import { searchMembers } from '../../../api/organizations';
 import { searchUsers } from '../../../api/users';
-import { isLoggedIn, isUserActive } from '../../../helpers/users';
 import { isSonarCloud } from '../../../helpers/system';
+import { isLoggedIn, isUserActive } from '../../../helpers/users';
+import SelectList from '../../common/SelectList';
+import SelectListItem from '../../common/SelectListItem';
+import { withCurrentUser } from '../../hoc/withCurrentUser';
+import Avatar from '../../ui/Avatar';
 
 interface Props {
   currentUser: T.CurrentUser;
index 517fd5e9b623953cdfcb304a4a0dd34d1f9754f2..d9b67224347a9ae08f0d8ffb033b7817346fafc7 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { difference, without } from 'lodash';
+import * as React from 'react';
 import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
 import { PopupPlacement } from 'sonar-ui-common/components/ui/popups';
-import TagsSelector from '../../tags/TagsSelector';
 import { searchIssueTags } from '../../../api/issues';
+import TagsSelector from '../../tags/TagsSelector';
 
 interface Props {
   organization: string;
index 5a1b496de7180243e28472ba49a77a7098f04b38..10ffa22cb49338e0b3f6e1bcfb596677e03ace64 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
 import SeverityIcon from 'sonar-ui-common/components/icons/SeverityIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
 import SelectList from '../../common/SelectList';
 import SelectListItem from '../../common/SelectListItem';
 
index 7a281c6e0784e381206aad9890e0e26cda1ff506..019825bdb614cd49faba2997f02788f67a5627c4 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate, hasMessage } from 'sonar-ui-common/helpers/l10n';
 import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
+import { hasMessage, translate } from 'sonar-ui-common/helpers/l10n';
 import SelectList from '../../common/SelectList';
 import SelectListItem from '../../common/SelectListItem';
 
index 6849bb69b4287ff67b43ea71bba394f7369dd7a6..070f01b0271561339718b0ac57b3bf5ebfa6c226 100644 (file)
@@ -18,9 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
 import IssueTypeIcon from 'sonar-ui-common/components/icons/IssueTypeIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 import SelectList from '../../common/SelectList';
 import SelectListItem from '../../common/SelectListItem';
 
index baa824dedcf259a726740486fad7e4c7ceaa6153..b2d34c5a29e03d3bfced278ce1671002cdcefc19 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
 import IssueTypeIcon from 'sonar-ui-common/components/icons/IssueTypeIcon';
 import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon';
 import TagsIcon from 'sonar-ui-common/components/icons/TagsIcon';
-import { fileFromPath, limitComponentName } from 'sonar-ui-common/helpers/path';
 import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
-import { DropdownOverlay } from 'sonar-ui-common/components/controls/Dropdown';
-import Avatar from '../../ui/Avatar';
+import { fileFromPath, limitComponentName } from 'sonar-ui-common/helpers/path';
 import SelectList from '../../common/SelectList';
 import SelectListItem from '../../common/SelectListItem';
 import SeverityHelper from '../../shared/SeverityHelper';
 import StatusHelper from '../../shared/StatusHelper';
+import Avatar from '../../ui/Avatar';
 
 interface Props {
   issue: T.Issue;
index 8045eef9d530bf47f98211449d64f575e91004f3..73d769a6686dfe5dc1362e4dbad138add19aefb4 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import ChangelogPopup from '../ChangelogPopup';
 import { getIssueChangelog } from '../../../../api/issues';
+import ChangelogPopup from '../ChangelogPopup';
 
 jest.mock('../../../../api/issues', () => ({
   getIssueChangelog: jest.fn().mockResolvedValue({
index a4e72ca0de08c505c59385931f7a1dcb2de708b3..f2ac40f9544ae92c5bef4f9b3539faa22afcf7a4 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import CommentDeletePopup from '../CommentDeletePopup';
 
index 3eefe780743fffecd68aab27a39e7b7495177173..bc12cb7bb4424e66b11f9ed346f8fdf421a7be88 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import CommentPopup from '../CommentPopup';
 
index 6eb8153484fa2bd3423ed1358122e093482493e2..1f3265fb0e60fa622b1aeec2c7b0b17fe87aa28c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { SetAssigneePopup } from '../SetAssigneePopup';
-import { mockLoggedInUser, mockUser } from '../../../../helpers/testMocks';
 import { searchMembers } from '../../../../api/organizations';
 import { searchUsers } from '../../../../api/users';
 import { isSonarCloud } from '../../../../helpers/system';
+import { mockLoggedInUser, mockUser } from '../../../../helpers/testMocks';
+import { SetAssigneePopup } from '../SetAssigneePopup';
 
 jest.mock('../../../../helpers/system', () => ({
   isSonarCloud: jest.fn().mockReturnValue(false)
index 6dfe965fb09c07750da94f16e038923b08bdea34..36024269c046bdc55c72c788e90445c23f87c4d2 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SetIssueTagsPopup from '../SetIssueTagsPopup';
 
 it('should render tags popup correctly', () => {
index aabd45d61bfa58f6f1b78e9e7cf818425a8facc3..e9604eddd4f37acdce78790fc583bc869c88d87b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SetSeverityPopup from '../SetSeverityPopup';
 
 it('should render tags popup correctly', () => {
index cd5692f876fb10cc492ef76cf7013f673b65a456..22a87a5e78894027540c30f855fd79211b226919 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { hasMessage } from 'sonar-ui-common/helpers/l10n';
 import SetTransitionPopup, { Props } from '../SetTransitionPopup';
 
index de696a0e50911963d21156b10780434bd245114c..7c18c1660323cb6cd50d001eb578074a014e21b7 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import SetTypePopup from '../SetTypePopup';
 
 it('should render tags popup correctly', () => {
index 962e2d0ca3aec71aecf1cf11b72314c19ea5b8ab..bdb30c90a705bb64a88f64175be1fdba6da6573d 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
-import SimilarIssuesPopup from '../SimilarIssuesPopup';
+import * as React from 'react';
 import { mockIssue } from '../../../../helpers/testMocks';
+import SimilarIssuesPopup from '../SimilarIssuesPopup';
 
 it('should render correctly', () => {
   expect(shallowRender()).toMatchSnapshot();
index 6610e9f9b9668a8667bbd4c75d78744087e9873c..8285def84703021cc2ca386d97b1cc02ad99b350 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import Measure from '../Measure';
 
 jest.mock('../../../helpers/measures', () => {
index 67f6874f8c8d7b25a53d1ea5d4b02f9cf00d19b2..6be67ae4a6443c370327eeaa3c947690adb614fa 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { minBy } from 'lodash';
+import * as React from 'react';
 import { AutoSizer } from 'react-virtualized/dist/commonjs/AutoSizer';
 import AdvancedTimeline from 'sonar-ui-common/components/charts/AdvancedTimeline';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import { formatMeasure } from 'sonar-ui-common/helpers/measures';
-import PreviewGraphTooltips from './PreviewGraphTooltips';
 import {
   DEFAULT_GRAPH,
   generateSeries,
@@ -34,9 +33,10 @@ import {
   Serie,
   splitSeriesInGraphs
 } from '../../apps/projectActivity/utils';
-import { getShortType } from '../../helpers/measures';
 import { getBranchLikeQuery } from '../../helpers/branches';
-import { withRouter, Router } from '../hoc/withRouter';
+import { getShortType } from '../../helpers/measures';
+import { Router, withRouter } from '../hoc/withRouter';
+import PreviewGraphTooltips from './PreviewGraphTooltips';
 
 interface History {
   [x: string]: Array<{ date: Date; value?: string }>;
index b56c8d053ecadececf6b2b8e8662a9d4ee51b7ee..aa21be10a28ff05d91452702abdf1f8ed8253ee2 100644 (file)
@@ -19,9 +19,9 @@
  */
 import * as React from 'react';
 import { Popup, PopupPlacement } from 'sonar-ui-common/components/ui/popups';
-import PreviewGraphTooltipsContent from './PreviewGraphTooltipsContent';
-import DateFormatter from '../intl/DateFormatter';
 import { Serie } from '../../apps/projectActivity/utils';
+import DateFormatter from '../intl/DateFormatter';
+import PreviewGraphTooltipsContent from './PreviewGraphTooltipsContent';
 
 interface Props {
   formatValue: (value: number | string) => string;
index ea84be8aaca15f3a630d78a81471b7e1b52b23a4..c4f34dcba39e43202fef7d712bfec4976426432a 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { parseDate } from 'sonar-ui-common/helpers/dates';
-import PreviewGraphTooltips from '../PreviewGraphTooltips';
 import { DEFAULT_GRAPH } from '../../../apps/projectActivity/utils';
+import PreviewGraphTooltips from '../PreviewGraphTooltips';
 
 const SERIES_ISSUES = [
   {
index 031075f24cf7254e3d59412df874968060e42d3e..31005e08d07908522844c8f39a0a7bb76d6e8aff 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import PreviewGraphTooltipsContent from '../PreviewGraphTooltipsContent';
 
 const DEFAULT_PROPS = {
index 62a529521468fe2a59079984a1ba94b4b8499132..7b08d04e807ee87e2ec6c2a2fa1a2ce3768819e0 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { Link } from 'react-router';
-import { getComponentDrilldownUrl, getComponentIssuesUrl } from '../../helpers/urls';
 import { getBranchLikeQuery } from '../../helpers/branches';
+import { getComponentDrilldownUrl, getComponentIssuesUrl } from '../../helpers/urls';
 
 const ISSUE_MEASURES = [
   'violations',
index 5519994157b8558ef3b150706fb2e6cd02d53cba..4bd5a8b690bba5f93e86c2e34dcf10a68d9dfe54 100644 (file)
@@ -19,7 +19,7 @@
  */
 import * as React from 'react';
 import { connect } from 'react-redux';
-import { getOrganizationByKey, areThereCustomOrganizations, Store } from '../../store/rootReducer';
+import { areThereCustomOrganizations, getOrganizationByKey, Store } from '../../store/rootReducer';
 import OrganizationLink from '../ui/OrganizationLink';
 
 interface OwnProps {
index b9711f2e66029a56946241eb0dc56aa66da315eb..8d6f0004e0ff7307661120a65d669987e93ddd7c 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
-import { translate } from 'sonar-ui-common/helpers/l10n';
 import IssueTypeIcon from 'sonar-ui-common/components/icons/IssueTypeIcon';
+import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
   className?: string;
index 7cea95baf705b4394660019cbb27e066434a812d..ef3a81781b1fa2bf2f477679ee187cf55e332fdb 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import DrilldownLink from '../DrilldownLink';
 
 it('should render correctly', () => {
index d19ec56752484d0b269b59fadd2f6d6aaa09bdc1..49388dabef5647c03a4fa5a0a688d68a0891bdb3 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { UnconnectedOrganization } from '../Organization';
 
 const organization = { key: 'foo', name: 'foo' };
index 6b796b621434dffb548b58b6dbf8f04e14cab771..239e409f66736d4201320402ca220f8eeb5ba0d9 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import * as classNames from 'classnames';
+import * as React from 'react';
 import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
 import TagsIcon from 'sonar-ui-common/components/icons/TagsIcon';
 import './TagsList.css';
index df650fc03c0e0d0785121b122451f13abef97154..9919d2df9791b0a5daa3400c494709833bdac0e2 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import TagsList from '../TagsList';
 
 const tags = ['foo', 'bar'];
index 98879fbaedacb651a0f6be3a7a4fe023958ebe28..65cbf8996023a786adab5b4c1163db757a4b9894 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import TagsSelector, { validateTag } from '../TagsSelector';
 
 const props = {
index 31333e11c1b884861d7449163cb06e4fd107ec93..71294d2b423f1d403bb0922d17e1ec66352038e9 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import * as classNames from 'classnames';
 import * as React from 'react';
 import { connect } from 'react-redux';
-import * as classNames from 'classnames';
 import GenericAvatar from 'sonar-ui-common/components/ui/GenericAvatar';
 import { getGlobalSettingValue, Store } from '../../store/rootReducer';
 
index d07c51f54e74dcbc15cc0a32009230316dae8dde..53285415dea2b0cf74180beb6cab8aa4b7532f5d 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import OrganizationLink from './OrganizationLink';
 import OrganizationAvatar from '../common/OrganizationAvatar';
+import OrganizationLink from './OrganizationLink';
 
 interface Props {
   organization: T.Organization;
index a40d311efd918c6cc999c829ce8a0de9a94ecd17..d0430faace7161e4810bdf064bea61769a915a8e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { unconnectedAvatar as Avatar } from '../Avatar';
 
 const gravatarServerUrl = 'http://example.com/{EMAIL_MD5}.jpg?s={SIZE}';
index 5da06778b703055e236bda1e04dc4404ec392a1e..6da51bfc9883e5bd9a668e9609b0b99409096d6f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import OrganizationLink from '../OrganizationLink';
 
 it('renders', () => {
index d31e49d808bdef22ba6388505f63b055eb5fd764..19a2284c80f33dc7eabe794baaa5272700796180 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import OrganizationListItem from '../OrganizationListItem';
 
 it('renders', () => {
index 938fdd4b138d19a3606b07f16de6f4c613ce8482..3bd52e0cb330a345f83429ae4d5578d7a78cb3b3 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { omit, uniqBy } from 'lodash';
+import * as React from 'react';
 import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
 import { get, save } from 'sonar-ui-common/helpers/storage';
-import { WorkspaceContext, ComponentDescriptor, RuleDescriptor } from './context';
-import WorkspacePortal from './WorkspacePortal';
+import { ComponentDescriptor, RuleDescriptor, WorkspaceContext } from './context';
 import './styles.css';
+import WorkspacePortal from './WorkspacePortal';
 
 const WORKSPACE = 'sonarqube-workspace';
 const WorkspaceNav = lazyLoad(() => import('./WorkspaceNav'));
index a12d22fd256166073725a18ba863d1cc24bb5968..23f0ab0d42dd86bd9d6228a0278471b81b9a4cba 100644 (file)
 import * as React from 'react';
 import { connect } from 'react-redux';
 import { scrollToElement } from 'sonar-ui-common/helpers/scrolling';
-import { ComponentDescriptor } from './context';
-import WorkspaceHeader, { Props as WorkspaceHeaderProps } from './WorkspaceHeader';
-import WorkspaceComponentTitle from './WorkspaceComponentTitle';
-import SourceViewer from '../SourceViewer/SourceViewer';
+import { getParents } from '../../api/components';
 import { isPullRequest, isShortLivingBranch } from '../../helpers/branches';
 import { fetchBranchStatus } from '../../store/rootActions';
-import { getParents } from '../../api/components';
+import SourceViewer from '../SourceViewer/SourceViewer';
+import { ComponentDescriptor } from './context';
+import WorkspaceComponentTitle from './WorkspaceComponentTitle';
+import WorkspaceHeader, { Props as WorkspaceHeaderProps } from './WorkspaceHeader';
 
 export interface Props extends T.Omit<WorkspaceHeaderProps, 'children' | 'onClose'> {
   component: ComponentDescriptor;
index 5641f01b7d2ef1a41e1bac300638ebe7cbb8d7c3..93dbd88a34102516cea46fbe23ef1ad652e1ef27 100644 (file)
  */
 import * as React from 'react';
 import { DraggableCore, DraggableData } from 'react-draggable';
-import { IconProps } from 'sonar-ui-common/components/icons/Icon';
+import { ButtonIcon } from 'sonar-ui-common/components/controls/buttons';
 import ClearIcon from 'sonar-ui-common/components/icons/ClearIcon';
 import CollapseIcon from 'sonar-ui-common/components/icons/CollapseIcon';
 import ExpandIcon from 'sonar-ui-common/components/icons/ExpandIcon';
+import { IconProps } from 'sonar-ui-common/components/icons/Icon';
 import MinimizeIcon from 'sonar-ui-common/components/icons/MinimizeIcon';
 import { translate } from 'sonar-ui-common/helpers/l10n';
-import { ButtonIcon } from 'sonar-ui-common/components/controls/buttons';
 
 export interface Props {
   children: React.ReactNode;
index dfeb97645aa3902dc53b847fe28958fe4f0a4938..fa35a6274ec33e1746956a7e45d7fa79335ca1ba 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { keyBy } from 'lodash';
+import * as React from 'react';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
-import { withAppState } from '../hoc/withAppState';
-import RuleDetailsMeta from '../../apps/coding-rules/components/RuleDetailsMeta';
-import RuleDetailsDescription from '../../apps/coding-rules/components/RuleDetailsDescription';
 import { getRuleDetails, getRulesApp } from '../../api/rules';
+import RuleDetailsDescription from '../../apps/coding-rules/components/RuleDetailsDescription';
+import RuleDetailsMeta from '../../apps/coding-rules/components/RuleDetailsMeta';
 import '../../apps/coding-rules/styles.css';
+import { withAppState } from '../hoc/withAppState';
 
 interface Props {
   appState: Pick<T.AppState, 'organizationsEnabled'>;
index b65e1bf0e9777518e237502ce4a72bf3c60349a3..62f5d27a649b74f9961e1c986573b563abeda6df 100644 (file)
@@ -19,8 +19,8 @@
  */
 import * as React from 'react';
 import LightBulbIcon from 'sonar-ui-common/components/icons/LightBulbIcon';
-import { RuleDescriptor } from './context';
 import { colors } from '../../app/theme';
+import { RuleDescriptor } from './context';
 
 interface Props {
   limited?: boolean;
index 955d414e303d68b27857dc0489bf13cf627b574f..dc41fd78d419d2756f477e5f9a0fb55cfb9d7a61 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import WorkspaceComponentTitle from '../WorkspaceComponentTitle';
 
 it('should render component', () => {
index 1780054d98b58f8a6e5d8113a10f8d01c39300b9..c2a35daf3183df203183a0ba68f6abc60e29bf39 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
-import { WorkspaceComponentViewer, Props } from '../WorkspaceComponentViewer';
-import { mockPullRequest, mockIssue } from '../../../helpers/testMocks';
 import { getParents } from '../../../api/components';
+import { mockIssue, mockPullRequest } from '../../../helpers/testMocks';
+import { Props, WorkspaceComponentViewer } from '../WorkspaceComponentViewer';
 
 jest.mock('../../../api/components', () => ({
   getParents: jest.fn().mockResolvedValue([{ key: 'bar' }])
index 0172da1e9ed1583dcbe9a1ba3704a334c6cfd229..0ad74db2c3d5ff349ee40e1ef7f7b028c2ce13f4 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import WorkspaceHeader, { Props } from '../WorkspaceHeader';
 
 it('should render', () => {
index 24bb04b0e6f8a52fa4a58efee23fd4e11bdfe21b..a4654cf7a8eb09f8265c1f2bf65d1b48333057a3 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import WorkspaceNav, { Props } from '../WorkspaceNav';
 
 it('should render', () => {
index bc9cfa4323cf79f578180438a5cfb173c02aaed4..65c691f05304d9e0a6484bf29259aab5fc426505 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import WorkspaceNavComponent, { Props } from '../WorkspaceNavComponent';
 
 it('should render', () => {
index 3568a8ddfc943be60c3048709dbf13a2f83952d4..19aff5391f0a3abe14238c8b9dead87bbad56c12 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { click } from 'sonar-ui-common/helpers/testUtils';
 import WorkspaceNavItem, { Props } from '../WorkspaceNavItem';
 
index 2ec2eccc408116167b190e864aef1fbb3943964d..0a196d274de0030bb25b615936aad957262f310b 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import WorkspaceNavRule, { Props } from '../WorkspaceNavRule';
 
 it('should render', () => {
index 8dc5fd9fd1840c3ed3f685a913a571c96b9459cb..644e25576a1d00fe0a0fbd8ce0edf030716c5294 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import WorkspacePortal from '../WorkspacePortal';
 
 it('should create portal element', () => {
index 82d6e06bad940bbfc29548d44db2c20625bb4505..d50013bb746ce283e5a98ebbde59b5e81d613bd6 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils';
 import { WorkspaceRuleDetails } from '../WorkspaceRuleDetails';
 
index 887882170098c51cd54cad6225ee08aba43fd8f2..a22966d224a91ce71a227def973560e75222384e 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import WorkspaceRuleTitle from '../WorkspaceRuleTitle';
 
 it('should render rule', () => {
index 62d39d710e46489ebe5913ebd9955332382a8a5e..244b79ebd517cc2380fd9ed968ae49d88d207f62 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import * as React from 'react';
 import { shallow } from 'enzyme';
+import * as React from 'react';
 import WorkspaceRuleViewer, { Props } from '../WorkspaceRuleViewer';
 
 jest.useFakeTimers();
index 8d36e05525309d4dc0390c18de7f6933c63875f4..62ae329732a361098b62ca163c618e1a08624719 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import {
+  getAlmMembersUrl,
+  getUserAlmKey,
   isBitbucket,
   isGithub,
   isVSTS,
-  sanitizeAlmId,
-  getAlmMembersUrl,
-  getUserAlmKey
+  sanitizeAlmId
 } from '../almIntegrations';
 import { mockCurrentUser, mockLoggedInUser } from '../testMocks';
 
index d84f430be0cd96d256051407e576cf746d846953..34f7dbf42a4e040e025063d4b65ae0c281506e85 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { sortBranchesAsTree, isSameBranchLike } from '../branches';
+import { isSameBranchLike, sortBranchesAsTree } from '../branches';
 import {
-  mockShortLivingBranch,
   mockLongLivingBranch,
+  mockMainBranch,
   mockPullRequest,
-  mockMainBranch
+  mockShortLivingBranch
 } from '../testMocks';
 
 describe('#sortBranchesAsTree', () => {
index 182fa0e54d6a594e310c54a3783bfa4fa1504e08..7fc9525f8173984f52f70a6b4bf6316a1d0d18e1 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import exposeLibraries from '../../app/components/extensions/exposeLibraries';
 import { getExtensionStart, installScript } from '../extensions';
 import { installExtensionsHandler } from '../extensionsHandler';
-import exposeLibraries from '../../app/components/extensions/exposeLibraries';
 
 jest.mock('../../app/components/extensions/exposeLibraries', () => ({
   default: jest.fn()
index b292f321cf38b29050d153ca7a1bd69bb4af4bd0..2711e5f3f361b07425b5649966960d1598eb47bd 100644 (file)
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { getFrontMatter, separateFrontMatter, filterContent } from '../markdown';
+import { filterContent, getFrontMatter, separateFrontMatter } from '../markdown';
 import { isSonarCloud } from '../system';
 
 jest.mock('../system', () => ({
index 1b440f03edf1fa28408117b8345082bef4d5b4b2..340f158919c8a3071f1b08883e47239991ceb85b 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import {
-  isSameStatusConditionList,
-  extractStatusConditionsFromProjectStatus
+  extractStatusConditionsFromProjectStatus,
+  isSameStatusConditionList
 } from '../qualityGates';
-import { mockQualityGateStatusCondition, mockQualityGateProjectStatus } from '../testMocks';
+import { mockQualityGateProjectStatus, mockQualityGateStatusCondition } from '../testMocks';
 
 describe('extractStatusConditionsFromProjectStatus', () => {
   it('should correclty extract the conditions for the project status', () => {
index be61813112b71cbfb7c6969f975badff48db9344..f4d217588ab052225f13ac46d55e75f079ea4fc0 100644 (file)
@@ -18,8 +18,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import {
-  getComponentIssuesUrl,
   getComponentDrilldownUrl,
+  getComponentIssuesUrl,
   getQualityGatesUrl,
   getQualityGateUrl
 } from '../urls';
index a9b33558b36b208c81619e565ed5b0a7301369a2..fcf39a2124dd1878cfd35cb911ec7c4fbd33e15d 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 /* eslint-disable sonarjs/no-duplicate-string */
-import { InjectedRouter } from 'react-router';
-import { Store, createStore } from 'redux';
 import { Location } from 'history';
+import { InjectedRouter } from 'react-router';
+import { createStore, Store } from 'redux';
+import { DocumentationEntry } from '../apps/documentation/utils';
 import { ParsedAnalysis } from '../apps/projectActivity/utils';
 import { Profile } from '../apps/quality-profiles/types';
-import { DocumentationEntry } from '../apps/documentation/utils';
 
 export function mockAlmApplication(overrides: Partial<T.AlmApplication> = {}): T.AlmApplication {
   return {
index 10634b814965d9dc4c5386120462b69180fc20c1..73afb0e5053585bbd4a2dd8b3358f019c20408e7 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { getBaseUrl, Location } from 'sonar-ui-common/helpers/urls';
+import { getProfilePath } from '../apps/quality-profiles/utils';
 import {
-  isShortLivingBranch,
-  isPullRequest,
+  getBranchLikeQuery,
   isLongLivingBranch,
-  getBranchLikeQuery
+  isPullRequest,
+  isShortLivingBranch
 } from './branches';
-import { getProfilePath } from '../apps/quality-profiles/utils';
 
 type Query = Location['query'];
 
index 69f97631b04e8b2eedb749bd8a5581a2ba6f8a1c..875736d7a6336fad3cdcb25afec9d7924f7a3658 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
+import { getBranchLikeKey } from '../../helpers/branches';
+import {
+  mockLongLivingBranch,
+  mockPullRequest,
+  mockQualityGateStatusCondition,
+  mockShortLivingBranch
+} from '../../helpers/testMocks';
 import reducer, {
-  registerBranchStatusAction,
   getBranchStatusByBranchLike,
+  registerBranchStatusAction,
   State
 } from '../branches';
-import {
-  mockPullRequest,
-  mockLongLivingBranch,
-  mockShortLivingBranch,
-  mockQualityGateStatusCondition
-} from '../../helpers/testMocks';
-import { getBranchLikeKey } from '../../helpers/branches';
 
 type TestArgs = [T.BranchLike, string, T.Status, T.QualityGateStatusCondition[], boolean?];
 
index 716b37ef355c639df576f803ba50608c8de99281..0fc3bef90f37c986912fcca1143f76685bf8c24c 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import reducer, {
-  getOrganizationByKey,
   areThereCustomOrganizations,
+  createOrganization,
+  deleteOrganization,
   getMyOrganizations,
-  State,
-  receiveOrganizations,
+  getOrganizationByKey,
   receiveMyOrganizations,
-  createOrganization,
-  updateOrganization,
-  deleteOrganization
+  receiveOrganizations,
+  State,
+  updateOrganization
 } from '../organizations';
 
 const state0: State = { byKey: {}, my: [] };
index 42e05bac7295216148d0e6b94126a423d3d72edc..4828f7559f0b7be7c7adfc702d024104c87f875a 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { registerBranchStatus, fetchBranchStatus } from '../rootActions';
 import { mockLongLivingBranch, mockQualityGateStatusCondition } from '../../helpers/testMocks';
 import { registerBranchStatusAction } from '../branches';
+import { fetchBranchStatus, registerBranchStatus } from '../rootActions';
 
 jest.useFakeTimers();
 
index e31f34625b8b28482caf09bb2b05a829135baef8..e55d671c55e0d5ce1f7daecb1494c4cc5a143bd0 100644 (file)
@@ -17,9 +17,9 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { getBranchStatusByBranchLike, Store } from '../rootReducer';
-import * as fromBranches from '../branches';
 import { mockPullRequest } from '../../helpers/testMocks';
+import * as fromBranches from '../branches';
+import { getBranchStatusByBranchLike, Store } from '../rootReducer';
 
 jest.mock('../branches', () => {
   return {
index 18b42bba90efe212353cf5a9b97dc58e007bfdc1..844fe669c22d552728730f0c9dcf5c0bf25c2cef 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { ActionType } from './utils/actions';
 import { EditionKey } from '../apps/marketplace/utils';
+import { ActionType } from './utils/actions';
 
 export const enum Actions {
   SetAppState = 'SET_APP_STATE',
index ede17adbb7fefa85a67110ee051b946d66d88d1d..fee3975287bb829fe5ca63a5589d3c63325d9462 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { ActionType } from './utils/actions';
 import { getBranchLikeKey } from '../helpers/branches';
+import { ActionType } from './utils/actions';
 
 export interface BranchStatusData {
   conditions?: T.QualityGateStatusCondition[];
index e1f870d23bd7468db3a211310b9fbdea3d8fb916..3e939267bf80ff223f2c3f452e193b9a4045e622 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { combineReducers } from 'redux';
 import { omit, uniq, without } from 'lodash';
+import { combineReducers } from 'redux';
 import { ActionType } from './utils/actions';
 
 type ReceiveOrganizationsAction =
index aeeabcaf31d2b94852d6df94695b17e361fe03e7..f7ffb9022cb7c3dd6283afe3da0c310134bf60bc 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { Dispatch } from 'redux';
-import { InjectedRouter } from 'react-router';
 import { debounce } from 'lodash';
-import { requireAuthorization as requireAuthorizationAction } from './appState';
-import { registerBranchStatusAction } from './branches';
-import { addGlobalErrorMessage } from './globalMessages';
-import { receiveLanguages } from './languages';
-import { receiveMetrics } from './metrics';
-import { receiveOrganizations } from './organizations';
+import { InjectedRouter } from 'react-router';
+import { Dispatch } from 'redux';
 import * as auth from '../api/auth';
 import { getLanguages } from '../api/languages';
 import { getAllMetrics } from '../api/metrics';
-import { getOrganizations, getOrganization, getOrganizationNavigation } from '../api/organizations';
+import { getOrganization, getOrganizationNavigation, getOrganizations } from '../api/organizations';
 import { getQualityGateProjectStatus } from '../api/quality-gates';
 import { getBranchLikeQuery } from '../helpers/branches';
 import { extractStatusConditionsFromProjectStatus } from '../helpers/qualityGates';
+import { requireAuthorization as requireAuthorizationAction } from './appState';
+import { registerBranchStatusAction } from './branches';
+import { addGlobalErrorMessage } from './globalMessages';
+import { receiveLanguages } from './languages';
+import { receiveMetrics } from './metrics';
+import { receiveOrganizations } from './organizations';
 
 export function fetchLanguages() {
   return (dispatch: Dispatch) => {
index c1b94e09bba63fb78b1bffbc4950215611ea9be9..8f84611026049df6f269c6051ebe7fe101d13470 100644 (file)
@@ -18,6 +18,7 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { combineReducers } from 'redux';
+import settingsApp, * as fromSettingsApp from '../apps/settings/store/rootReducer';
 import appState from './appState';
 import branches, * as fromBranches from './branches';
 import globalMessages, * as fromGlobalMessages from './globalMessages';
@@ -25,7 +26,6 @@ import languages, * as fromLanguages from './languages';
 import metrics, * as fromMetrics from './metrics';
 import organizations, * as fromOrganizations from './organizations';
 import users, * as fromUsers from './users';
-import settingsApp, * as fromSettingsApp from '../apps/settings/store/rootReducer';
 
 export type Store = {
   appState: T.AppState;
index 3075ff565bd5f42c4bd2920845830fa5df1894d1..d03d6390ea776667d4fa244c0d298c1236ebaedb 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import { uniq } from 'lodash';
-import { Dispatch, combineReducers } from 'redux';
-import { ActionType } from './utils/actions';
-import { isLoggedIn } from '../helpers/users';
+import { combineReducers, Dispatch } from 'redux';
 import * as api from '../api/users';
+import { isLoggedIn } from '../helpers/users';
+import { ActionType } from './utils/actions';
 
 const enum Actions {
   ReceiveCurrentUser = 'RECEIVE_CURRENT_USER',
index f163fd5f1e1b32a38b3fa9b64705752cad14654a..c3442937514f51c5eddde8b4887646be715c67ea 100644 (file)
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import { createStore, applyMiddleware, compose } from 'redux';
+import { applyMiddleware, compose, createStore } from 'redux';
 import thunk, { ThunkMiddleware } from 'redux-thunk';
 
 type RootReducer = typeof import('../rootReducer').default;