Download - Sonar In Action 20110302-vn
2
Agenda
» How do we measure the code quality ?
» The 7 worst practices
» The Goals of Sonar
» Demonstration on YOUR code
7
How do we measure the code quality ?
… and to monitor this Technical Debt …
… to take corrective actions without being blind
10
The 7 worst practices
2- Maldistribution of the complexity
» What is the best ?
» 1 method with a complexity of 30
» 10 methods with a complexity of 3
13
The 7 worst practices
5- Little or no use of unit tests
» Please add a new case BUT without any regression of course
14
The 7 worst practices
6- Non-compliance with standards
» We have opened a dedicated Wiki Space for Development Standards for eXo
» https://wiki-int.exoplatform.org/display/DEVSTD
17
The goals of Sonar
» Help the developer to find the problems
» Help the managers to monitor the health of the codebase and to follow the trends