aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/tutorials/onboarding/AnalysisStep.js
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-08-29 11:38:53 +0200
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-09-13 13:53:58 +0200
commit793e86fce66f356099792b7231c9a1d949ff875e (patch)
tree8bd08099539c3cb1ff159823ee1d1f74a5f2c979 /server/sonar-web/src/main/js/apps/tutorials/onboarding/AnalysisStep.js
parent736e89cc1629e1e52db00f67e4650f1b88695de9 (diff)
downloadsonarqube-793e86fce66f356099792b7231c9a1d949ff875e.tar.gz
sonarqube-793e86fce66f356099792b7231c9a1d949ff875e.zip
update prettier
Diffstat (limited to 'server/sonar-web/src/main/js/apps/tutorials/onboarding/AnalysisStep.js')
-rw-r--r--server/sonar-web/src/main/js/apps/tutorials/onboarding/AnalysisStep.js31
1 files changed, 16 insertions, 15 deletions
diff --git a/server/sonar-web/src/main/js/apps/tutorials/onboarding/AnalysisStep.js b/server/sonar-web/src/main/js/apps/tutorials/onboarding/AnalysisStep.js
index bf535694f94..ebf9d57e49c 100644
--- a/server/sonar-web/src/main/js/apps/tutorials/onboarding/AnalysisStep.js
+++ b/server/sonar-web/src/main/js/apps/tutorials/onboarding/AnalysisStep.js
@@ -77,18 +77,15 @@ export default class AnalysisStep extends React.PureComponent {
sonarCloud={this.props.sonarCloud}
/>
</div>
- <div className="flex-column flex-column-half">
- {this.renderCommand()}
- </div>
+ <div className="flex-column flex-column-half">{this.renderCommand()}</div>
</div>
</div>
);
};
- renderFormattedCommand = (...lines /*: Array<string> */) =>
- <pre>
- {lines.join(' ' + '\\' + '\n' + ' ')}
- </pre>;
+ renderFormattedCommand = (...lines /*: Array<string> */) => (
+ <pre>{lines.join(' ' + '\\' + '\n' + ' ')}</pre>
+ );
renderCommand = () => {
const { result } = this.state;
@@ -112,19 +109,21 @@ export default class AnalysisStep extends React.PureComponent {
}
};
- renderCommandForMaven = () =>
+ renderCommandForMaven = () => (
<JavaMaven
host={this.getHost()}
organization={this.props.organization}
token={this.props.token}
- />;
+ />
+ );
- renderCommandForGradle = () =>
+ renderCommandForGradle = () => (
<JavaGradle
host={this.getHost()}
organization={this.props.organization}
token={this.props.token}
- />;
+ />
+ );
renderCommandForDotNet = () => {
return (
@@ -150,7 +149,7 @@ export default class AnalysisStep extends React.PureComponent {
);
};
- renderCommandForClangGCC = () =>
+ renderCommandForClangGCC = () => (
<ClangGCC
host={this.getHost()}
organization={this.props.organization}
@@ -159,9 +158,10 @@ export default class AnalysisStep extends React.PureComponent {
// $FlowFixMe
projectKey={this.state.result.projectKey}
token={this.props.token}
- />;
+ />
+ );
- renderCommandForOther = () =>
+ renderCommandForOther = () => (
<Other
host={this.getHost()}
organization={this.props.organization}
@@ -170,7 +170,8 @@ export default class AnalysisStep extends React.PureComponent {
// $FlowFixMe
projectKey={this.state.result.projectKey}
token={this.props.token}
- />;
+ />
+ );
renderResult = () => null;