[#OR-1880] As a dev/qa I want a tool to check the code quality of the

advertisement
[OR-1880] As a dev/qa I want a tool to check the code quality of the RSE Created:
08/Oct/15 Updated: 15/Dec/15
Status:
Project:
Component/s:
Affects
Version/s:
Fix Version/s:
Progressing
OpenPaaS RSE
None
None
Type:
Reporter:
Resolution:
Labels:
Σ Remaining
Estimate:
Σ Time Spent:
Σ Original
Estimate:
Task
Stephane COLSON
Unresolved
None
Not Specified
Attachments:
Sub-Tasks:
None
Not Specified
Not Specified
Priority:
Assignee:
Votes:
Major
Stephane COLSON
0
Remaining
Estimate:
Time Spent:
Original
Estimate:
Not Specified
Not Specified
Not Specified
DashboardSonar.png
Key
OR-1993
Summary
Type
Status Assignee
Add code climate Sub-task Closed Stephane COLSON
badge
Rank (Obsolete): 9223372036854775807
Acceptance
Criteria:
Tested
Description
Philipp EXT_KEWISCH suggests https://github.com/es-analysis/plato
A quick search links me to these other tools:





http://jshint.com
http://jslint.com/
https://www.sidekickjs.com/
Sonar: https://blog.synyx.de/2012/08/visualize-javascript-code-quality-and-codecoverage-with-sonar/ & http://www.sonarqube.org/
https://codeclimate.com/
Using Javascript code quality tool in Webstorm:
https://www.jetbrains.com/webstorm/help/using-javascript-code-quality-tools.html
Comments
Comment by Romain PIGNOLET [ 08/Oct/15 ]
We have already https://github.com/karma-runner/karma-coverage for frontend code coverage.
For backend code we can use https://github.com/gotwarlost/istanbul.
JSHint and Google Closure Linter (gjslint) are already setup and launched in the test suite.
Comment by Stephane COLSON [ 04/Nov/15 ]
Thanks Romain PIGNOLET for the feedback:



code coverage tool is another subject and is != code quality tool
also we need to make this visible: see OR-753
Are JSHint and gslint enough and well configured with good rules ? Where are the
results ? Is it blocking the build if code quality not good enough ?
Comment by Stephane COLSON [ 12/Nov/15 ]
See DashboardSonar.png, analysis result of the following folders rse/backend, rse/frontend,
rse/modules with default javascript rules of SonarQube.
Comment by Stephane COLSON [ 12/Nov/15 ]
See results of a code climate on the ESN: https://codeclimate.com/github/linagora/openpaasesn/ (newly created)
and on hubl.in: https://codeclimate.com/github/linagora/hublin
Generated at Tue Feb 09 23:21:00 CET 2016 using JIRA 6.4.5#64020sha1:78acd6c502bd8e526a3f0032b770e55d6f3a3b0f.
Download