Successfully reported this slideshow.
Sonar
Continuous Inspection of Code
Quality
About Me
I’m Programmer

Copyright 2013 @nuboat
Copyright 2013 @nuboat
CDM

Copyright 2013 @nuboat
Copyright 2013 @nuboat
CI

http:/
/atouchard.github.io/drupal-continuous-integration/
Copyright 2013 @nuboat
Code Quality

Copyright 2013 @nuboat
The 7 axes of code quality
-

Coding Rules

-

Architecture Design

-

Unit Tests Coverage

-

Duplicated Code

-

Potenti...
What is Sonar?
“Sonar is the central place to manage
code quality, offering visual reporting
on and across projects and en...
SonarSource
(commercial)
VS

SonarQube
(Opensource by SonarSource)

Copyright 2013 @nuboat
SonarQube
An open web-based application platform
to manage code quality.

Copyright 2013 @nuboat
Copyright 2013 @nuboat
ABAP*
PL/SQL*

JavaScript
Android

C/C++*

Web

PL/I*
Delphi / Pascal
XML

Visual Basic 6*
Erlang

Python
PHP

Groovy

Cop...
Copyright 2013 @nuboat
Rules & Potential Bugs
Unit Test

Complexity

Copyright 2013 @nuboat

Duplicate

Comment
Potential Bugs

Copyright 2013 @nuboat
Rules

Copyright 2013 @nuboat
Duplicate Code

Copyright 2013 @nuboat
Coverage

Copyright 2013 @nuboat
Complexity

Generally 1-4 is considered good, 5-7 ok, 8-10
consider re-factoring, and 11+ re-factor now !
Copyright 2013 @...
Comment

Copyright 2013 @nuboat
Hotspots

Copyright 2013 @nuboat
Issues

Copyright 2013 @nuboat
Time Machines

Copyright 2013 @nuboat
Update Center

Copyright 2013 @nuboat
DEMO

Copyright 2013 @nuboat
FINALLY
Sonar is just a tools, not a magic.

Copyright 2013 @nuboat
References
-

http:/
/www.sonarqube.org/

-

http:/
/www.sonarsource.com/

-

http:/
/docs.codehaus.org/display/SONAR/
Plu...
Q & A

Copyright 2013 @nuboat
Upcoming SlideShare
Loading in …5
×

Sonar

4,234 views

Published on

Published in: Technology

Sonar

  1. 1. Sonar Continuous Inspection of Code Quality
  2. 2. About Me I’m Programmer Copyright 2013 @nuboat
  3. 3. Copyright 2013 @nuboat
  4. 4. CDM Copyright 2013 @nuboat
  5. 5. Copyright 2013 @nuboat
  6. 6. CI http:/ /atouchard.github.io/drupal-continuous-integration/ Copyright 2013 @nuboat
  7. 7. Code Quality Copyright 2013 @nuboat
  8. 8. The 7 axes of code quality - Coding Rules - Architecture Design - Unit Tests Coverage - Duplicated Code - Potential Bugs - Complexity - Comment Copyright 2013 @nuboat
  9. 9. What is Sonar? “Sonar is the central place to manage code quality, offering visual reporting on and across projects and enabling to replay the past to follow metrics evolution” source: http:/ /www.sonarsource.org/ Copyright 2013 @nuboat
  10. 10. SonarSource (commercial) VS SonarQube (Opensource by SonarSource) Copyright 2013 @nuboat
  11. 11. SonarQube An open web-based application platform to manage code quality. Copyright 2013 @nuboat
  12. 12. Copyright 2013 @nuboat
  13. 13. ABAP* PL/SQL* JavaScript Android C/C++* Web PL/I* Delphi / Pascal XML Visual Basic 6* Erlang Python PHP Groovy Copyright 2013 @nuboat Language Support Natural* C# Cobol* Flex / ActionScript Drools VB.NET* Java Pacbase* *Commercial support
  14. 14. Copyright 2013 @nuboat
  15. 15. Rules & Potential Bugs Unit Test Complexity Copyright 2013 @nuboat Duplicate Comment
  16. 16. Potential Bugs Copyright 2013 @nuboat
  17. 17. Rules Copyright 2013 @nuboat
  18. 18. Duplicate Code Copyright 2013 @nuboat
  19. 19. Coverage Copyright 2013 @nuboat
  20. 20. Complexity Generally 1-4 is considered good, 5-7 ok, 8-10 consider re-factoring, and 11+ re-factor now ! Copyright 2013 @nuboat
  21. 21. Comment Copyright 2013 @nuboat
  22. 22. Hotspots Copyright 2013 @nuboat
  23. 23. Issues Copyright 2013 @nuboat
  24. 24. Time Machines Copyright 2013 @nuboat
  25. 25. Update Center Copyright 2013 @nuboat
  26. 26. DEMO Copyright 2013 @nuboat
  27. 27. FINALLY Sonar is just a tools, not a magic. Copyright 2013 @nuboat
  28. 28. References - http:/ /www.sonarqube.org/ - http:/ /www.sonarsource.com/ - http:/ /docs.codehaus.org/display/SONAR/ Plugin+Library - http:/ /findbugs.sourceforge.net/ - http:/ /pmd.sourceforge.net/ - http:/ /github.com/nuboat/bgileboard Copyright 2013 @nuboat
  29. 29. Q & A Copyright 2013 @nuboat

×