aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-profiles
diff options
context:
space:
mode:
authorStas Vilchik <stas-vilchik@users.noreply.github.com>2017-03-31 13:54:46 +0200
committerGitHub <noreply@github.com>2017-03-31 13:54:46 +0200
commitfe716c6dc43d4d7acb437136b1c87902e8ff0bc4 (patch)
tree6b8a18d7a8f76de1fd34be3235d1639477b75d71 /server/sonar-web/src/main/js/apps/quality-profiles
parente660d605a27992d82d901b8fe0b8938da7afb270 (diff)
downloadsonarqube-fe716c6dc43d4d7acb437136b1c87902e8ff0bc4.tar.gz
sonarqube-fe716c6dc43d4d7acb437136b1c87902e8ff0bc4.zip
re-format js code (#1877)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-profiles')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.js6
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileLink.js3
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.js9
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.js6
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileProjects.js3
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.js3
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/home/PageHeader.js6
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListHeader.js6
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListRow.js6
9 files changed, 16 insertions, 32 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.js b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.js
index 7c11c4a88f5..1616c0936c8 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.js
@@ -110,8 +110,7 @@ export default class ProfileActions extends React.Component {
<li>
<Link
to={{ pathname: '/profiles/compare', query: { key: profile.key } }}
- id="quality-profile-compare"
- >
+ id="quality-profile-compare">
{translate('compare')}
</Link>
</li>
@@ -133,8 +132,7 @@ export default class ProfileActions extends React.Component {
<a
id="quality-profile-set-as-default"
href="#"
- onClick={this.handleSetDefaultClick.bind(this)}
- >
+ onClick={this.handleSetDefaultClick.bind(this)}>
{translate('set_as_default')}
</a>
</li>}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileLink.js b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileLink.js
index 6fbb379a887..e6d332735b7 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileLink.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileLink.js
@@ -32,8 +32,7 @@ export default class ProfileLink extends React.Component {
<Link
to={{ pathname: '/profiles/show', query }}
activeClassName="link-no-underline"
- {...other}
- >
+ {...other}>
{children}
</Link>
);
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.js b/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.js
index da6f052f635..c4073232a95 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.js
@@ -34,8 +34,7 @@ it('should render ProfileHeader', () => {
location={{ query: { key: 'profile1' } }}
profiles={profiles}
canAdmin={false}
- updateProfiles={updateProfiles}
- >
+ updateProfiles={updateProfiles}>
<div />
</ProfileContainer>
);
@@ -53,8 +52,7 @@ it('should render ProfileNotFound', () => {
location={{ query: { key: 'random' } }}
profiles={profiles}
canAdmin={false}
- updateProfiles={() => true}
- >
+ updateProfiles={() => true}>
<div />
</ProfileContainer>
);
@@ -69,8 +67,7 @@ it('should render Helmet', () => {
location={{ query: { key: 'profile1' } }}
profiles={profiles}
canAdmin={false}
- updateProfiles={updateProfiles}
- >
+ updateProfiles={updateProfiles}>
<div />
</ProfileContainer>
);
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.js b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.js
index b75c90c1373..a581dad1983 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.js
@@ -92,8 +92,7 @@ export default class ProfileHeader extends React.Component {
{' / '}
<Link
to={{ pathname: '/profiles/', query: { language: profile.language } }}
- className="text-muted"
- >
+ className="text-muted">
{profile.languageName}
</Link>
</div>
@@ -111,8 +110,7 @@ export default class ProfileHeader extends React.Component {
<li>
<Link
to={{ pathname: '/profiles/changelog', query: { key: profile.key } }}
- className="button"
- >
+ className="button">
{translate('changelog')}
</Link>
</li>
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileProjects.js b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileProjects.js
index fffdb362366..650eae3746e 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileProjects.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileProjects.js
@@ -112,8 +112,7 @@ export default class ProfileProjects extends React.Component {
<li key={project.uuid} className="spacer-top js-profile-project" data-key={project.key}>
<Link
to={{ pathname: '/dashboard', query: { id: project.key } }}
- className="link-with-icon"
- >
+ className="link-with-icon">
<QualifierIcon qualifier="TRK" />
{' '}
<span>{project.name}</span>
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.js b/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.js
index d5f04ac306a..8c2a79cc697 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.js
@@ -65,8 +65,7 @@ export default class EvolutionDeprecated extends React.Component {
{', '}
<Link
to={getDeprecatedActiveRulesUrl({ qprofile: profile.key })}
- className="text-muted"
- >
+ className="text-muted">
{translateWithParameters(
'quality_profile.x_rules',
profile.activeDeprecatedRuleCount
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/PageHeader.js b/server/sonar-web/src/main/js/apps/quality-profiles/home/PageHeader.js
index f83101f8259..9d4ca3dbefb 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/home/PageHeader.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/PageHeader.js
@@ -106,8 +106,7 @@ export default class PageHeader extends React.Component {
<a
href="#"
id="quality-profiles-restore"
- onClick={this.handleRestoreClick.bind(this)}
- >
+ onClick={this.handleRestoreClick.bind(this)}>
{translate('quality_profiles.restore_profile')}
</a>
</li>
@@ -116,8 +115,7 @@ export default class PageHeader extends React.Component {
<a
href="#"
id="quality-profiles-restore-built-in"
- onClick={this.handleRestoreBuiltIn.bind(this)}
- >
+ onClick={this.handleRestoreBuiltIn.bind(this)}>
{translate('quality_profiles.restore_built_in_profiles')}
</a>
</li>
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListHeader.js b/server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListHeader.js
index 1eb246821aa..3fd7c18d5ff 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListHeader.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListHeader.js
@@ -40,8 +40,7 @@ export default class ProfilesListHeader extends React.Component {
<a
className="dropdown-toggle link-no-underline js-language-filter"
href="#"
- data-toggle="dropdown"
- >
+ data-toggle="dropdown">
{label} <i className="icon-dropdown" />
</a>
);
@@ -60,8 +59,7 @@ export default class ProfilesListHeader extends React.Component {
<IndexLink
to={{ pathname: '/profiles/', query: { language: language.key } }}
className="js-language-filter-option"
- data-language={language.key}
- >
+ data-language={language.key}>
{language.name}
</IndexLink>
</li>
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListRow.js b/server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListRow.js
index 9498b26ac92..eca33432e52 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListRow.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListRow.js
@@ -91,8 +91,7 @@ export default class ProfilesListRow extends React.Component {
to={deprecatedRulesUrl}
className="badge badge-normal-size badge-danger-light"
title={translate('quality_profiles.deprecated_rules')}
- data-toggle="tooltip"
- >
+ data-toggle="tooltip">
{profile.activeDeprecatedRuleCount}
</Link>
</span>}
@@ -128,8 +127,7 @@ export default class ProfilesListRow extends React.Component {
<tr
className="quality-profiles-table-row"
data-key={this.props.profile.key}
- data-name={this.props.profile.name}
- >
+ data-name={this.props.profile.name}>
<td className="quality-profiles-table-name">
{this.renderName()}
</td>