track code quality with sonarqube - short version

19
Track code quality with SonarQube

Upload: dmytro-patserkovskyi

Post on 15-Apr-2017

158 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Track code quality with SonarQube - short version

Track code quality with SonarQube

Page 2: Track code quality with SonarQube - short version

HELLO!I am Dmytro Patserkovskyi

Project Manager and founder of Dev SonarQube Community at V.I.Tech

email: [email protected]

Page 3: Track code quality with SonarQube - short version

SOURCE CODE SHOULD BESimple

& Readable

Extendable

Testable& Covered with Tests

Flexible

Page 4: Track code quality with SonarQube - short version

But is it really is?

What technical debt on your project?

Page 5: Track code quality with SonarQube - short version

An open source platform for continuous inspection of code

quality

Page 6: Track code quality with SonarQube - short version

Quality Rules and Profiles

Code Smells Bugs Vulnerabilities

Quality Profile

Page 7: Track code quality with SonarQube - short version

Rules Plugins and Repositories

44

53

357

43

73

Page 8: Track code quality with SonarQube - short version

Quality GatesSet of boolean conditions per project,

based on measure thresholds.

Passed

Warning

Failed

Page 9: Track code quality with SonarQube - short version

Quality GatesMetric Operator

Open Issues Is greater than 70 100

Blocker Issues Is greater than 0

Dublications Is greater than 0.5 1

New Issues Is greater than 0 10

Overall Coverage Is less than 85 80

Unit Test Failures Is greater than 0

Page 10: Track code quality with SonarQube - short version

Quality of New Code

Comparison measures for different versions

Good for long term projects

Tracking quality of code, added in current snapshot

Page 11: Track code quality with SonarQube - short version

Code Processes

Master branch

Nightly

PullRequest Each update

Page 12: Track code quality with SonarQube - short version

Support Team for SonarQube

Page 13: Track code quality with SonarQube - short version

Administrator

Sonar support and monitoring

Sonar upgrade (new minor version every 2 months)

Plugins upgrade (new minor version every month)

Page 14: Track code quality with SonarQube - short version

Dev Sonar Community

Working on Rules List

Updating Quality Profiles

Looking for new Plugins

Page 15: Track code quality with SonarQube - short version

Project Teams

Update project analysis frequently

Monitoring Quality of own project

Defining project Quality Gate

Voice and discuss all concerns with Sonar Community

Page 16: Track code quality with SonarQube - short version

Support Processes

ModificationsMonthly

MeetingsBiweekly

FeedbacksOn-demand

DiscussionsOn-demand

UpgradeMonthly

Page 17: Track code quality with SonarQube - short version

24/7 monitoring and transparency

Page 18: Track code quality with SonarQube - short version

Summary

◉ Start from small: perform analysis

◉ Track code quality everyday

◉ Develop your own standard, or use existing

◉ Organize support process to make SonarQube alive

◉ Transparency 24/7, even for customers

Page 19: Track code quality with SonarQube - short version

THANKS!Resources◉ http://sonarqube.org

◉ http://docs.sonarqube.org/display/PLUG/Plugin+Library

◉ https://analysis.apache.org/

Links◉ https://facebook.com/dmytro.wng

◉ http://slideshare.net/DmytroPatserkovskyi