diff options
author | philippe-perrin-sonarsource <philippe.perrin@sonarsource.com> | 2019-07-18 17:17:58 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-07-19 20:21:16 +0200 |
commit | 46fea6a78e91056d85dc46ca8ab050829b9e1015 (patch) | |
tree | 5423291f04df49b7dbac69943806dc44a9095896 /server/sonar-web/src/main/js/apps/quality-profiles/compare | |
parent | 1f0b0d4b14918e93290409c7a277e3ab1b79def6 (diff) | |
download | sonarqube-46fea6a78e91056d85dc46ca8ab050829b9e1015.tar.gz sonarqube-46fea6a78e91056d85dc46ca8ab050829b9e1015.zip |
Sort import in sonar-web
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-profiles/compare')
7 files changed, 13 insertions, 13 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonContainer.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonContainer.tsx index 1a201c990bd..b3bfb157f0e 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonContainer.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonContainer.tsx @@ -19,11 +19,11 @@ */ 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; diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonForm.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonForm.tsx index fde6c0583ad..280d29db061 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonForm.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonForm.tsx @@ -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 { diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonResultActivation.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonResultActivation.tsx index e58e2bf64ce..a9c556510b3 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonResultActivation.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonResultActivation.tsx @@ -18,10 +18,10 @@ * 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'; diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonResults.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonResults.tsx index 18ccfe9808e..6efe7b368f3 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonResults.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonResults.tsx @@ -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>; diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonForm-test.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonForm-test.tsx index 514a7acd2d0..288ef7d986e 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonForm-test.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonForm-test.tsx @@ -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(); diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonResultActivation-test.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonResultActivation-test.tsx index 2c8d7450b3d..150777c095a 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonResultActivation-test.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonResultActivation-test.tsx @@ -17,11 +17,11 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 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' }) diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonResults-test.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonResults-test.tsx index 3653943ff56..72f7b89cb83 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonResults-test.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonResults-test.tsx @@ -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( |