Managing code quality with SonarQube - Radu Vunvulea

2,672 views

Published on

In this session we will discover different metrics that can be used when we want to measure the code quality of a project. To calculate and interpret this metrics we will use SonarQube.

Published in: Technology

Managing code quality with SonarQube - Radu Vunvulea

  1. 1. Who am I? : ”vunvulear@outlook.com”,
  2. 2. Cost Estimation Task Assignments Budget Planning Quality Assurance (Testing) Performance Optimization Schedule Software Debugging
  3. 3. • • • • • • • • • • • • • • • • • • • • •
  4. 4. Cyclic dependencies Test success Duplication Time to market Cyclomatic Complexity Meantime between failure Cost Code Coverage
  5. 5. Who All team How When Simple tool Anytime
  6. 6. Code Analyzers Reporting Tools Defects Hunting Plugin
  7. 7. Architecture & Design Comments Duplications Source Coding rules Unit tests Potential bugs Complexity
  8. 8. Bugs and Potential Bugs
  9. 9. Coding Standards Breach
  10. 10. Duplications
  11. 11. Lack of Unit Tests
  12. 12. Bad Distribution of Complexity
  13. 13. Spaghetti Design
  14. 14. Not Enough or Too Many Comments
  15. 15. C# JavaScript VB.NET Visual Basic HTML
  16. 16. sonar.projectKey=com.mycompany:myCSharpApplication sonar.projectVersion=1.0-SNAPSHOT sonar.projectName=My CSHARP Application sonar.language=cs sonar.dotnet.visualstudio.solution.file=Microsoft.AspNet.SignalR.sln sonar.sourceEncoding=UTF-8
  17. 17. http://www.sonarqube.org/ http://www.sonarsource.com/ http://docs.codehaus.org/display/SONA R/Plugin+Library
  18. 18. Question Answers
  19. 19. { } “name” : “Radu Vunvulea, “blog” : “vunvulearadu.blogspot.com”, “email” : ”vunvulear@outlook.com”, “socialMedia” : { “twitter” : “@RaduVunvulea”, “fb” : “radu.vunvulea” }

×