Slide 1

Slide 1 text

1 Sonar in Action by Frédéric DROUET and Arnaud HERITIER 02/03/2011

Slide 2

Slide 2 text

2 Agenda » How do we measure the code quality ? » The 7 worst practices » The Goals of Sonar » Demonstration on YOUR code

Slide 3

Slide 3 text

3 3 Why do we need this kind of tool

Slide 4

Slide 4 text

4 How do we measure the code quality ? In the past

Slide 5

Slide 5 text

5 How do we measure the code quality ? That is not sufficient !

Slide 6

Slide 6 text

6 How do we measure the code quality ? Today : we need to measure the Technical Debt …

Slide 7

Slide 7 text

7 How do we measure the code quality ? … and to monitor this Technical Debt … … to take corrective actions without being blind

Slide 8

Slide 8 text

8 The 7 worst practices

Slide 9

Slide 9 text

9 The 7 worst practices 1- Duplicated code »  Which one do you prefer ?

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

11 The 7 worst practices 3- Bad design »  Which package / class is responsible of what ?

Slide 12

Slide 12 text

12 The 7 worst practices 4- Potential bugs

Slide 13

Slide 13 text

13 The 7 worst practices 5- Little or no use of unit tests »  Please add a new case BUT without any regression of course

Slide 14

Slide 14 text

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

Slide 15

Slide 15 text

15 The 7 worst practices 7- No comment or too many comments

Slide 16

Slide 16 text

16 The goals of Sonar

Slide 17

Slide 17 text

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

Slide 18

Slide 18 text

18 Demonstration

Slide 19

Slide 19 text

19 Demonstration » https://sonar.exoplatform.org