Transcript
Page 1: Managing code quality with SonarQube - Radu Vunvulea
Page 2: Managing code quality with SonarQube - Radu Vunvulea
Page 3: Managing code quality with SonarQube - Radu Vunvulea
Page 4: Managing code quality with SonarQube - Radu Vunvulea

: ”[email protected]”,

Who am I?

Page 5: Managing code quality with SonarQube - Radu Vunvulea
Page 6: Managing code quality with SonarQube - Radu Vunvulea
Page 7: Managing code quality with SonarQube - Radu Vunvulea
Page 8: Managing code quality with SonarQube - Radu Vunvulea

Quality

Assurance

(Testing)

Cost

Estimation

Budget

Planning

Schedule

Software

Debugging

Performance

Optimization

Task

Assignments

Page 9: Managing code quality with SonarQube - Radu Vunvulea

Page 10: Managing code quality with SonarQube - Radu Vunvulea

Code Coverage

Duplication

Cyclic

dependenciesTest success

Cyclomatic

Complexity

Time to

market

Cost

Meantime

between

failure

Page 11: Managing code quality with SonarQube - Radu Vunvulea
Page 12: Managing code quality with SonarQube - Radu Vunvulea
Page 13: Managing code quality with SonarQube - Radu Vunvulea

Who

All team

How

Simple

tool

When

Anytime

Page 14: Managing code quality with SonarQube - Radu Vunvulea
Page 15: Managing code quality with SonarQube - Radu Vunvulea
Page 16: Managing code quality with SonarQube - Radu Vunvulea
Page 17: Managing code quality with SonarQube - Radu Vunvulea
Page 18: Managing code quality with SonarQube - Radu Vunvulea
Page 19: Managing code quality with SonarQube - Radu Vunvulea

Code

Analyzers

Reporting

Tools

Defects

Hunting

Plugin

Page 20: Managing code quality with SonarQube - Radu Vunvulea
Page 21: Managing code quality with SonarQube - Radu Vunvulea

Source

Architecture

& Design

Duplications

Unit tests

ComplexityPotential

bugs

Coding

rules

Comments

Page 22: Managing code quality with SonarQube - Radu Vunvulea
Page 23: Managing code quality with SonarQube - Radu Vunvulea

Bugs and Potential Bugs

Page 24: Managing code quality with SonarQube - Radu Vunvulea

Coding Standards Breach

Page 25: Managing code quality with SonarQube - Radu Vunvulea

Duplications

Page 26: Managing code quality with SonarQube - Radu Vunvulea

Lack of Unit Tests

Page 27: Managing code quality with SonarQube - Radu Vunvulea

Bad Distribution of Complexity

Page 28: Managing code quality with SonarQube - Radu Vunvulea

Spaghetti Design

Page 29: Managing code quality with SonarQube - Radu Vunvulea

Not Enough or Too Many Comments

Page 30: Managing code quality with SonarQube - Radu Vunvulea
Page 31: Managing code quality with SonarQube - Radu Vunvulea
Page 32: Managing code quality with SonarQube - Radu Vunvulea
Page 33: Managing code quality with SonarQube - Radu Vunvulea
Page 34: Managing code quality with SonarQube - Radu Vunvulea
Page 35: Managing code quality with SonarQube - Radu Vunvulea
Page 36: Managing code quality with SonarQube - Radu Vunvulea
Page 37: Managing code quality with SonarQube - Radu Vunvulea
Page 38: Managing code quality with SonarQube - Radu Vunvulea
Page 39: Managing code quality with SonarQube - Radu Vunvulea
Page 40: Managing code quality with SonarQube - Radu Vunvulea
Page 41: Managing code quality with SonarQube - Radu Vunvulea
Page 42: Managing code quality with SonarQube - Radu Vunvulea
Page 43: Managing code quality with SonarQube - Radu Vunvulea
Page 44: Managing code quality with SonarQube - Radu Vunvulea

C#JavaScript

VB.NET Visual Basic HTML

Page 45: Managing code quality with SonarQube - Radu Vunvulea
Page 46: Managing code quality with SonarQube - Radu Vunvulea
Page 47: Managing code quality with SonarQube - Radu Vunvulea
Page 48: Managing code quality with SonarQube - Radu Vunvulea
Page 49: Managing code quality with SonarQube - Radu Vunvulea

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

Page 50: Managing code quality with SonarQube - Radu Vunvulea
Page 51: Managing code quality with SonarQube - Radu Vunvulea

http://www.sonarqube.org/

http://www.sonarsource.com/

http://docs.codehaus.org/display/SONAR/Plugin+Library

Page 52: Managing code quality with SonarQube - Radu Vunvulea

Question

Answers

Page 53: Managing code quality with SonarQube - Radu Vunvulea

{

“name” : “Radu Vunvulea,

“blog” : “vunvulearadu.blogspot.com”,

“email” : ”[email protected]”,

“socialMedia” :

{

“twitter” : “@RaduVunvulea”,

“fb” : “radu.vunvulea”

}

}


Top Related