]> source.dussan.org Git - sonarqube.git/commitdiff
fix indentation
authorStas Vilchik <vilchiks@gmail.com>
Wed, 22 Feb 2017 08:32:55 +0000 (09:32 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 23 Feb 2017 17:32:24 +0000 (18:32 +0100)
137 files changed:
server/sonar-web/src/main/js/app/components/AdminContainer.js
server/sonar-web/src/main/js/app/components/App.js
server/sonar-web/src/main/js/app/components/nav/component/ComponentNav.js
server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMeta.js
server/sonar-web/src/main/js/app/components/nav/component/__tests__/ComponentNavBreadcrumbs-test.js
server/sonar-web/src/main/js/app/components/nav/global/SearchView.js
server/sonar-web/src/main/js/apps/account/components/Security.js
server/sonar-web/src/main/js/apps/account/notifications/Projects.js
server/sonar-web/src/main/js/apps/account/notifications/__tests__/GlobalNotifications-test.js
server/sonar-web/src/main/js/apps/account/notifications/__tests__/Notifications-test.js
server/sonar-web/src/main/js/apps/account/notifications/__tests__/NotificationsList-test.js
server/sonar-web/src/main/js/apps/account/notifications/__tests__/ProjectNotifications-test.js
server/sonar-web/src/main/js/apps/account/notifications/__tests__/Projects-test.js
server/sonar-web/src/main/js/apps/account/notifications/actions.js
server/sonar-web/src/main/js/apps/account/projects/ProjectCard.js
server/sonar-web/src/main/js/apps/account/projects/__tests__/ProjectCard-test.js
server/sonar-web/src/main/js/apps/account/projects/__tests__/Projects-test.js
server/sonar-web/src/main/js/apps/coding-rules/bulk-change-modal-view.js
server/sonar-web/src/main/js/apps/component-measures/app/AppContainer.js
server/sonar-web/src/main/js/apps/component-measures/components/bubbleChart/MeasureBubbleChartContainer.js
server/sonar-web/src/main/js/apps/component-measures/details/MeasureDetailsContainer.js
server/sonar-web/src/main/js/apps/component-measures/details/actions.js
server/sonar-web/src/main/js/apps/component-measures/details/drilldown/ListViewContainer.js
server/sonar-web/src/main/js/apps/component-measures/details/drilldown/TreeViewContainer.js
server/sonar-web/src/main/js/apps/component-measures/details/history/MeasureHistoryContainer.js
server/sonar-web/src/main/js/apps/component-measures/details/treemap/MeasureTreemapContainer.js
server/sonar-web/src/main/js/apps/component-measures/home/AllMeasuresContainer.js
server/sonar-web/src/main/js/apps/component-measures/home/DomainMeasuresContainer.js
server/sonar-web/src/main/js/apps/component-measures/home/HomeContainer.js
server/sonar-web/src/main/js/apps/issues/BulkChangeForm.js
server/sonar-web/src/main/js/apps/organizations/components/__tests__/OrganizationAdmin-test.js
server/sonar-web/src/main/js/apps/organizations/components/__tests__/OrganizationPage-test.js
server/sonar-web/src/main/js/apps/organizations/navigation/__tests__/OrganizationNavigation-test.js
server/sonar-web/src/main/js/apps/overview/actions.js
server/sonar-web/src/main/js/apps/overview/components/OverviewApp.js
server/sonar-web/src/main/js/apps/overview/components/Timeline.js
server/sonar-web/src/main/js/apps/overview/main/CodeSmells.js
server/sonar-web/src/main/js/apps/overview/main/Coverage.js
server/sonar-web/src/main/js/apps/overview/main/Duplications.js
server/sonar-web/src/main/js/apps/overview/meta/__tests__/MetaLink-test.js
server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateCondition.js
server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateConditions.js
server/sonar-web/src/main/js/apps/overview/qualityGate/__tests__/QualityGateCondition-test.js
server/sonar-web/src/main/js/apps/permission-templates/components/ActionsCell.js
server/sonar-web/src/main/js/apps/permission-templates/components/App.js
server/sonar-web/src/main/js/apps/permission-templates/components/AppContainer.js
server/sonar-web/src/main/js/apps/permission-templates/components/List.js
server/sonar-web/src/main/js/apps/permission-templates/components/Template.js
server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/ActionsCell-test.js
server/sonar-web/src/main/js/apps/permission-templates/views/CreateView.js
server/sonar-web/src/main/js/apps/permission-templates/views/DeleteView.js
server/sonar-web/src/main/js/apps/permission-templates/views/UpdateView.js
server/sonar-web/src/main/js/apps/permission-templates/views/UsersView.js
server/sonar-web/src/main/js/apps/permissions/global/components/AllHoldersList.js
server/sonar-web/src/main/js/apps/permissions/global/components/PageHeader.js
server/sonar-web/src/main/js/apps/permissions/project/components/AllHoldersList.js
server/sonar-web/src/main/js/apps/permissions/project/components/PageHeader.js
server/sonar-web/src/main/js/apps/permissions/shared/components/PageError.js
server/sonar-web/src/main/js/apps/project-admin/key/BulkUpdate.js
server/sonar-web/src/main/js/apps/project-admin/key/BulkUpdateResults.js
server/sonar-web/src/main/js/apps/project-admin/key/Key.js
server/sonar-web/src/main/js/apps/project-admin/links/Links.js
server/sonar-web/src/main/js/apps/project-admin/quality-gate/QualityGate.js
server/sonar-web/src/main/js/apps/project-admin/quality-profiles/QualityProfiles.js
server/sonar-web/src/main/js/apps/project-admin/store/actions.js
server/sonar-web/src/main/js/apps/projectActivity/actions.js
server/sonar-web/src/main/js/apps/projectActivity/components/Events.js
server/sonar-web/src/main/js/apps/projects-admin/AppContainer.js
server/sonar-web/src/main/js/apps/projects-admin/main.js
server/sonar-web/src/main/js/apps/projects/components/AllProjectsContainer.js
server/sonar-web/src/main/js/apps/projects/components/FavoriteFilterContainer.js
server/sonar-web/src/main/js/apps/projects/components/FavoriteProjectsContainer.js
server/sonar-web/src/main/js/apps/projects/components/PageHeaderContainer.js
server/sonar-web/src/main/js/apps/projects/components/ProjectCardContainer.js
server/sonar-web/src/main/js/apps/projects/components/ProjectsListContainer.js
server/sonar-web/src/main/js/apps/projects/components/ProjectsListFooterContainer.js
server/sonar-web/src/main/js/apps/projects/store/facetsDuck.js
server/sonar-web/src/main/js/apps/projects/store/stateDuck.js
server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/ThresholdInput-test.js
server/sonar-web/src/main/js/apps/quality-gates/containers/DetailsContainer.js
server/sonar-web/src/main/js/apps/quality-gates/containers/QualityGatesAppContainer.js
server/sonar-web/src/main/js/apps/quality-gates/views/copy-view.js
server/sonar-web/src/main/js/apps/quality-gates/views/create-view.js
server/sonar-web/src/main/js/apps/quality-gates/views/delete-view.js
server/sonar-web/src/main/js/apps/quality-gates/views/gate-conditions-delete-view.js
server/sonar-web/src/main/js/apps/quality-gates/views/rename-view.js
server/sonar-web/src/main/js/apps/quality-profiles/__tests__/utils-test.js
server/sonar-web/src/main/js/apps/quality-profiles/changelog/ParameterChange.js
server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/ChangelogSearch-test.js
server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonResults.js
server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonForm-test.js
server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonResults-test.js
server/sonar-web/src/main/js/apps/quality-profiles/components/AppContainer.js
server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.js
server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.js
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileInheritanceBox.js
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileRules.js
server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.js
server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionRules.js
server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesList.js
server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListHeader.js
server/sonar-web/src/main/js/apps/sessions/components/LoginFormContainer.js
server/sonar-web/src/main/js/apps/settings/components/AllCategoriesList.js
server/sonar-web/src/main/js/apps/settings/components/App.js
server/sonar-web/src/main/js/apps/settings/components/CategoryDefinitionsList.js
server/sonar-web/src/main/js/apps/settings/components/Definition.js
server/sonar-web/src/main/js/apps/settings/components/EmailForm.js
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/InputForBoolean-test.js
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/InputForNumber-test.js
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/InputForPassword-test.js
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/InputForSingleSelectList-test.js
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/InputForString-test.js
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/InputForText-test.js
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/MultiValueInput-test.js
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/SimpleInput-test.js
server/sonar-web/src/main/js/apps/settings/encryption/EncryptionAppContainer.js
server/sonar-web/src/main/js/apps/settings/licenses/LicenseRowContainer.js
server/sonar-web/src/main/js/apps/settings/licenses/LicensesListContainer.js
server/sonar-web/src/main/js/apps/settings/serverId/ServerIdAppContainer.js
server/sonar-web/src/main/js/apps/settings/store/definitions/reducer.js
server/sonar-web/src/main/js/components/charts/__tests__/bar-chart-test.js
server/sonar-web/src/main/js/components/charts/__tests__/line-chart-test.js
server/sonar-web/src/main/js/components/charts/__tests__/treemap-test.js
server/sonar-web/src/main/js/components/controls/FavoriteContainer.js
server/sonar-web/src/main/js/components/controls/ListFooter.js
server/sonar-web/src/main/js/components/controls/__tests__/FavoriteBase-test.js
server/sonar-web/src/main/js/components/shared/__tests__/Organization-test.js
server/sonar-web/src/main/js/components/shared/drilldown-link.js
server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js
server/sonar-web/src/main/js/components/ui/__tests__/Avatar-test.js
server/sonar-web/src/main/js/helpers/__tests__/urls-test.js
server/sonar-web/src/main/js/helpers/handlebars/changelog.js
server/sonar-web/src/main/js/helpers/measures.js
server/sonar-web/src/main/js/helpers/urls.js
server/sonar-web/src/main/js/store/notifications/duck.js
server/sonar-web/src/main/js/store/rootActions.js
server/sonar-web/src/main/js/store/utils/configureStore.js

index e56d6374458b405257b8403d329782244c0a0b31..f0830c3b9a35fac4f68110d5d49061daaf75121e 100644 (file)
@@ -38,8 +38,8 @@ class AdminContainer extends React.Component {
 
   loadData () {
     getSettingsNavigation().then(
-        r => this.props.setAdminPages(r.extensions),
-        onFail(this.props.dispatch)
+      r => this.props.setAdminPages(r.extensions),
+      onFail(this.props.dispatch)
     );
   }
 
index fbe4deded29ea2c5d70328bbaa48295a8264235f..db7f3aecaa23a69118da9f0659ece1868ef8f55c 100644 (file)
@@ -71,6 +71,6 @@ class App extends React.Component {
 }
 
 export default connect(
-    null,
+  null,
     { fetchAppState, fetchCurrentUser, fetchLanguages, fetchOrganizations }
 )(App);
index bd9ccd72f5c1cc4957c1a77c724705025e98e389..d0e02dcbae86c70d9128c347d448cd93eb845e35 100644 (file)
@@ -56,10 +56,10 @@ export default React.createClass({
     const { qualifier } = breadcrumbs[breadcrumbs.length - 1];
     if (['TRK', 'VW', 'DEV'].indexOf(qualifier) !== -1) {
       RecentHistory.add(
-          this.props.component.key,
-          this.props.component.name,
-          qualifier.toLowerCase(),
-          this.props.component.organization
+        this.props.component.key,
+        this.props.component.name,
+        qualifier.toLowerCase(),
+        this.props.component.organization
       );
     }
   },
index 22e969235d4696eab86bb2c7ca2000fe02eb95fa..bd2273f966248dd45f48941d7bdaad24dd8069a3 100644 (file)
@@ -34,7 +34,7 @@ export default React.createClass({
           translateWithParameters('component_navigation.status.in_progress.admin', backgroundTasksUrl) :
           translate('component_navigation.status.in_progress');
       metaList.push(
-          <li key="isInProgress" data-toggle="tooltip" title={tooltip}>
+        <li key="isInProgress" data-toggle="tooltip" title={tooltip}>
             <i className="spinner" style={{ marginTop: '-1px' }}/>
             {' '}
             <span className="text-info">{translate('background_task.status.IN_PROGRESS')}</span>
@@ -45,7 +45,7 @@ export default React.createClass({
           translateWithParameters('component_navigation.status.pending.admin', backgroundTasksUrl) :
           translate('component_navigation.status.pending');
       metaList.push(
-          <li key="isPending" data-toggle="tooltip" title={tooltip}>
+        <li key="isPending" data-toggle="tooltip" title={tooltip}>
             <PendingIcon/> <span>{translate('background_task.status.PENDING')}</span>
           </li>
       );
@@ -54,7 +54,7 @@ export default React.createClass({
           translateWithParameters('component_navigation.status.failed.admin', backgroundTasksUrl) :
           translate('component_navigation.status.failed');
       metaList.push(
-          <li key="isFailed" data-toggle="tooltip" title={tooltip}>
+        <li key="isFailed" data-toggle="tooltip" title={tooltip}>
             <span className="badge badge-danger">{translate('background_task.status.FAILED')}</span>
           </li>
       );
index 046bd3a34f09dc32f82439ed1ff7a639e036a0df..e8c6e930bd0b1596d263d495355f4c2272442545 100644 (file)
@@ -31,7 +31,7 @@ it('should render organization', () => {
   const breadcrumbs = [{ key: 'my-project', name: 'My Project', qualifier: 'TRK' }];
   const organization = { key: 'foo', name: 'The Foo Organization' };
   const result = shallow(
-      <Unconnected
+    <Unconnected
           breadcrumbs={breadcrumbs}
           organization={organization}
           shouldOrganizationBeDisplayed={true}/>);
index 46946e22548c46393cb742954345770472f909af..cf711c889e84babd339da9b49de4bfd5e577f48b 100644 (file)
@@ -110,8 +110,8 @@ export default Marionette.LayoutView.extend({
     this.favorite = [];
     if (this.model.get('currentUser').isLoggedIn) {
       this.fetchFavorite().then(
-          () => this.resetResultsToDefault(),
-          () => this.resetResultsToDefault()
+        () => this.resetResultsToDefault(),
+        () => this.resetResultsToDefault()
       );
     } else {
       this.resetResultsToDefault();
index 5c049e9cc9a3598b5ce09ffb4e44d369be058a43..f4f05a1a3c55148a63440957f3cb58663915d4f4 100644 (file)
@@ -53,5 +53,5 @@ class Security extends React.Component {
 }
 
 export default connect(
-    state => ({ user: getCurrentUser(state) })
+  state => ({ user: getCurrentUser(state) })
 )(Security);
index 8794a712f875cc116d2660631dcaac15ea05a1c3..cf2796cf0222ef970a886cebafb25a4583384402 100644 (file)
@@ -51,9 +51,9 @@ class Projects extends React.Component {
   componentWillReceiveProps (nextProps: Props) {
     // remove all projects from `this.state.addedProjects` that already exist in `nextProps.projects`
     const nextAddedProjects = differenceBy(
-        this.state.addedProjects,
-        nextProps.projects,
-        project => project.key
+      this.state.addedProjects,
+      nextProps.projects,
+      project => project.key
     );
 
     if (nextAddedProjects.length !== this.state.addedProjects) {
index 45d61dcf2b3ea257616bc36818e6e1244a3443b2..764a499eec89f3e316d0a5824e0f9e4caeaad684 100644 (file)
@@ -31,7 +31,7 @@ it('should match snapshot', () => {
   ];
 
   expect(shallow(
-      <UnconnectedGlobalNotifications
+    <UnconnectedGlobalNotifications
           notifications={notifications}
           channels={channels}
           types={types}
index c33ea8b1cdc694bb32e9b4cc21268a8b6489e38e..69ccb43e7f06a617720fc393d69671a5ae3e2d3b 100644 (file)
@@ -23,6 +23,6 @@ import { UnconnectedNotifications } from '../Notifications';
 
 it('should match snapshot', () => {
   expect(shallow(
-      <UnconnectedNotifications fetchNotifications={jest.fn()}/>
+    <UnconnectedNotifications fetchNotifications={jest.fn()}/>
   )).toMatchSnapshot();
 });
index b3e647690de6f00e039777fbbc54b76a244d8fc8..2fafd101315b72cde7745c9c68afc756f5762aa0 100644 (file)
@@ -33,7 +33,7 @@ const checkboxId = (t, c) => `checkbox-io-${t}-${c}`;
 
 it('should match snapshot', () => {
   expect(shallow(
-      <NotificationsList
+    <NotificationsList
           onAdd={jest.fn()}
           onRemove={jest.fn()}
           channels={channels}
@@ -47,7 +47,7 @@ it('should call `onAdd` and `onRemove`', () => {
   const onAdd = jest.fn();
   const onRemove = jest.fn();
   const wrapper = shallow(
-      <NotificationsList
+    <NotificationsList
           onAdd={onAdd}
           onRemove={onRemove}
           channels={channels}
index 59f4aa0573651ddcec34379d60b8d3a37874f4fb..300e6bd2e74838859c7a54676f5c141318821949 100644 (file)
@@ -32,7 +32,7 @@ const notifications = [
 
 it('should match snapshot', () => {
   expect(shallow(
-      <UnconnectedProjectNotifications
+    <UnconnectedProjectNotifications
           project={{ key: 'foo', name: 'Foo' }}
           notifications={notifications}
           channels={channels}
@@ -46,7 +46,7 @@ it('should call `addNotification` and `removeNotification`', () => {
   const addNotification = jest.fn();
   const removeNotification = jest.fn();
   const wrapper = shallow(
-      <UnconnectedProjectNotifications
+    <UnconnectedProjectNotifications
           project={{ key: 'foo', name: 'Foo' }}
           notifications={notifications}
           channels={channels}
index be06ca976f40ba5761af7fd4b7578c8d1d3e8086..eb9d5b4c3b3f523f906482d2e675a63133314107 100644 (file)
@@ -30,7 +30,7 @@ const newProject = { key: 'qux', name: 'Qux' };
 
 it('should render projects', () => {
   const wrapper = shallow(
-      <UnconnectedProjects projects={projects}/>
+    <UnconnectedProjects projects={projects}/>
   );
   expect(wrapper).toMatchSnapshot();
 
index 9562cbef45f544718fec63546512fd09059fb662..053a7aab6c4fe38f2f55c83befa69f592cb54986 100644 (file)
@@ -36,10 +36,10 @@ export const fetchNotifications = () => (dispatch: Function) => {
 
     dispatch(fetchOrganizations(organizations)).then(() => {
       dispatch(receiveNotifications(
-          response.notifications,
-          response.channels,
-          response.globalTypes,
-          response.perProjectTypes
+        response.notifications,
+        response.channels,
+        response.globalTypes,
+        response.perProjectTypes
       ));
     });
   };
@@ -49,14 +49,14 @@ export const fetchNotifications = () => (dispatch: Function) => {
 
 export const addNotification = (n: Notification) => (dispatch: Function) => (
     api.addNotification(n.channel, n.type, n.project).then(
-        () => dispatch(addNotificationAction(n)),
-        onFail(dispatch)
+      () => dispatch(addNotificationAction(n)),
+      onFail(dispatch)
     )
 );
 
 export const removeNotification = (n: Notification) => (dispatch: Function) => (
     api.removeNotification(n.channel, n.type, n.project).then(
-        () => dispatch(removeNotificationAction(n)),
-        onFail(dispatch)
+      () => dispatch(removeNotificationAction(n)),
+      onFail(dispatch)
     )
 );
index 6013216f50b086183b73b64ee67ebb98864b1a13..ad0fb0caf157bd5625411a1c35783f3671fe95d7 100644 (file)
@@ -43,8 +43,8 @@ export default class ProjectCard extends React.Component {
                 <div className="account-project-analysis"
                      title={analysisMoment.format('LLL')}>
                   {translateWithParameters(
-                      'my_account.projects.analyzed_x',
-                      analysisMoment.fromNow()
+                    'my_account.projects.analyzed_x',
+                    analysisMoment.fromNow()
                   )}
                 </div>
             ) : (
index 85a8fe5cf95ecc5cf81add771b5d77fbedc7641c..9378a023f7aa98541a8939add688c8a070bc1e43 100644 (file)
@@ -61,7 +61,7 @@ it('should not render analysis date', () => {
 it('should render quality gate status', () => {
   const project = { ...BASE, qualityGate: 'ERROR' };
   const output = shallow(
-      <ProjectCard project={project}/>
+    <ProjectCard project={project}/>
   );
   expect(output.find('.account-project-quality-gate').find(Level).prop('level')).toBe('ERROR');
 });
index 6e72afb8e13a2e917ab3e5de633d2393bdeb9558..470050668cabd1c7d2a73977d12cb1e8d9706497 100644 (file)
@@ -30,7 +30,7 @@ it('should render list of ProjectCards', () => {
   ];
 
   const output = shallow(
-      <Projects
+    <Projects
           projects={projects}
           total={5}
           loading={false}
@@ -49,7 +49,7 @@ it('should render ListFooter', () => {
   const loadMore = jest.fn();
 
   const footer = shallow(
-      <Projects
+    <Projects
           projects={projects}
           total={5}
           loading={false}
@@ -65,7 +65,7 @@ it('should render ListFooter', () => {
 
 it('should render when no results', () => {
   const output = shallow(
-      <Projects
+    <Projects
           projects={[]}
           total={0}
           loading={false}
index ae7d89af6583d8f4bd0a3e24415fe16144ba5a0e..3611d044d441bccd41649f4c5ebcb20b9a26069f 100644 (file)
@@ -35,14 +35,14 @@ export default ModalFormView.extend({
   showSuccessMessage (profile, succeeded) {
     const profileBase = this.options.app.qualityProfiles.find(p => p.key === profile);
     const message = translateWithParameters('coding_rules.bulk_change.success',
-        profileBase.name, profileBase.language, succeeded);
+      profileBase.name, profileBase.language, succeeded);
     this.ui.messagesContainer.append(`<div class="alert alert-success">${message}</div>`);
   },
 
   showWarnMessage (profile, succeeded, failed) {
     const profileBase = this.options.app.qualityProfiles.find(p => p.key === profile);
     const message = translateWithParameters('coding_rules.bulk_change.warning',
-        profileBase.name, profileBase.language, succeeded, failed);
+      profileBase.name, profileBase.language, succeeded, failed);
     this.ui.messagesContainer.append(`<div class="alert alert-warning">${message}</div>`);
   },
 
index a5ce1d8ea62f6a5f7f7b341e55cee94977a7a3d4..316314122fad18794771e9bc81cf6db307cf87ec 100644 (file)
@@ -35,6 +35,6 @@ const mapDispatchToProps = dispatch => {
 };
 
 export default connect(
-    mapStateToProps,
-    mapDispatchToProps
+  mapStateToProps,
+  mapDispatchToProps
 )(App);
index 50faab5adefc1acdf316f3d8e17363e6eb24437f..edaea8a28556ac12997761d2b620860859244beb 100644 (file)
@@ -33,6 +33,6 @@ const mapDispatchToProps = () => {
 };
 
 export default connect(
-    mapStateToProps,
-    mapDispatchToProps
+  mapStateToProps,
+  mapDispatchToProps
 )(MeasureBubbleChart);
index 451e03e64e60d7a88ae294089bd11702746c4470..604aa4c3c6d9d5b7bf2971f1818abce782477359 100644 (file)
@@ -43,6 +43,6 @@ const mapStateToProps = state => {
 const mapDispatchToProps = { fetchMeasure };
 
 export default connect(
-    mapStateToProps,
-    mapDispatchToProps
+  mapStateToProps,
+  mapDispatchToProps
 )(MeasureDetails);
index 77dcc98ba09a2ec7225085f6a42bd9c23ff69cb3..8c858bad657e43a6a4f8b712a939e75775558625 100644 (file)
@@ -65,8 +65,8 @@ export function fetchMeasure (metricKey, periodIndex = 1) {
     dispatch(requestMeasure(metric));
 
     return getMeasuresAndMeta(
-        component.key,
-        metricsToRequest,
+      component.key,
+      metricsToRequest,
         { additionalFields: 'periods' }
     ).then(r => {
       const measures = enhanceWithLeak(r.component.measures, periodIndex);
index 5c8189bc35548f61df652dafce8667cbca571270..3304447f550f11ebc2547d7891aa17318bf0fabb 100644 (file)
@@ -55,6 +55,6 @@ const mapDispatchToProps = dispatch => {
 };
 
 export default connect(
-    mapStateToProps,
-    mapDispatchToProps
+  mapStateToProps,
+  mapDispatchToProps
 )(ListView);
index 79e88b4e036a31acac4fd544f71ab0243b95e030..1111d3c3afc3ec2db074dc75d7f5765e1117ad2b 100644 (file)
@@ -67,6 +67,6 @@ const mapDispatchToProps = dispatch => {
 };
 
 export default connect(
-    mapStateToProps,
-    mapDispatchToProps
+  mapStateToProps,
+  mapDispatchToProps
 )(TreeView);
index 66a93eeb19659818c4bcf898af1a4f50e40b665d..2da90ca76d427b9fe2c65966e95bfbfcd5d8a0b8 100644 (file)
@@ -33,6 +33,6 @@ const mapDispatchToProps = () => {
 };
 
 export default connect(
-    mapStateToProps,
-    mapDispatchToProps
+  mapStateToProps,
+  mapDispatchToProps
 )(MeasureHistory);
index 17a777ec776dea9ef7e1c3f05bdbf3e0cccc488f..a9057d5f4ad630e64ce532d5f6aa4ff885241f3e 100644 (file)
@@ -33,6 +33,6 @@ const mapDispatchToProps = () => {
 };
 
 export default connect(
-    mapStateToProps,
-    mapDispatchToProps
+  mapStateToProps,
+  mapDispatchToProps
 )(MeasureTreemap);
index 1c351f23fc5447d560aba45d669c6786a3a58ef8..c33daf93fcbcee86f55a1f791e570a3dfc78256a 100644 (file)
@@ -34,5 +34,5 @@ const mapStateToProps = state => {
 };
 
 export default connect(
-    mapStateToProps
+  mapStateToProps
 )(AllMeasures);
index 707817ab33077f2f904ee61d6e718666e406617a..15f4dd192bbb9748012a43151424600b527c5225 100644 (file)
@@ -34,5 +34,5 @@ const mapStateToProps = state => {
 };
 
 export default connect(
-    mapStateToProps
+  mapStateToProps
 )(DomainMeasures);
index 17706f7140f6eeca6ff48b561be1605f8e844ac4..e1c85edfce06427f53c05662fe8a6ce97521a160 100644 (file)
@@ -43,6 +43,6 @@ const mapDispatchToProps = dispatch => {
 };
 
 export default connect(
-    mapStateToProps,
-    mapDispatchToProps
+  mapStateToProps,
+  mapDispatchToProps
 )(Home);
index d531971ef522d5bfb91f818271ae6e3d0c5b2e99..d7d1a67ebf3818c17929de989e85760403d5a9ef 100644 (file)
@@ -203,15 +203,15 @@ export default ModalForm.extend({
 
     const issueKeys = this.issues.map(issue => issue.key);
     bulkChangeIssues(issueKeys, query).then(
-        () => {
-          this.destroy();
-          this.options.onChange();
-        },
-        (e: Object) => {
-          this.enableForm();
-          this.hideSpinner();
-          e.response.json().then(r => this.showErrors(r.errors, r.warnings));
-        }
+      () => {
+        this.destroy();
+        this.options.onChange();
+      },
+      (e: Object) => {
+        this.enableForm();
+        this.hideSpinner();
+        e.response.json().then(r => this.showErrors(r.errors, r.warnings));
+      }
     );
   },
 
index 9d65c83b5ca56b2dd8fa028cf901be23af5b77dd..340f760d3865e1c2572127dc84bdba4abb11da55 100644 (file)
@@ -24,7 +24,7 @@ import { UnconnectedOrganizationAdmin } from '../OrganizationAdmin';
 it('should render children', () => {
   const organization = { canAdmin: true };
   expect(shallow(
-      <UnconnectedOrganizationAdmin organization={organization}>
+    <UnconnectedOrganizationAdmin organization={organization}>
         <div>hello</div>
       </UnconnectedOrganizationAdmin>
   )).toMatchSnapshot();
@@ -33,7 +33,7 @@ it('should render children', () => {
 it('should not render anything', () => {
   const organization = { canAdmin: false };
   expect(shallow(
-      <UnconnectedOrganizationAdmin organization={organization}>
+    <UnconnectedOrganizationAdmin organization={organization}>
         <div>hello</div>
       </UnconnectedOrganizationAdmin>
   )).toMatchSnapshot();
index 3fde2d682ef4ecf2e8a6390f3324bed4e44252b9..01ffd045378f473a833957622eb334d0681c82ad 100644 (file)
@@ -23,7 +23,7 @@ import { UnconnectedOrganizationPage } from '../OrganizationPage';
 
 it('smoke test', () => {
   const wrapper = shallow(
-      <UnconnectedOrganizationPage>
+    <UnconnectedOrganizationPage>
         <div>hello</div>
       </UnconnectedOrganizationPage>
   );
@@ -36,7 +36,7 @@ it('smoke test', () => {
 
 it('not found', () => {
   const wrapper = shallow(
-      <UnconnectedOrganizationPage>
+    <UnconnectedOrganizationPage>
         <div>hello</div>
       </UnconnectedOrganizationPage>
   );
index 20d01e6f04bd5a865a455071057540b98aea0ff9..938d00665d18b0a8854dba3953598aac6cf1f7aa 100644 (file)
@@ -24,20 +24,20 @@ import OrganizationNavigation from '../OrganizationNavigation';
 it('regular user', () => {
   const organization = { key: 'foo', name: 'Foo', canAdmin: false, canDelete: false };
   expect(shallow(
-      <OrganizationNavigation location={{ pathname: '/organizations/foo' }} organization={organization}/>
+    <OrganizationNavigation location={{ pathname: '/organizations/foo' }} organization={organization}/>
   )).toMatchSnapshot();
 });
 
 it('admin', () => {
   const organization = { key: 'foo', name: 'Foo', canAdmin: true, canDelete: true };
   expect(shallow(
-      <OrganizationNavigation location={{ pathname: '/organizations/foo' }} organization={organization}/>
+    <OrganizationNavigation location={{ pathname: '/organizations/foo' }} organization={organization}/>
   )).toMatchSnapshot();
 });
 
 it('undeletable org', () => {
   const organization = { key: 'foo', name: 'Foo', canAdmin: true, canDelete: false };
   expect(shallow(
-      <OrganizationNavigation location={{ pathname: '/organizations/foo' }} organization={organization}/>
+    <OrganizationNavigation location={{ pathname: '/organizations/foo' }} organization={organization}/>
   )).toMatchSnapshot();
 });
index 562f861bfb02482e26a066494c7382f7166cf2a7..4647b6ac94c2fcc8fb38ec775f2e19186948885a 100644 (file)
@@ -26,7 +26,7 @@ const PAGE_SIZE = 5;
 
 export const fetchRecentProjectActivity = (project: string) => (dispatch: Function) => (
     api.getProjectActivity(project, { pageSize: PAGE_SIZE }).then(
-        ({ analyses, paging }) => dispatch(receiveProjectActivity(project, analyses, paging)),
-        onFail(dispatch)
+      ({ analyses, paging }) => dispatch(receiveProjectActivity(project, analyses, paging)),
+      onFail(dispatch)
     )
 );
index 4064b6b49d75b7e69ad4a9f49cb1d9117223487e..4de489272c24100209b6bbb812b1bffcf9d20d78 100644 (file)
@@ -119,8 +119,8 @@ export default class OverviewApp extends React.Component {
     this.setState({ loading: true });
 
     return getMeasuresAndMeta(
-        component.key,
-        METRICS,
+      component.key,
+      METRICS,
         { additionalFields: 'metrics,periods' }
     ).then(r => {
       if (this.mounted) {
index 1ad08824d9bd466660edfde0796d6fe0ece10ed1..f1ded836d839dc504fc907f5c7b15b40868582d6 100644 (file)
@@ -27,7 +27,7 @@ const HEIGHT = 80;
 export default class Timeline extends React.Component {
   static propTypes = {
     history: React.PropTypes.arrayOf(
-        React.PropTypes.object
+      React.PropTypes.object
     ).isRequired,
     before: React.PropTypes.object,
     after: React.PropTypes.object
index 60b0870f3a9607001a6e44dad03b7793d43886a8..826f71bbf9801221753dc5c5213a018db2e7f59e 100644 (file)
@@ -30,8 +30,8 @@ import CodeSmellIcon from '../../../components/ui/CodeSmellIcon';
 class CodeSmells extends React.Component {
   renderHeader () {
     return this.props.renderHeader(
-        'Maintainability',
-        translate('metric.code_smells.name'));
+      'Maintainability',
+      translate('metric.code_smells.name'));
   }
 
   renderDebt (metric, type) {
@@ -46,7 +46,7 @@ class CodeSmells extends React.Component {
 
     const formattedSnapshotDate = moment(component.snapshotDate).format('LLL');
     const tooltip = translateWithParameters('widget.as_calculated_on_x',
-        formattedSnapshotDate);
+      formattedSnapshotDate);
 
     return (
         <Link to={getComponentIssuesUrl(component.key, params)}>
@@ -69,9 +69,9 @@ class CodeSmells extends React.Component {
 
   renderTimeline (range, displayDate) {
     return this.props.renderTimeline(
-        'sqale_index',
-        range,
-        displayDate ? this.renderTimelineStartDate() : null);
+      'sqale_index',
+      range,
+      displayDate ? this.renderTimelineStartDate() : null);
   }
 
   renderLeak () {
index eff433ac79278c2a108eed2ed1db32ce62717f03..aa9a34d38e91b852a8112d994187e4946697ab28 100644 (file)
@@ -44,8 +44,8 @@ class Coverage extends React.Component {
 
   renderHeader () {
     return this.props.renderHeader(
-        'Coverage',
-        translate('metric.coverage.name'));
+      'Coverage',
+      translate('metric.coverage.name'));
   }
 
   renderTimeline (range) {
index 9cc786e48caf5cc870297e8e36c4873fb3267318..cb1d98832e57cd1f9c693a602bb7085cab7ccde1 100644 (file)
@@ -28,8 +28,8 @@ import DuplicationsRating from '../../../components/ui/DuplicationsRating';
 class Duplications extends React.Component {
   renderHeader () {
     return this.props.renderHeader(
-        'Duplications',
-        translate('overview.domain.duplications'));
+      'Duplications',
+      translate('overview.domain.duplications'));
   }
 
   renderTimeline (range) {
index 21ff71aee195333fc4f5f4b8dcacac467fb8a4bd..f661877b510fd8b77290da6075205098d844d82d 100644 (file)
@@ -31,7 +31,7 @@ it('should match snapshot', () => {
   };
 
   expect(shallow(
-      <MetaLink link={link}/>
+    <MetaLink link={link}/>
   )).toMatchSnapshot();
 });
 
index 363730eed2eca443f2824b521236c21b0d157a37..064c3d2b4472d821fb2846b0a5652713d2456646 100644 (file)
@@ -100,8 +100,8 @@ export default class QualityGateCondition extends React.Component {
     const periodDate = getPeriodDate(period);
 
     const className = classNames(
-        'overview-quality-gate-condition',
-        'overview-quality-gate-condition-' + condition.level.toLowerCase(),
+      'overview-quality-gate-condition',
+      'overview-quality-gate-condition-' + condition.level.toLowerCase(),
         { 'overview-quality-gate-condition-leak': period != null }
     );
 
@@ -155,7 +155,7 @@ export default class QualityGateCondition extends React.Component {
         translate('quality_gates.operator', condition.op);
 
     return this.wrapWithLink(
-        <div className="overview-quality-gate-condition-container">
+      <div className="overview-quality-gate-condition-container">
           <div className="overview-quality-gate-condition-value">
             <Measure measure={{ value: actual, leak: actual }} metric={metric}/>
           </div>
index 92c0215d0f62cf99a988e4a0418805f18f43a8c5..e689587fcb240027ad7ab466001e64c9d31b31d8 100644 (file)
@@ -70,8 +70,8 @@ export default class QualityGateConditions extends React.Component {
     if (failedConditions.length > 0) {
       const metrics = failedConditions.map(condition => condition.metric);
       getMeasuresAndMeta(
-          component.key,
-          metrics,
+        component.key,
+        metrics,
           { additionalFields: 'metrics' }
       ).then(r => {
         if (this.mounted) {
@@ -96,9 +96,9 @@ export default class QualityGateConditions extends React.Component {
     }
 
     const sortedConditions = sortBy(
-        conditions,
-        condition => LEVEL_ORDER.indexOf(condition.level),
-        condition => condition.metric.name
+      conditions,
+      condition => LEVEL_ORDER.indexOf(condition.level),
+      condition => condition.metric.name
     );
 
     return (
index 8a854c3b03f6aa58a8cdd5111f4fc4c6bd99dca7..6b9323eafccbcb81a5796cc7ea63a92410296f29 100644 (file)
@@ -54,7 +54,7 @@ it('open_issues', () => {
     op: 'GT'
   };
   expect(shallow(
-      <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
+    <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
   )).toMatchSnapshot();
 });
 
@@ -75,48 +75,48 @@ it('new_open_issues', () => {
     op: 'GT'
   };
   expect(shallow(
-      <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
+    <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
   )).toMatchSnapshot();
 });
 
 it('reliability_rating', () => {
   const condition = mockRatingCondition('reliability_rating');
   expect(shallow(
-      <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
+    <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
   )).toMatchSnapshot();
 });
 
 it('security_rating', () => {
   const condition = mockRatingCondition('security_rating');
   expect(shallow(
-      <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
+    <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
   )).toMatchSnapshot();
 });
 
 it('sqale_rating', () => {
   const condition = mockRatingCondition('sqale_rating');
   expect(shallow(
-      <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
+    <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
   )).toMatchSnapshot();
 });
 
 it('new_reliability_rating', () => {
   const condition = mockRatingCondition('new_reliability_rating');
   expect(shallow(
-      <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
+    <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
   )).toMatchSnapshot();
 });
 
 it('new_security_rating', () => {
   const condition = mockRatingCondition('new_security_rating');
   expect(shallow(
-      <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
+    <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
   )).toMatchSnapshot();
 });
 
 it('new_sqale_rating', () => {
   const condition = mockRatingCondition('new_sqale_rating');
   expect(shallow(
-      <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
+    <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
   )).toMatchSnapshot();
 });
index 8e73b76f64f08027e3f0ce27950c946227bf6e01..2119972b66e161407385f5fe61169b5dafb5bce6 100644 (file)
@@ -69,8 +69,8 @@ export default class ActionsCell extends React.Component {
   setDefault (qualifier, e) {
     e.preventDefault();
     setDefaultPermissionTemplate(
-        this.props.permissionTemplate.id,
-        qualifier
+      this.props.permissionTemplate.id,
+      qualifier
     ).then(this.props.refresh);
   }
 
@@ -122,7 +122,7 @@ export default class ActionsCell extends React.Component {
   renderIfSingleTopQualifier (availableQualifiers) {
     return availableQualifiers.map(qualifier => (
         this.renderSetDefaultLink(qualifier, (
-            <span>{translate('permission_templates.set_default')}</span>
+          <span>{translate('permission_templates.set_default')}</span>
         )))
     );
   }
@@ -130,7 +130,7 @@ export default class ActionsCell extends React.Component {
   renderIfMultipleTopQualifiers (availableQualifiers) {
     return availableQualifiers.map(qualifier => (
         this.renderSetDefaultLink(qualifier, (
-            <span>
+          <span>
               {translate('permission_templates.set_default_for')}
               {' '}
               <QualifierIcon qualifier={qualifier}/>
index 3502b83d4a00df02d1872294177ab5fb32679a92..0bf2c2fa6696c97d345071b9d047fc4b5818a26e 100644 (file)
@@ -61,8 +61,8 @@ export default class App extends React.Component {
       if (this.mounted) {
         const permissions = sortPermissions(r.permissions);
         const permissionTemplates = mergeDefaultsToTemplates(
-            mergePermissionsToTemplates(r.permissionTemplates, permissions),
-            r.defaultTemplates
+          mergePermissionsToTemplates(r.permissionTemplates, permissions),
+          r.defaultTemplates
         );
         this.setState({
           ready: true,
index e085e38a1d3fd2fdad181fcd6f7ab7eb62c47fbd..4a62e4c7c7ad03194adbc38fa18c0dc73444b359 100644 (file)
@@ -27,5 +27,5 @@ const mapStateToProps = state => ({
 });
 
 export default connect(
-    mapStateToProps
+  mapStateToProps
 )(App);
index e36666005d7ef4f4d1a8fc463858bf7f8fcaa92c..30d2de1feb0c4c4b240cc79685e48bebdb4c52bc 100644 (file)
@@ -26,7 +26,7 @@ export default class List extends React.Component {
   static propTypes = {
     organization: React.PropTypes.object,
     permissionTemplates: React.PropTypes.arrayOf(
-        PermissionTemplateType).isRequired,
+      PermissionTemplateType).isRequired,
     permissions: React.PropTypes.array.isRequired,
     topQualifiers: React.PropTypes.array.isRequired,
     refresh: CallbackType
index 099ac2ccc6cb16d229b07fa20f4b16f61150e883..2ee080765c7e987345b72925543cf5afd2901045 100644 (file)
@@ -67,14 +67,14 @@ class Template extends React.Component {
 
     if (filter !== 'groups') {
       requests.push(api.getPermissionTemplateUsers(
-          template.id, finalQuery, selectedPermission));
+        template.id, finalQuery, selectedPermission));
     } else {
       requests.push(Promise.resolve([]));
     }
 
     if (filter !== 'users') {
       requests.push(api.getPermissionTemplateGroups(
-          template.id, finalQuery, selectedPermission));
+        template.id, finalQuery, selectedPermission));
     } else {
       requests.push(Promise.resolve([]));
     }
@@ -97,9 +97,9 @@ class Template extends React.Component {
     const hasPermission = user.permissions.includes(permission);
     const request = hasPermission ?
         api.revokeTemplatePermissionFromUser(
-            template.id, user.login, permission) :
+          template.id, user.login, permission) :
         api.grantTemplatePermissionToUser(
-            template.id, user.login, permission);
+          template.id, user.login, permission);
     request.then(() => this.requestHolders()).then(this.props.refresh);
   }
 
index 0204d186524a1495b96c74c3e98cd4ebbc25f16d..c2e83d5c0933272557b22e39835870ecb809bbeb 100644 (file)
@@ -30,7 +30,7 @@ const SAMPLE = {
 
 function renderActionsCell (props) {
   return shallow(
-      <ActionsCell
+    <ActionsCell
           permissionTemplate={SAMPLE}
           topQualifiers={['TRK', 'VW']}
           refresh={() => true}
index e68ba050cc4c769a9c0c0fd844b7a17e36f5c19d..f46d91ca715aa118af734b32d81362955341371d 100644 (file)
@@ -33,14 +33,14 @@ export default FormView.extend({
       Object.assign(data, { organization: this.options.organization.key });
     }
     createPermissionTemplate(data).then(
-        r => {
-          this.trigger('done', r);
-          this.destroy();
-        },
-        e => {
-          this.enableForm();
-          parseError(e).then(message => this.showSingleError(message));
-        }
+      r => {
+        this.trigger('done', r);
+        this.destroy();
+      },
+      e => {
+        this.enableForm();
+        parseError(e).then(message => this.showSingleError(message));
+      }
     );
   }
 });
index 1386d682372079a47f6b7d2d844eccf29b22da3d..b1a7f1f30da94ebe567f2ff046f75da79c280f4c 100644 (file)
@@ -32,14 +32,14 @@ export default ModalForm.extend({
 
   sendRequest () {
     deletePermissionTemplate({ templateId: this.model.id }).then(
-        () => {
-          this.trigger('done');
-          this.destroy();
-        },
-        e => {
-          this.enableForm();
-          parseError(e).then(message => this.showSingleError(message));
-        }
+      () => {
+        this.trigger('done');
+        this.destroy();
+      },
+      e => {
+        this.enableForm();
+        parseError(e).then(message => this.showSingleError(message));
+      }
     );
   }
 });
index 39f41950491cb09f9b4faf1bb1935d1a1ada4739..094feb677d84e8ccb50ee314f183c6631dd6e814 100644 (file)
@@ -30,14 +30,14 @@ export default FormView.extend({
       description: this.$('#permission-template-description').val(),
       projectKeyPattern: this.$('#permission-template-project-key-pattern').val()
     }).then(
-        () => {
-          this.options.refresh();
-          this.destroy();
-        },
-        e => {
-          this.enableForm();
-          parseError(e).then(message => this.showSingleError(message));
-        }
+      () => {
+        this.options.refresh();
+        this.destroy();
+      },
+      e => {
+        this.enableForm();
+        parseError(e).then(message => this.showSingleError(message));
+      }
     );
   }
 });
index 75304fa9a08c9ef9b003a3ebfd997f599c236492..ee25cb2fa236d53e8526991d0185c72e4c854e3b 100644 (file)
@@ -39,12 +39,12 @@ export default Modal.extend({
     const checked = this.$('#grant-to-project-creators').is(':checked');
     if (checked) {
       addProjectCreatorToTemplate(
-          this.options.permissionTemplate.name,
-          this.options.permission.key);
+        this.options.permissionTemplate.name,
+        this.options.permission.key);
     } else {
       removeProjectCreatorFromTemplate(
-          this.options.permissionTemplate.name,
-          this.options.permission.key);
+        this.options.permissionTemplate.name,
+        this.options.permission.key);
     }
   },
 
index a41bb63c58c5f019c0d980b793ad31cdf70a13aa..d94862233a20a8b5f7f7744e6cbe416c84f26d22 100644 (file)
@@ -145,6 +145,6 @@ const mapDispatchToProps = (dispatch, ownProps: OwnProps) => {
 };
 
 export default connect(
-    mapStateToProps,
-    mapDispatchToProps
+  mapStateToProps,
+  mapDispatchToProps
 )(AllHoldersList);
index 54c2f7a6068f0638662b0d7aa754a74b3afdb94a..7d58a7b12f6fb9d93610308c773bc8d32a432e1e 100644 (file)
@@ -60,5 +60,5 @@ const mapStateToProps = state => ({
 });
 
 export default connect(
-    mapStateToProps
+  mapStateToProps
 )(PageHeader);
index 8a6e2bdede05cada9099dc85a19acabd3774f775..507cd76849a9ea8b92f2699dbd9a16352ae05d8e 100644 (file)
@@ -64,15 +64,15 @@ class AllHoldersList extends React.Component {
 
     if (hasPermission) {
       this.props.revokePermissionFromUser(
-          this.props.project.key,
-          user.login,
-          permission
+        this.props.project.key,
+        user.login,
+        permission
       );
     } else {
       this.props.grantPermissionToUser(
-          this.props.project.key,
-          user.login,
-          permission
+        this.props.project.key,
+        user.login,
+        permission
       );
     }
   }
@@ -82,15 +82,15 @@ class AllHoldersList extends React.Component {
 
     if (hasPermission) {
       this.props.revokePermissionFromGroup(
-          this.props.project.key,
-          group.name,
-          permission
+        this.props.project.key,
+        group.name,
+        permission
       );
     } else {
       this.props.grantPermissionToGroup(
-          this.props.project.key,
-          group.name,
-          permission
+        this.props.project.key,
+        group.name,
+        permission
       );
     }
   }
@@ -159,6 +159,6 @@ const mapDispatchToProps = (dispatch, ownProps: OwnProps) => ({
 });
 
 export default connect(
-    mapStateToProps,
-    mapDispatchToProps
+  mapStateToProps,
+  mapDispatchToProps
 )(AllHoldersList);
index bc97d1c6ddf7e2a01128eb0b689825c3caca1703..74816c0fef93eb8c62a025adc68624b44d0b1134 100644 (file)
@@ -88,6 +88,6 @@ const mapDispatchToProps = (dispatch, ownProps) => ({
 });
 
 export default connect(
-    mapStateToProps,
-    mapDispatchToProps
+  mapStateToProps,
+  mapDispatchToProps
 )(PageHeader);
index 569e183a98c86b34ae683158b212ec05ca39b42d..c7faca28cd300da4cc6b487d8c378cef2ffe4ffd 100644 (file)
@@ -46,5 +46,5 @@ const mapStateToProps = state => ({
 });
 
 export default connect(
-    mapStateToProps
+  mapStateToProps
 )(PageError);
index ece2e7b689f15adc22ae0329b8653bcdb6c48963..0e04b507be609c08a8b6bb75d31d7ad047a941e4 100644 (file)
@@ -65,7 +65,7 @@ class BulkUpdate extends React.Component {
       }
 
       this.props.addGlobalSuccessMessage(
-          translate('update_key.key_updated.reload'));
+        translate('update_key.key_updated.reload'));
       this.setState({ updating: false });
       reloadUpdateKeyPage(newComponentKey);
     }).catch(e => {
@@ -114,9 +114,9 @@ class BulkUpdate extends React.Component {
             </div>
             <div>
               {translateWithParameters(
-                  'update_key.current_key_for_project_x_is_x',
-                  component.name,
-                  component.key
+                'update_key.current_key_for_project_x_is_x',
+                component.name,
+                component.key
               )}
             </div>
           </header>
@@ -136,9 +136,9 @@ class BulkUpdate extends React.Component {
 }
 
 export default connect(
-    null, {
-      addGlobalErrorMessage,
-      addGlobalSuccessMessage,
-      closeAllGlobalMessages
-    }
+  null, {
+    addGlobalErrorMessage,
+    addGlobalSuccessMessage,
+    closeAllGlobalMessages
+  }
 )(BulkUpdate);
index e9099daa50280796236a4ce0dd6d7aae8c53c686..546a803dc250b91bea95b9db657824142d6a3c0a 100644 (file)
@@ -44,8 +44,8 @@ export default class BulkUpdateResults extends React.Component {
           {isEmpty && (
               <div id="bulk-update-nothing" className="spacer-bottom">
                 {translateWithParameters(
-                    'update_key.no_key_to_update',
-                    replace
+                  'update_key.no_key_to_update',
+                  replace
                 )}
               </div>
           )}
@@ -53,9 +53,9 @@ export default class BulkUpdateResults extends React.Component {
           {hasDuplications && (
               <div id="bulk-update-duplicate" className="spacer-bottom">
                 {translateWithParameters(
-                    'update_key.cant_update_because_duplicate_keys',
-                    replace,
-                    by
+                  'update_key.cant_update_because_duplicate_keys',
+                  replace,
+                  by
                 )}
               </div>
           )}
index 4e95d344f26fa246e37c6465718459d132208554..42c3929bb5fe38c68065838d3ea272a16c581e08 100644 (file)
@@ -62,12 +62,12 @@ class Key extends React.Component {
     return this.props.changeKey(key, newKey).then(() => {
       if (key === this.props.component.key) {
         this.props.addGlobalSuccessMessage(
-            translate('update_key.key_updated.reload'));
+          translate('update_key.key_updated.reload'));
         RecentHistory.remove(key);
         reloadUpdateKeyPage(newKey);
       } else {
         this.props.addGlobalSuccessMessage(
-            translate('update_key.key_updated'));
+          translate('update_key.key_updated'));
       }
     }).catch(e => {
       parseError(e).then(this.props.addGlobalErrorMessage);
@@ -153,11 +153,11 @@ const mapStateToProps = (state, ownProps) => ({
 });
 
 export default connect(
-    mapStateToProps, {
-      fetchProjectModules,
-      changeKey,
-      addGlobalErrorMessage,
-      addGlobalSuccessMessage,
-      closeAllGlobalMessages
-    }
+  mapStateToProps, {
+    fetchProjectModules,
+    changeKey,
+    addGlobalErrorMessage,
+    addGlobalSuccessMessage,
+    closeAllGlobalMessages
+  }
 )(Key);
index 9184e13ff20c5999d47f30ded697da9d3aa1643f..e25ed2cc5879ad4416fdd84b252c6191db7dcb89 100644 (file)
@@ -78,6 +78,6 @@ const mapStateToProps = (state, ownProps) => ({
 });
 
 export default connect(
-    mapStateToProps,
+  mapStateToProps,
     { fetchProjectLinks, createProjectLink, deleteProjectLink }
 )(Links);
index 51054db43deafb24f2fd6f54d29d359ac4f5a6d4..5b29ac2b0f1926b1ae526747aa73c63c257c8501 100644 (file)
@@ -64,6 +64,6 @@ const mapStateToProps = (state, ownProps) => ({
 });
 
 export default connect(
-    mapStateToProps,
+  mapStateToProps,
     { fetchProjectGate, setProjectGate }
 )(QualityGate);
index 9f3483515730990e75b0daf8552950f2ec030a5d..eee707639acd50663436051a93a7516b0341ac7f 100644 (file)
@@ -75,6 +75,6 @@ const mapStateToProps = (state, ownProps) => ({
 });
 
 export default connect(
-    mapStateToProps,
+  mapStateToProps,
     { fetchProjectProfiles, setProjectProfile }
 )(QualityProfiles);
index 5bee0be32d4037ce04bdc87e49d50b14848861cc..9cb5cd83fea09f33a46d3dfe0861d40c0aecfb89 100644 (file)
@@ -73,9 +73,9 @@ export const setProjectProfile = (projectKey, oldKey, newKey) =>
       request.then(() => {
         dispatch(setProjectProfileAction(projectKey, oldKey, newKey));
         dispatch(addGlobalSuccessMessage(
-            translateWithParameters(
-                'project_quality_profile.successfully_updated',
-                newProfile.languageName)));
+          translateWithParameters(
+            'project_quality_profile.successfully_updated',
+            newProfile.languageName)));
       });
     };
 
@@ -118,7 +118,7 @@ export const setProjectGate = (projectKey, oldId, newId) => dispatch => {
   request.then(() => {
     dispatch(setProjectGateAction(projectKey, newId));
     dispatch(addGlobalSuccessMessage(
-        translate('project_quality_gate.successfully_updated')));
+      translate('project_quality_gate.successfully_updated')));
   });
 };
 
index 25cf7760bc447c712156c40c497007a91e0c6313..ed8971d762dc88d0ee46bacc4fb010fdd1d2c8ef 100644 (file)
@@ -37,8 +37,8 @@ const rejectOnFail = (dispatch: Function) => (error: Object) => {
 
 export const fetchProjectActivity = (project: string, filter: ?string) => (dispatch: Function): void => {
   api.getProjectActivity(project, { category: filter }).then(
-      ({ analyses, paging }) => dispatch(receiveProjectActivity(project, analyses, paging)),
-      onFail(dispatch)
+    ({ analyses, paging }) => dispatch(receiveProjectActivity(project, analyses, paging)),
+    onFail(dispatch)
   );
 };
 
@@ -48,23 +48,23 @@ export const fetchMoreProjectActivity = (project: string, filter: ?string) =>
       const { pageIndex } = getPaging(projectActivity, project);
 
       api.getProjectActivity(project, { category: filter, pageIndex: pageIndex + 1 }).then(
-          ({ analyses, paging }) => dispatch(receiveProjectActivity(project, analyses, paging)),
-          onFail(dispatch)
+        ({ analyses, paging }) => dispatch(receiveProjectActivity(project, analyses, paging)),
+        onFail(dispatch)
       );
     };
 
 export const addCustomEvent = (analysis: string, name: string, category?: string) =>
     (dispatch: Function): Promise<*> => {
       return api.createEvent(analysis, name, category).then(
-          ({ analysis, ...event }) => dispatch(addEvent(analysis, event)),
-          rejectOnFail(dispatch)
+        ({ analysis, ...event }) => dispatch(addEvent(analysis, event)),
+        rejectOnFail(dispatch)
       );
     };
 
 export const deleteEvent = (analysis: string, event: string) => (dispatch: Function): Promise<*> => {
   return api.deleteEvent(event).then(
-      () => dispatch(deleteEventAction(analysis, event)),
-      rejectOnFail(dispatch)
+    () => dispatch(deleteEventAction(analysis, event)),
+    rejectOnFail(dispatch)
   );
 };
 
@@ -74,14 +74,14 @@ export const addVersion = (analysis: string, version: string) => (dispatch: Func
 
 export const changeEvent = (event: string, name: string) => (dispatch: Function): Promise<*> => {
   return api.changeEvent(event, name).then(
-      () => dispatch(changeEventAction(event, { name })),
-      rejectOnFail(dispatch)
+    () => dispatch(changeEventAction(event, { name })),
+    rejectOnFail(dispatch)
   );
 };
 
 export const deleteAnalysis = (project: string, analysis: string) => (dispatch: Function): Promise<*> => {
   return api.deleteAnalysis(analysis).then(
-      () => dispatch(deleteAnalysisAction(project, analysis)),
-      rejectOnFail(dispatch)
+    () => dispatch(deleteAnalysisAction(project, analysis)),
+    rejectOnFail(dispatch)
   );
 };
index 5a892780fb8b786a21a41859aabce44527ed6aa4..d2b5eb0b0c5c1e71a47c73419358d0d20a6a2a96 100644 (file)
@@ -33,11 +33,11 @@ export default class Events extends React.Component {
 
   render () {
     const sortedEvents: Array<EventType> = sortBy(
-        this.props.events,
+      this.props.events,
         // versions first
-        (event: EventType) => event.category === 'VERSION' ? 0 : 1,
+      (event: EventType) => event.category === 'VERSION' ? 0 : 1,
         // then the rest sorted by category
-        'category'
+      'category'
     );
 
     return (
index 322402067e8825a8e5e275a781f9da4c66931519..baca690631f4db299c82909ed4f0e07241383121 100644 (file)
@@ -48,5 +48,5 @@ const mapStateToProps = state => ({
 });
 
 export default connect(
-    mapStateToProps
+  mapStateToProps
 )(AppContainer);
index 3daf99929a8269753296907d706f3f52ddc33337..c683e7d0c285e0cac9d77f12461abb72794f3b65 100644 (file)
@@ -130,7 +130,7 @@ export default React.createClass({
 
   loadMore () {
     this.setState({ ready: false, page: this.state.page + 1 },
-        this.requestProjects);
+      this.requestProjects);
   },
 
   onSearch (query) {
index 4dc095c83d6f0bf61f4a6c3679a6065d3ca744e9..1230fca10d31757e3d689ebd5776c05382e4136e 100644 (file)
@@ -28,6 +28,6 @@ const mapStateToProps = state => ({
 });
 
 export default connect(
-    mapStateToProps,
+  mapStateToProps,
     { fetchProjects }
 )(AllProjects);
index 9ce4dda7448ca6379745d309d0e72495ba6e1ccc..7ffbb1b2c3633d7e5d02e93d576582dc8ca20896 100644 (file)
@@ -26,5 +26,5 @@ const mapStateToProps = state => ({
 });
 
 export default connect(
-    mapStateToProps
+  mapStateToProps
 )(FavoriteFilter);
index bda8338492deeabb9c467058b791b8573dda2880..d0afc946ca0587c218a4b39772b2837652ad120b 100644 (file)
@@ -28,6 +28,6 @@ const mapStateToProps = state => ({
 });
 
 export default connect(
-    mapStateToProps,
+  mapStateToProps,
     { fetchProjects }
 )(AllProjects);
index dbd04081b3bb0d7587ee1e86986f65b97a1295f0..eb0cce974475d803b5aa0f3a5b8d3cf269c448b2 100644 (file)
@@ -22,5 +22,5 @@ import PageHeader from './PageHeader';
 import { getProjectsAppState } from '../../../store/rootReducer';
 
 export default connect(
-    state => getProjectsAppState(state)
+  state => getProjectsAppState(state)
 )(PageHeader);
index 022bc3b39ecf9af1dfbde180b0f938c022544d0d..f03bd24cc5728dda5b81c7df56b5df9cab521ce5 100644 (file)
@@ -22,8 +22,8 @@ import ProjectCard from './ProjectCard';
 import { getComponent, getComponentMeasures } from '../../../store/rootReducer';
 
 export default connect(
-    (state, ownProps) => ({
-      project: getComponent(state, ownProps.projectKey),
-      measures: getComponentMeasures(state, ownProps.projectKey)
-    })
+  (state, ownProps) => ({
+    project: getComponent(state, ownProps.projectKey),
+    measures: getComponentMeasures(state, ownProps.projectKey)
+  })
 )(ProjectCard);
index c84c8162c202833bec7237d1d9b93b8b302b60d7..a9efaeb3bde8e2d00ed83b00c145eea19e7f82fd 100644 (file)
@@ -22,8 +22,8 @@ import ProjectsList from './ProjectsList';
 import { getProjects, getProjectsAppState } from '../../../store/rootReducer';
 
 export default connect(
-    state => ({
-      projects: getProjects(state),
-      total: getProjectsAppState(state).total
-    })
+  state => ({
+    projects: getProjects(state),
+    total: getProjectsAppState(state).total
+  })
 )(ProjectsList);
index 1ce74de10feba9a4b9dbbdeb19227200129bb06a..4fafc66df07e749791f8c7b841c427e294ebfa6c 100644 (file)
@@ -37,6 +37,6 @@ const mapDispatchToProps = (dispatch, ownProps) => ({
 });
 
 export default connect(
-    mapStateToProps,
-    mapDispatchToProps
+  mapStateToProps,
+  mapDispatchToProps
 )(ProjectsListFooter);
index 93ca4348b8cd5b32e5f9c7d0fc095a53f1aa6a67..03640a8b2f47ef8c93d25a40229dd28d5eddce3b 100644 (file)
@@ -70,9 +70,9 @@ const getFacetsMap = facets => {
 };
 
 const reducer = createMap(
-    (state, action) => action.type === actions.RECEIVE_PROJECTS,
-    () => false,
-    (state, action) => getFacetsMap(action.facets)
+  (state, action) => action.type === actions.RECEIVE_PROJECTS,
+  () => false,
+  (state, action) => getFacetsMap(action.facets)
 );
 
 export default reducer;
index dd7ba0ca1e44c87ce86b97bf9fe362c04e9b3daf..b2f0da3c31a5fb0c31a728fda6ea5c2579b0c162 100644 (file)
@@ -30,13 +30,13 @@ export const updateState = changes => ({
 
 export default createValue(
     // should update
-    (state, action) => action.type === actions.UPDATE_STATE,
+  (state, action) => action.type === actions.UPDATE_STATE,
 
     // should reset
-    () => false,
+  () => false,
 
     // get next value
-    (state, action) => ({ ...state, ...action.changes }),
+  (state, action) => ({ ...state, ...action.changes }),
 
     // default value
     {}
index 750ba7580228605310abe3b45a3a41ef0d2c73cf..b0ca08011028c27ce0245be39dcd0ea8935afd49 100644 (file)
@@ -26,7 +26,7 @@ import { change } from '../../../../helpers/testUtils';
 describe('on strings', () => {
   it('should render text input', () => {
     const input = shallow(
-        <ThresholdInput
+      <ThresholdInput
             name="foo"
             value="2"
             metric={{ type: 'INTEGER' }}
@@ -40,7 +40,7 @@ describe('on strings', () => {
   it('should change', () => {
     const onChange = jest.fn();
     const input = shallow(
-        <ThresholdInput
+      <ThresholdInput
             name="foo"
             value="2"
             metric={{ type: 'INTEGER' }}
@@ -54,7 +54,7 @@ describe('on strings', () => {
 describe('on ratings', () => {
   it('should render Select', () => {
     const select = shallow(
-        <ThresholdInput
+      <ThresholdInput
             name="foo"
             value="2"
             metric={{ type: 'RATING' }}
@@ -67,7 +67,7 @@ describe('on ratings', () => {
   it('should set', () => {
     const onChange = jest.fn();
     const select = shallow(
-        <ThresholdInput
+      <ThresholdInput
             name="foo"
             value="2"
             metric={{ type: 'RATING' }}
@@ -80,7 +80,7 @@ describe('on ratings', () => {
   it('should unset', () => {
     const onChange = jest.fn();
     const select = shallow(
-        <ThresholdInput
+      <ThresholdInput
             name="foo"
             value="2"
             metric={{ type: 'RATING' }}
index 3d6d1ae7a116555206db6a6cc1c7c18720274e13..623b238d39902f7a143dfd19a1c69393e187b817 100644 (file)
@@ -49,6 +49,6 @@ const mapDispatchToProps = dispatch => ({
 });
 
 export default connect(
-    mapStateToProps,
-    mapDispatchToProps
+  mapStateToProps,
+  mapDispatchToProps
 )(Details);
index 39603aa242ecbc910943711a1aac2c67831b273a..27a4c34911795045915c55deaa1a48c277e1dd41 100644 (file)
@@ -33,6 +33,6 @@ const mapDispatchToProps = dispatch => ({
 });
 
 export default connect(
-    mapStateToProps,
-    mapDispatchToProps
+  mapStateToProps,
+  mapDispatchToProps
 )(QualityGateApp);
index 717afaf9e3c439f7146689d2997d070d18331094..684f33a882fa54902b58f0a9e68c9fa149db77fd 100644 (file)
@@ -36,14 +36,14 @@ export default ModalForm.extend({
     const name = this.$('#quality-gate-form-name').val();
 
     copyQualityGate(id, name).then(
-        qualityGate => {
-          this.destroy();
-          this.options.onCopy(qualityGate);
-        },
-        error => {
-          this.enableForm();
-          parseError(error).then(msg => this.showErrors([{ msg }]));
-        }
+      qualityGate => {
+        this.destroy();
+        this.options.onCopy(qualityGate);
+      },
+      error => {
+        this.enableForm();
+        parseError(error).then(msg => this.showErrors([{ msg }]));
+      }
     );
   },
 
index a081f2d011b7074b4ce7cc3afa6cd297e7b34523..ba8bb4ec3fc0bb772f844d4c1c58602f29ff948b 100644 (file)
@@ -35,14 +35,14 @@ export default ModalForm.extend({
     const name = this.$('#quality-gate-form-name').val();
 
     createQualityGate(name).then(
-        qualityGate => {
-          this.destroy();
-          this.options.onAdd(qualityGate);
-        },
-        error => {
-          this.enableForm();
-          parseError(error).then(msg => this.showErrors([{ msg }]));
-        }
+      qualityGate => {
+        this.destroy();
+        this.options.onAdd(qualityGate);
+      },
+      error => {
+        this.enableForm();
+        parseError(error).then(msg => this.showErrors([{ msg }]));
+      }
     );
   },
 
index 935647dee3185e4c38a1c2dfbe70b984026ee574..097193486c91e87cdfaae86c352f3f8a468a79d6 100644 (file)
@@ -35,14 +35,14 @@ export default ModalForm.extend({
     const { id } = this.options.qualityGate;
 
     deleteQualityGate(id).then(
-        () => {
-          this.destroy();
-          this.options.onDelete(this.options.qualityGate);
-        },
-        error => {
-          this.enableForm();
-          parseError(error).then(msg => this.showErrors([{ msg }]));
-        }
+      () => {
+        this.destroy();
+        this.options.onDelete(this.options.qualityGate);
+      },
+      error => {
+        this.enableForm();
+        parseError(error).then(msg => this.showErrors([{ msg }]));
+      }
     );
   },
 
index ca074b298f7b5dad14d4f3779e3441d5f3922e2f..8a2e78abbe9bd961f23558c170549e1d55a8057a 100644 (file)
@@ -34,14 +34,14 @@ export default ModalForm.extend({
 
   sendRequest () {
     return deleteCondition(this.options.condition.id).then(
-        () => {
-          this.destroy();
-          this.options.onDelete();
-        },
-        error => {
-          this.enableForm();
-          parseError(error).then(msg => this.showErrors([{ msg }]));
-        }
+      () => {
+        this.destroy();
+        this.options.onDelete();
+      },
+      error => {
+        this.enableForm();
+        parseError(error).then(msg => this.showErrors([{ msg }]));
+      }
     );
   },
 
index 4a54eb289c689a94883d5529c016e2667b5bdb01..75ffc986086b375a6fa77572e017de52b9e2b6e1 100644 (file)
@@ -36,14 +36,14 @@ export default ModalForm.extend({
     const name = this.$('#quality-gate-form-name').val();
 
     renameQualityGate(id, name).then(
-        () => {
-          this.destroy();
-          this.options.onRename(this.options.qualityGate, name);
-        },
-        error => {
-          this.enableForm();
-          parseError(error).then(msg => this.showErrors([{ msg }]));
-        }
+      () => {
+        this.destroy();
+        this.options.onRename(this.options.qualityGate, name);
+      },
+      error => {
+        this.enableForm();
+        parseError(error).then(msg => this.showErrors([{ msg }]));
+      }
     );
   },
 
index d95c78498448e0e7bc5a20f8b36cba9353d3420b..fa80a9002118dd9bad8eb9041d2db4b4522bd6e0 100644 (file)
@@ -34,7 +34,7 @@ describe('#sortProfiles', () => {
     const profile2 = createProfile('profile2');
     const profile3 = createProfile('profile3');
     checkOrder(
-        sortProfiles([profile1, profile2, profile3]),
+      sortProfiles([profile1, profile2, profile3]),
         ['profile1', 'profile2', 'profile3']
     );
   });
@@ -44,7 +44,7 @@ describe('#sortProfiles', () => {
     const profile2 = createProfile('profile2');
     const profile3 = createProfile('profile3');
     checkOrder(
-        sortProfiles([profile3, profile1, profile2]),
+      sortProfiles([profile3, profile1, profile2]),
         ['profile1', 'profile2', 'profile3']
     );
   });
@@ -54,7 +54,7 @@ describe('#sortProfiles', () => {
     const child2 = createProfile('child2', 'parent');
     const parent = createProfile('parent');
     checkOrder(
-        sortProfiles([child1, child2, parent]),
+      sortProfiles([child1, child2, parent]),
         ['parent', 'child1', 'child2']
     );
   });
@@ -64,7 +64,7 @@ describe('#sortProfiles', () => {
     const profile2 = createProfile('profile2', 'profile3');
     const profile3 = createProfile('profile3', 'profile1');
     checkOrder(
-        sortProfiles([profile3, profile2, profile1]),
+      sortProfiles([profile3, profile2, profile1]),
         ['profile1', 'profile3', 'profile2']
     );
   });
index ffa410509f4e8929c1528fec72a8270ada91e4ff..f57f20c32ee0ad470170943d856ef6da07334ff6 100644 (file)
@@ -33,8 +33,8 @@ export default class ParameterChange extends React.Component {
       return (
           <div style={{ whiteSpace: 'normal' }}>
             {translateWithParameters(
-                'quality_profiles.changelog.parameter_reset_to_default_value',
-                name
+              'quality_profiles.changelog.parameter_reset_to_default_value',
+              name
             )}
           </div>
       );
@@ -43,9 +43,9 @@ export default class ParameterChange extends React.Component {
     return (
         <div style={{ whiteSpace: 'normal' }}>
           {translateWithParameters(
-              'quality_profiles.parameter_set_to',
-              name,
-              value
+            'quality_profiles.parameter_set_to',
+            name,
+            value
           )}
         </div>
     );
index c65144e8df365b611a28910b1c765766b7b08cd2..3a22a61a7060ebab8fee09a0e97c034568c780cf 100644 (file)
@@ -27,7 +27,7 @@ it('should render DateInput', () => {
   const onFromDateChange = jest.fn();
   const onToDateChange = jest.fn();
   const output = shallow(
-      <ChangelogSearch
+    <ChangelogSearch
           fromDate="2016-01-01"
           toDate="2016-05-05"
           onFromDateChange={onFromDateChange}
@@ -45,7 +45,7 @@ it('should render DateInput', () => {
 it('should reset', () => {
   const onReset = jest.fn();
   const output = shallow(
-      <ChangelogSearch
+    <ChangelogSearch
           fromDate="2016-01-01"
           toDate="2016-05-05"
           onFromDateChange={jest.fn()}
index a4e4eb88881572040a19353e2827321cd3ecf4ef..9a147f55b9b4e242ca259713b5126be34cd7e5f0 100644 (file)
@@ -73,8 +73,8 @@ export default class ComparisonResults extends React.Component {
           <td>
             <h6>
               {translateWithParameters(
-                  'quality_profiles.x_rules_only_in',
-                  this.props.inLeft.length
+                'quality_profiles.x_rules_only_in',
+                this.props.inLeft.length
               )}
               {' '}
               {this.props.left.name}
@@ -102,8 +102,8 @@ export default class ComparisonResults extends React.Component {
           <td>
             <h6>
               {translateWithParameters(
-                  'quality_profiles.x_rules_only_in',
-                  this.props.inRight.length
+                'quality_profiles.x_rules_only_in',
+                this.props.inRight.length
               )}
               {' '}
               {this.props.right.name}
@@ -130,8 +130,8 @@ export default class ComparisonResults extends React.Component {
           <td colSpan="2" className="text-center">
             <h6>
               {translateWithParameters(
-                  'quality_profiles.x_rules_have_different_configuration',
-                  this.props.modified.length
+                'quality_profiles.x_rules_have_different_configuration',
+                this.props.modified.length
               )}
             </h6>
           </td>
index 087b80f9e78e041c12f6d25e839d02b417d40dfe..b4fbaa0d9d015973e1fd1ed3178d105b660dd8b4 100644 (file)
@@ -32,7 +32,7 @@ it('should render Select with right options', () => {
   ];
 
   const output = shallow(
-      <ComparisonForm
+    <ComparisonForm
           withKey="another"
           profile={profile}
           profiles={profiles}
index 8cd5df5f218072e6bdecb8d8016398410223c770..e76bed9d67a66cc23af83dc97a5ccafa02725146 100644 (file)
@@ -26,7 +26,7 @@ import SeverityIcon from '../../../../components/shared/severity-icon';
 
 it('should render ComparisonEmpty', () => {
   const output = shallow(
-      <ComparisonResults
+    <ComparisonResults
           left={{ name: 'left' }}
           right={{ name: 'right' }}
           inLeft={[]}
@@ -60,7 +60,7 @@ it('should compare', () => {
   ];
 
   const output = shallow(
-      <ComparisonResults
+    <ComparisonResults
           left={{ name: 'left' }}
           right={{ name: 'right' }}
           inLeft={inLeft}
index 9a55fce03f07343810668483a428f1e78aa6c6e4..c2d4e81eccf2a4b42061b52140dd89223db4e035 100644 (file)
@@ -22,8 +22,8 @@ import App from './App';
 import { getLanguages, getCurrentUser } from '../../../store/rootReducer';
 
 export default connect(
-    state => ({
-      currentUser: getCurrentUser(state),
-      languages: getLanguages(state)
-    })
+  state => ({
+    currentUser: getCurrentUser(state),
+    languages: getLanguages(state)
+  })
 )(App);
index bf57ee241a11f89bfd963ad070a7e923cd895ddb..5a56dd90eacb392b2a305db4de9c326f878e1cc2 100644 (file)
@@ -42,7 +42,7 @@ export default class ProfileContainer extends React.Component {
     }
 
     const child = React.cloneElement(
-        this.props.children,
+      this.props.children,
         { profile, profiles, ...other });
 
     const title = translate('quality_profiles.page') + ' - ' + profile.name;
index fe285d031f94c12174ab61a594591f082786f2d8..0e3fe8f22099111a61034131ccd14febce08f9a6 100644 (file)
@@ -33,7 +33,7 @@ it('should render ProfileHeader', () => {
   ];
   const updateProfiles = jest.fn();
   const output = shallow(
-      <ProfileContainer
+    <ProfileContainer
           location={{ query: { key: 'profile1' } }}
           profiles={profiles}
           canAdmin={false}
@@ -54,7 +54,7 @@ it('should render ProfileNotFound', () => {
     createFakeProfile({ key: 'profile2' })
   ];
   const output = shallow(
-      <ProfileContainer
+    <ProfileContainer
           location={{ query: { key: 'random' } }}
           profiles={profiles}
           canAdmin={false}
@@ -71,7 +71,7 @@ it('should render Helmet', () => {
   ];
   const updateProfiles = jest.fn();
   const output = shallow(
-      <ProfileContainer
+    <ProfileContainer
           location={{ query: { key: 'profile1' } }}
           profiles={profiles}
           canAdmin={false}
index 360e0b692370919784bd9edaf4e46dd3177ca340..651f768ef5cb48dcb0f07c0f1192720350f5fe3e 100644 (file)
@@ -56,8 +56,8 @@ export default class ProfileInheritanceBox extends React.Component {
 
           <td>
             {translateWithParameters(
-                'quality_profile.x_active_rules',
-                profile.activeRuleCount
+              'quality_profile.x_active_rules',
+              profile.activeRuleCount
             )}
           </td>
 
@@ -65,8 +65,8 @@ export default class ProfileInheritanceBox extends React.Component {
             {profile.overridingRuleCount != null && (
                 <p>
                   {translateWithParameters(
-                      'quality_profiles.x_overridden_rules',
-                      profile.overridingRuleCount
+                    'quality_profiles.x_overridden_rules',
+                    profile.overridingRuleCount
                   )}
                 </p>
             )}
index 67ea38cde67c24da9eee2226937575dd5077ead3..0185bbc5af2d447e3d9ae6dc25838836c55b4f3f 100644 (file)
@@ -98,9 +98,9 @@ export default class ProfileRules extends React.Component {
     }
 
     return translateWithParameters(
-        'quality_profiles.x_activated_out_of_y',
-        formatMeasure(count, 'INT'),
-        formatMeasure(total, 'INT'));
+      'quality_profiles.x_activated_out_of_y',
+      formatMeasure(count, 'INT'),
+      formatMeasure(total, 'INT'));
   }
 
   renderActiveTitle () {
@@ -148,8 +148,8 @@ export default class ProfileRules extends React.Component {
         <Link to={rulesUrl} className="small text-muted">
           <strong>
             {formatMeasure(
-                this.state.total - this.state.activatedTotal,
-                'SHORT_INT'
+              this.state.total - this.state.activatedTotal,
+              'SHORT_INT'
             )}
           </strong>
         </Link>
index 25991716aba4f347221307ce3b2550d027d617a7..cb8cd4a54de01637b70711640c3e47f2fe24c91b 100644 (file)
@@ -49,8 +49,8 @@ export default class EvolutionDeprecated extends React.Component {
           </div>
           <div className="spacer-bottom">
             {translateWithParameters(
-                'quality_profiles.deprecated_rules_are_still_activated',
-                profilesWithDeprecations.length
+              'quality_profiles.deprecated_rules_are_still_activated',
+              profilesWithDeprecations.length
             )}
           </div>
           <ul>
@@ -68,8 +68,8 @@ export default class EvolutionDeprecated extends React.Component {
                     {', '}
                     <Link to={getDeprecatedActiveRulesUrl({ qprofile: profile.key })} className="text-muted">
                       {translateWithParameters(
-                          'quality_profile.x_rules',
-                          profile.activeDeprecatedRuleCount
+                        'quality_profile.x_rules',
+                        profile.activeDeprecatedRuleCount
                       )}
                     </Link>
                   </div>
index 91d6d18f135ca75e0e1d078e7adb23b3ba20acec..fcf766eca5890679ac8cc4ec7ac5b03721b354f5 100644 (file)
@@ -96,14 +96,14 @@ export default class EvolutionRules extends React.Component {
                     <div className="note">
                       {rule.activations ? (
                           translateWithParameters(
-                              'quality_profiles.latest_new_rules.activated',
-                              rule.langName,
-                              rule.activations
+                            'quality_profiles.latest_new_rules.activated',
+                            rule.langName,
+                            rule.activations
                           )
                       ) : (
                           translateWithParameters(
-                              'quality_profiles.latest_new_rules.not_activated',
-                              rule.langName
+                            'quality_profiles.latest_new_rules.not_activated',
+                            rule.langName
                           )
                       )}
                     </div>
index 920a6b73b40fe1ab3e576279ac6ba0beedd3c1be..d92018fa184c01445b089a0ecac4193efa78b1fc 100644 (file)
@@ -55,8 +55,8 @@ export default class ProfilesList extends React.Component {
               {language.name}
               {', '}
               {translateWithParameters(
-                  'quality_profiles.x_profiles',
-                  profilesCount
+                'quality_profiles.x_profiles',
+                profilesCount
               )}
             </th>
             <th className="text-right nowrap">
@@ -109,8 +109,8 @@ export default class ProfilesList extends React.Component {
                        className="data zebra zebra-hover">
 
                   {this.renderHeader(
-                      languageKey,
-                      profilesToShow[languageKey].length)}
+                    languageKey,
+                    profilesToShow[languageKey].length)}
 
                   <TooltipsContainer>
                     <tbody>
index af71430ffc1c64d0dcde090b8ed56a94bad41358..b655f5e5a88b9d8e51c075f5ed8fba5faecb4e33 100644 (file)
@@ -35,8 +35,8 @@ export default class ProfilesListHeader extends React.Component {
 
     const label = currentFilter ?
         translateWithParameters(
-            'quality_profiles.x_Profiles',
-            currentLanguage.name) :
+          'quality_profiles.x_Profiles',
+          currentLanguage.name) :
         translate('quality_profiles.all_profiles');
 
     return (
index 3152b5811098118a240b78beec448d5611a4f850..69554d224e585480425bd957eeda9d57f0ada117 100644 (file)
@@ -53,8 +53,8 @@ class LoginFormContainer extends React.Component {
 
   handleSubmit = (login: string, password: string) => {
     this.props.doLogin(login, password).then(
-        this.handleSuccessfulLogin,
-        () => { /* do nothing */ }
+      this.handleSuccessfulLogin,
+      () => { /* do nothing */ }
     );
   };
 
index 51d42bca0a91c6c682cf5e5dbf9c74b5f3dd5630..63ec0cd750f2ab45181abb8c9461e35a39feb034 100644 (file)
@@ -34,5 +34,5 @@ const mapStateToProps = state => ({
 });
 
 export default connect(
-    mapStateToProps
+  mapStateToProps
 )(AllCategoriesList);
index 0cd991f2e626b13763087255d2530010e5794dc8..f8324cd26753d9c8fd11216c35aa3d527b45d49f 100644 (file)
@@ -105,7 +105,7 @@ const mapStateToProps = state => ({
 });
 
 export default connect(
-    mapStateToProps,
+  mapStateToProps,
     { fetchSettings }
 )(App);
 
index bb45681c3ce2cf266a3402bf4536b7c03a9f0944..56f2fbd056fe32bc8331fb28f9f1096170309cd7 100644 (file)
@@ -35,5 +35,5 @@ const mapStateToProps = (state, ownProps) => ({
 });
 
 export default connect(
-    mapStateToProps
+  mapStateToProps
 )(CategoryDefinitionsList);
index e914ea0ff0a7e4a53f68a9fba0894416aa0c9aa9..3b1605e94b881f7398195c6d50823edbe65eb4f0 100644 (file)
@@ -195,6 +195,6 @@ const mapStateToProps = (state, ownProps) => ({
 });
 
 export default connect(
-    mapStateToProps,
+  mapStateToProps,
     { changeValue, saveValue, resetValue, passValidation, cancelChange }
 )(Definition);
index faad508a88bbba0950aa1f39aa6e282c3b84dfc2..ea88bfe84dfb2b12b30f53dbb3b37f90c0a59288 100644 (file)
@@ -42,8 +42,8 @@ class EmailForm extends React.Component {
     this.setState({ success: false, error: null, loading: true });
     const { recipient, subject, message } = this.state;
     sendTestEmail(recipient, subject, message).then(
-        () => this.setState({ success: true, loading: false }),
-        error => parseError(error).then(message => this.setState({ error: message, loading: false }))
+      () => this.setState({ success: true, loading: false }),
+      error => parseError(error).then(message => this.setState({ error: message, loading: false }))
     );
   }
 
index 14c8e1e2c84f2d50eeb1feb80d0b6b614373d9a0..828421df43523ada86a041a058b9b04473a7e2f9 100644 (file)
@@ -25,7 +25,7 @@ import Toggle from '../../../../../components/controls/Toggle';
 it('should render Toggle', () => {
   const onChange = jest.fn();
   const toggle = shallow(
-      <InputForBoolean
+    <InputForBoolean
           name="foo"
           value={true}
           isDefault={false}
@@ -40,7 +40,7 @@ it('should render Toggle', () => {
 it('should render Toggle without value', () => {
   const onChange = jest.fn();
   const input = shallow(
-      <InputForBoolean
+    <InputForBoolean
           name="foo"
           isDefault={false}
           onChange={onChange}/>
@@ -56,7 +56,7 @@ it('should render Toggle without value', () => {
 it('should call onChange', () => {
   const onChange = jest.fn();
   const input = shallow(
-      <InputForBoolean
+    <InputForBoolean
           name="foo"
           value={true}
           isDefault={false}
index 93068a0079709583201f457a19c85c7765fa6e52..bad8f9de1b7d2dbdc6f70ba89d498cf5fdfbb145 100644 (file)
@@ -25,7 +25,7 @@ import SimpleInput from '../SimpleInput';
 it('should render SimpleInput', () => {
   const onChange = jest.fn();
   const simpleInput = shallow(
-      <InputForNumber
+    <InputForNumber
           name="foo"
           value={17}
           isDefault={false}
index de8f561d72cba5270ad6956e6b3a6b29646112de..02156f5ef5e15efb964bb63796e4581febe5d265 100644 (file)
@@ -25,7 +25,7 @@ import { click, change, submit } from '../../../../../helpers/testUtils';
 it('should render lock icon, but no form', () => {
   const onChange = jest.fn();
   const input = shallow(
-      <InputForPassword
+    <InputForPassword
           name="foo"
           value="bar"
           isDefault={false}
@@ -38,7 +38,7 @@ it('should render lock icon, but no form', () => {
 it('should open form', () => {
   const onChange = jest.fn();
   const input = shallow(
-      <InputForPassword
+    <InputForPassword
           name="foo"
           value="bar"
           isDefault={false}
@@ -54,7 +54,7 @@ it('should open form', () => {
 it('should close form', () => {
   const onChange = jest.fn();
   const input = shallow(
-      <InputForPassword
+    <InputForPassword
           name="foo"
           value="bar"
           isDefault={false}
@@ -73,7 +73,7 @@ it('should close form', () => {
 it('should set value', () => {
   const onChange = jest.fn(() => Promise.resolve());
   const input = shallow(
-      <InputForPassword
+    <InputForPassword
           name="foo"
           value="bar"
           isDefault={false}
index 58be19c6a8341a20cee9dae421b19acf6d87134a..5c50d24d4e9cdf236853730b2685e1a5d9af1b6c 100644 (file)
@@ -25,7 +25,7 @@ import InputForSingleSelectList from '../InputForSingleSelectList';
 it('should render Select', () => {
   const onChange = jest.fn();
   const select = shallow(
-      <InputForSingleSelectList
+    <InputForSingleSelectList
           name="foo"
           value="bar"
           options={['foo', 'bar', 'baz']}
@@ -46,7 +46,7 @@ it('should render Select', () => {
 it('should call onChange', () => {
   const onChange = jest.fn();
   const select = shallow(
-      <InputForSingleSelectList
+    <InputForSingleSelectList
           name="foo"
           value="bar"
           options={['foo', 'bar', 'baz']}
index 1f300b810536c404deabfabad2129b46aa5c4af2..65a81bba419b3007d53003460318f67d5fba3c05 100644 (file)
@@ -25,7 +25,7 @@ import SimpleInput from '../SimpleInput';
 it('should render SimpleInput', () => {
   const onChange = jest.fn();
   const simpleInput = shallow(
-      <InputForString
+    <InputForString
           name="foo"
           value="bar"
           isDefault={false}
index 63ad65dbed78fc109c033ebbe3f15c455f763b47..c3834d557ce5c4efc3dc83e4954039382b23a4f2 100644 (file)
@@ -25,7 +25,7 @@ import { change } from '../../../../../helpers/testUtils';
 it('should render textarea', () => {
   const onChange = jest.fn();
   const textarea = shallow(
-      <InputForText
+    <InputForText
           name="foo"
           value="bar"
           isDefault={false}
@@ -40,7 +40,7 @@ it('should render textarea', () => {
 it('should call onChange', () => {
   const onChange = jest.fn();
   const textarea = shallow(
-      <InputForText
+    <InputForText
           name="foo"
           value="bar"
           isDefault={false}
index 778e11e945017887997e28647d7b95b513640f6f..57c982dfd28363f6f9f1a1504282854d16ff66b9 100644 (file)
@@ -41,7 +41,7 @@ it('should render one value', () => {
 
 it('should render several values', () => {
   const multiValueInput = shallow(
-      <MultiValueInput setting={{ definition }} value={['foo', 'bar', 'baz']} onChange={jest.fn()}/>);
+    <MultiValueInput setting={{ definition }} value={['foo', 'bar', 'baz']} onChange={jest.fn()}/>);
   const stringInputs = multiValueInput.find(PrimitiveInput);
   expect(stringInputs.length).toBe(3 + 1);
   assertValues(stringInputs, ['foo', 'bar', 'baz', '']);
@@ -50,7 +50,7 @@ it('should render several values', () => {
 it('should remove value', () => {
   const onChange = jest.fn();
   const multiValueInput = shallow(
-      <MultiValueInput setting={{ definition }} value={['foo', 'bar', 'baz']} onChange={onChange}/>);
+    <MultiValueInput setting={{ definition }} value={['foo', 'bar', 'baz']} onChange={onChange}/>);
   click(multiValueInput.find('.js-remove-value').at(1));
   expect(onChange).toBeCalledWith(['foo', 'baz']);
 });
@@ -58,7 +58,7 @@ it('should remove value', () => {
 it('should change existing value', () => {
   const onChange = jest.fn();
   const multiValueInput = shallow(
-      <MultiValueInput setting={{ definition }} value={['foo', 'bar', 'baz']} onChange={onChange}/>);
+    <MultiValueInput setting={{ definition }} value={['foo', 'bar', 'baz']} onChange={onChange}/>);
   multiValueInput.find(PrimitiveInput).at(1).prop('onChange')('qux');
   expect(onChange).toBeCalledWith(['foo', 'qux', 'baz']);
 });
index 1e71396a32d41b1c9bf4821d0b5d2b61941c9344..38b0f22f73d9d8699ff29310d4c56070d3fe52d5 100644 (file)
@@ -25,7 +25,7 @@ import { change } from '../../../../../helpers/testUtils';
 it('should render input', () => {
   const onChange = jest.fn();
   const input = shallow(
-      <SimpleInput
+    <SimpleInput
           type="text"
           className="input-large"
           name="foo"
@@ -44,7 +44,7 @@ it('should render input', () => {
 it('should call onChange', () => {
   const onChange = jest.fn();
   const input = shallow(
-      <SimpleInput
+    <SimpleInput
           type="text"
           className="input-large"
           name="foo"
index 1b827f336ea389eafd05b885a49bb97b7f36382b..24efcbfe2c8f190b9ae09c4c9173a6e762ed5ef5 100644 (file)
@@ -23,6 +23,6 @@ import { checkSecretKey, generateSecretKey, encryptValue, startGeneration } from
 import { getSettingsAppEncryptionState } from '../../../store/rootReducer';
 
 export default connect(
-    state => getSettingsAppEncryptionState(state),
+  state => getSettingsAppEncryptionState(state),
     { checkSecretKey, generateSecretKey, encryptValue, startGeneration }
 )(EncryptionApp);
index e602b782e14637524fa963fb5862706653c07132..807848b84c4ac9f653bbf54801364885befda80d 100644 (file)
@@ -27,6 +27,6 @@ const mapStateToProps = (state, ownProps) => ({
 });
 
 export default connect(
-    mapStateToProps,
+  mapStateToProps,
     { setLicense }
 )(LicenseRow);
index f59a4f3ff559d7831597220c052fd3c8c3a33b13..dd5745986b46614d8a7872aec06a0799846781ea 100644 (file)
@@ -27,6 +27,6 @@ const mapStateToProps = state => ({
 });
 
 export default connect(
-    mapStateToProps,
+  mapStateToProps,
     { fetchLicenses }
 )(LicensesList);
index 0b7816fe3f8118d1118f5944e3db370a9593ee06..7a05c325f7c40288de17ee0024353891e07131bb 100644 (file)
@@ -22,6 +22,6 @@ import ServerIdApp from './ServerIdApp';
 import { addGlobalErrorMessage, closeAllGlobalMessages } from '../../../store/globalMessages/duck';
 
 export default connect(
-    () => ({}),
+  () => ({}),
     { addGlobalErrorMessage, closeAllGlobalMessages }
 )(ServerIdApp);
index 27cc382f520192cb697c95e30e20bf076b1af1ce..62feda90947b8fee052625ce67032b7f3f015689 100644 (file)
@@ -49,8 +49,8 @@ export const getDefinitionsForCategory = (state: State, category: string) =>
     getAllDefinitions(state).filter(definition => definition.category.toLowerCase() === category.toLowerCase());
 
 export const getAllCategories = (state: State) => uniqBy(
-    getAllDefinitions(state).map(definition => definition.category),
-    category => category.toLowerCase());
+  getAllDefinitions(state).map(definition => definition.category),
+  category => category.toLowerCase());
 
 export const getDefaultCategory = (state: State) => {
   const categories = getAllCategories(state);
index 604598cd596297fcb51cd0f9fdedc5d2efb5b951..377e3b34e4a883add8072c8caff38e949e88fd00 100644 (file)
@@ -28,7 +28,7 @@ it('should display bars', () => {
     { x: 3, y: 20 }
   ];
   const chart = shallow(
-      <BarChart
+    <BarChart
           data={data}
           width={100}
           height={100}
@@ -44,7 +44,7 @@ it('should display ticks', () => {
   ];
   const ticks = ['A', 'B', 'C'];
   const chart = shallow(
-      <BarChart
+    <BarChart
           data={data}
           xTicks={ticks}
           width={100}
@@ -61,7 +61,7 @@ it('should display values', () => {
   ];
   const values = ['A', 'B', 'C'];
   const chart = shallow(
-      <BarChart
+    <BarChart
           data={data}
           xValues={values}
           width={100}
@@ -79,7 +79,7 @@ it('should display bars, ticks and values', () => {
   const ticks = ['A', 'B', 'C'];
   const values = ['A', 'B', 'C'];
   const chart = shallow(
-      <BarChart
+    <BarChart
           data={data}
           xTicks={ticks}
           xValues={values}
index 901cc09a8b48429d36a8f0ad241b926502440950..566b1eb833d98f14d3bf31a1fbb2bfcbd5dd5714 100644 (file)
@@ -39,7 +39,7 @@ it('should display ticks', () => {
   ];
   const ticks = ['A', 'B', 'C'];
   const chart = shallow(
-      <LineChart
+    <LineChart
           data={data}
           xTicks={ticks}
           width={100}
@@ -55,7 +55,7 @@ it('should display values', () => {
   ];
   const values = ['A', 'B', 'C'];
   const chart = shallow(
-      <LineChart
+    <LineChart
           data={data}
           xValues={values}
           width={100}
index 3fe09eff2ee798722a7a301ac7a300abd8daadc6..453bba4daee348c3684a944ed63f7b712ea4250b 100644 (file)
@@ -28,7 +28,7 @@ it('should display', () => {
     { size: 20, color: '#777', label: 'SonarQube :: Search' }
   ];
   const chart = shallow(
-      <Treemap
+    <Treemap
           items={items}
           width={100}
           height={100}
index dd1f2a94ccf4b8bccd56e27af54c37c4d330f969..bfbc383d7ad7c7b26d0e72ccd62f196370bc231a 100644 (file)
@@ -53,6 +53,6 @@ const mapDispatchToProps = (dispatch, ownProps) => ({
 });
 
 export default connect(
-    mapStateToProps,
-    mapDispatchToProps
+  mapStateToProps,
+  mapDispatchToProps
 )(FavoriteBaseStateless);
index 3c6be7d64a190c2ebeaa739aacdced401e36f70b..504bd99accdc16b85305d3ca82fcacc0403dd063 100644 (file)
@@ -63,9 +63,9 @@ export default class ListFooter extends React.Component {
     return (
         <footer className={className}>
           {translateWithParameters(
-              'x_of_y_shown',
-              formatMeasure(this.props.count, 'INT'),
-              formatMeasure(this.props.total, 'INT')
+            'x_of_y_shown',
+            formatMeasure(this.props.count, 'INT'),
+            formatMeasure(this.props.total, 'INT')
           )}
           {this.canLoadMore() && hasMore ? loadMoreLink : null}
         </footer>
index 95b51552fabbcd416bafbc5a0a6f058375081b2b..5d54221e049a61542d1a6d729d509a4cf6e9f789 100644 (file)
@@ -24,7 +24,7 @@ import { click } from '../../../helpers/testUtils';
 
 function renderFavoriteBase (props) {
   return shallow(
-      <FavoriteBase
+    <FavoriteBase
           favorite={true}
           addFavorite={jest.fn()}
           removeFavorite={jest.fn()}
index 22a153b90c82f31d41acf33f88356e79c40ba2b1..bfbd0c6d03f3812fce71cf52a12d5ba2efa95c14 100644 (file)
@@ -25,17 +25,17 @@ const organization = { key: 'foo', name: 'foo' };
 
 it('should match snapshot', () => {
   expect(shallow(
-      <UnconnectedOrganization organization={organization} shouldBeDisplayed={true}/>
+    <UnconnectedOrganization organization={organization} shouldBeDisplayed={true}/>
   )).toMatchSnapshot();
 });
 
 it('should not be displayed', () => {
   expect(shallow(
-      <UnconnectedOrganization organization={organization} shouldBeDisplayed={false}/>
+    <UnconnectedOrganization organization={organization} shouldBeDisplayed={false}/>
   )).toMatchSnapshot();
 
   expect(shallow(
-      <UnconnectedOrganization organization={null} shouldBeDisplayed={true}/>
+    <UnconnectedOrganization organization={null} shouldBeDisplayed={true}/>
   )).toMatchSnapshot();
 });
 
index dff3fd1177b585b0d28034212db40584d47b2b8a..c9c13688af237d2500dd13395ed6c98b246272c6 100644 (file)
@@ -112,8 +112,8 @@ export const DrilldownLink = React.createClass({
 
   renderIssuesLink () {
     const url = getComponentIssuesUrl(
-        this.props.component,
-        this.propsToIssueParams());
+      this.props.component,
+      this.propsToIssueParams());
 
     return (
         <Link to={url} className={this.props.className}>{this.props.children}</Link>
index a931d6e88360d9b7d232e3143cd0c5c8e60e0504..a01d69b0f8550e4f18d1c767e7903b734545bb77 100644 (file)
@@ -134,13 +134,13 @@ export default ModalView.extend({
   prepareMetrics (metrics) {
     metrics = metrics.filter(metric => metric.value != null);
     return sortBy(
-        toPairs(groupBy(metrics, 'domain')).map(domain => {
-          return {
-            name: domain[0],
-            metrics: domain[1]
-          };
-        }),
-        'name'
+      toPairs(groupBy(metrics, 'domain')).map(domain => {
+        return {
+          name: domain[0],
+          metrics: domain[1]
+        };
+      }),
+      'name'
     );
   },
 
index 5e7a33d28a682a4777915731e046fc9070fa5134..e6cbac9a939980f57aab8ecc340c7f687a327be0 100644 (file)
@@ -25,7 +25,7 @@ const gravatarServerUrl = 'http://example.com/{EMAIL_MD5}.jpg?s={SIZE}';
 
 it('should render', () => {
   const avatar = shallow(
-      <Avatar enableGravatar={true} gravatarServerUrl={gravatarServerUrl} email="mail@example.com" size={20}/>
+    <Avatar enableGravatar={true} gravatarServerUrl={gravatarServerUrl} email="mail@example.com" size={20}/>
   );
   expect(avatar.is('img')).toBe(true);
   expect(avatar.prop('width')).toBe(20);
@@ -36,7 +36,7 @@ it('should render', () => {
 
 it('should not render', () => {
   const avatar = shallow(
-      <Avatar enableGravatar={false} gravatarServerUrl={gravatarServerUrl} email="mail@example.com" size={20}/>
+    <Avatar enableGravatar={false} gravatarServerUrl={gravatarServerUrl} email="mail@example.com" size={20}/>
   );
   expect(avatar.is('img')).toBe(false);
 });
index 8bb991a8390f227313a360c8b60c2bc2cb991d46..730cea9ef837ef6627697cb3a49bb47db2f92ab7 100644 (file)
@@ -52,22 +52,22 @@ describe('#getComponentUrl', () => {
 describe('#getComponentIssuesUrl', () => {
   it('should work without parameters', () => {
     expect(getComponentIssuesUrl(SIMPLE_COMPONENT_KEY, {})).toBe(
-        '/component_issues?id=' + SIMPLE_COMPONENT_KEY + '#');
+      '/component_issues?id=' + SIMPLE_COMPONENT_KEY + '#');
   });
 
   it('should encode component key', () => {
     expect(getComponentIssuesUrl(COMPLEX_COMPONENT_KEY, {})).toBe(
-        '/component_issues?id=' + COMPLEX_COMPONENT_KEY_ENCODED + '#');
+      '/component_issues?id=' + COMPLEX_COMPONENT_KEY_ENCODED + '#');
   });
 
   it('should work with parameters', () => {
     expect(getComponentIssuesUrl(SIMPLE_COMPONENT_KEY, { resolved: 'false' })).toBe(
-        '/component_issues?id=' + SIMPLE_COMPONENT_KEY + '#resolved=false');
+      '/component_issues?id=' + SIMPLE_COMPONENT_KEY + '#resolved=false');
   });
 
   it('should encode parameters', () => {
     expect(getComponentIssuesUrl(SIMPLE_COMPONENT_KEY, { componentUuids: COMPLEX_COMPONENT_KEY })).toBe(
-        '/component_issues?id=' + SIMPLE_COMPONENT_KEY + '#componentUuids=' + COMPLEX_COMPONENT_KEY_ENCODED);
+      '/component_issues?id=' + SIMPLE_COMPONENT_KEY + '#componentUuids=' + COMPLEX_COMPONENT_KEY_ENCODED);
   });
 });
 
index 5fec0d145aa0aa250e5490fddbcd6b3f9124afe5..3ccf6a9be072a2fdbc202e44488f7773b0114d26 100644 (file)
@@ -32,10 +32,10 @@ module.exports = function (diff) {
         formatMeasure(diff.newValue, 'WORK_DUR') :
         diff.newValue;
     message = translateWithParameters('issue.changelog.changed_to',
-        translate('issue.changelog.field', diff.key), newValue);
+      translate('issue.changelog.field', diff.key), newValue);
   } else {
     message = translateWithParameters('issue.changelog.removed',
-        translate('issue.changelog.field', diff.key));
+      translate('issue.changelog.field', diff.key));
   }
 
   if (diff.oldValue != null) {
index 73c89985ed3b3f9522ea3d6e48005201f210830e..69593cecf538e3b5551c67cc4d8a2191053c17ee 100644 (file)
@@ -261,12 +261,12 @@ function formatDuration (isNegative, days, hours, minutes) {
   if (shouldDisplayHours(days, hours)) {
     formatted = addSpaceIfNeeded(formatted);
     formatted += translateWithParameters('work_duration.x_hours',
-        isNegative && formatted.length === 0 ? -1 * hours : hours);
+      isNegative && formatted.length === 0 ? -1 * hours : hours);
   }
   if (shouldDisplayMinutes(days, hours, minutes)) {
     formatted = addSpaceIfNeeded(formatted);
     formatted += translateWithParameters('work_duration.x_minutes',
-        isNegative && formatted.length === 0 ? -1 * minutes : minutes);
+      isNegative && formatted.length === 0 ? -1 * minutes : minutes);
   }
   return formatted;
 }
@@ -370,17 +370,17 @@ function getMaintainabilityRatingTooltip (rating) {
 
   if (rating < 2) {
     return translateWithParameters(
-        'metric.sqale_rating.tooltip.A',
-        formatMeasure(maintainabilityGrid[0] * 100, 'PERCENT')
+      'metric.sqale_rating.tooltip.A',
+      formatMeasure(maintainabilityGrid[0] * 100, 'PERCENT')
     );
   }
 
   const ratingLetter = formatMeasure(rating, 'RATING');
 
   return translateWithParameters(
-      'metric.sqale_rating.tooltip',
-      ratingLetter,
-      formatMeasure(maintainabilityRatingThreshold * 100, 'PERCENT')
+    'metric.sqale_rating.tooltip',
+    ratingLetter,
+    formatMeasure(maintainabilityRatingThreshold * 100, 'PERCENT')
   );
 }
 
index 50cf534458926983c9f5a7f55904710eda796e85..52b155d1d47d659782e7147393044e8a6a03ac03 100644 (file)
@@ -119,7 +119,7 @@ export function getRulesUrl (query) {
   if (query) {
     const serializedQuery = Object.keys(query).map(criterion => (
         `${encodeURIComponent(criterion)}=${encodeURIComponent(
-            query[criterion])}`
+          query[criterion])}`
     )).join('|');
 
     // return a string (not { pathname }) to help react-router's Link handle this properly
index c1a737db8375117bacb3abfb34e28f6d3fba9584..81523b81eefdedcb18171d870c3d30efcc49f178 100644 (file)
@@ -148,12 +148,12 @@ export const getGlobal = (state: State): NotificationsState => (
 
 export const getProjects = (state: State): Array<string> => (
     uniqBy(
-        state.notifications.filter(n => n.project).map(n => ({
-          key: n.project,
-          name: n.projectName,
-          organization: n.organization
-        })),
-        project => project.key
+      state.notifications.filter(n => n.project).map(n => ({
+        key: n.project,
+        name: n.projectName,
+        organization: n.organization
+      })),
+      project => project.key
     )
 );
 
index 8daf6579ac56054f0e28a434bc34d524a0cd7f13..d9bd1d97e05677060656970134eb5b6a0cd60e5d 100644 (file)
@@ -34,22 +34,22 @@ export const onFail = dispatch => error => (
 
 export const fetchAppState = () => dispatch => (
     getGlobalNavigation().then(
-        appState => dispatch(setAppState(appState)),
-        onFail(dispatch)
+      appState => dispatch(setAppState(appState)),
+      onFail(dispatch)
     )
 );
 
 export const fetchLanguages = () => dispatch => {
   return getLanguages().then(
-      languages => dispatch(receiveLanguages(languages)),
-      onFail(dispatch)
+    languages => dispatch(receiveLanguages(languages)),
+    onFail(dispatch)
   );
 };
 
 export const fetchOrganizations = (organizations?: Array<string>) => dispatch => (
     getOrganizations(organizations).then(
-        r => dispatch(receiveOrganizations(r.organizations)),
-        onFail(dispatch)
+      r => dispatch(receiveOrganizations(r.organizations)),
+      onFail(dispatch)
     )
 );
 
@@ -60,30 +60,30 @@ const addQualifier = project => ({
 
 export const fetchProject = key => dispatch => (
     getComponentNavigation(key).then(
-        component => {
-          dispatch(receiveComponents([addQualifier(component)]));
-          if (component.organization != null) {
-            dispatch(fetchOrganizations([component.organization]));
-          }
-        })
+      component => {
+        dispatch(receiveComponents([addQualifier(component)]));
+        if (component.organization != null) {
+          dispatch(fetchOrganizations([component.organization]));
+        }
+      })
 );
 
 export const doLogin = (login, password) => dispatch => (
     auth.login(login, password).then(
-        () => { /* everything is fine */ },
-        () => {
-          dispatch(addGlobalErrorMessage('Authentication failed'));
-          return Promise.reject();
-        }
+      () => { /* everything is fine */ },
+      () => {
+        dispatch(addGlobalErrorMessage('Authentication failed'));
+        return Promise.reject();
+      }
     )
 );
 
 export const doLogout = () => dispatch => (
     auth.logout().then(
-        () => { /* everything is fine */ },
-        () => {
-          dispatch(addGlobalErrorMessage('Logout failed'));
-          return Promise.reject();
-        }
+      () => { /* everything is fine */ },
+      () => {
+        dispatch(addGlobalErrorMessage('Logout failed'));
+        return Promise.reject();
+      }
     )
 );
index ef5e9f5373767d5bf086f6061b736e244d4b129c..35d6a7ee916aad9c08bfd04fe4a4ed4ca2f7d450 100644 (file)
@@ -31,8 +31,8 @@ if (process.env.NODE_ENV !== 'production') {
 }
 
 const finalCreateStore = compose(
-    applyMiddleware(...middlewares),
-    ...composed
+  applyMiddleware(...middlewares),
+  ...composed
 )(createStore);
 
 export default function configureStore (rootReducer, initialState) {