SlideShare a Scribd company logo
Track code quality
with SonarQube
HELLO!
I am Dmytro Patserkovskyi
Project Manager and Founder
of Dev SonarQube Community at V.I.Tech
Low code quality costs a lot
Toyota story
Aug. 28, 2009, San Diego CA, USA
◉ Toyota reached 100 mph
◉ Phone call during event
◉ All 4 occupants killed in crash
◉ This is a trigger for Toyota investigation
Toyota story
NASA’s investigation found
7134 violations in code.
Oklahoma’s investigation found
81 514 violations in code.
Toyota story: Results
◉ Recall of 10 000 000+ cars entire the world.
◉ Lost of billions dollars.
◉ 89 death till 2010 because of bugs.
Track code quality with SonarQube
Source Code Should Be
Simple
& Readable
Extendable
Testable
& Covered with Tests
Flexible
Code Metrics
Rules Violations
Code Style
checks if code compliant
with conventions
Vulnerabilities
search for bottlenecks
with lacks of validations,
security issues etc
Bugs
looking for bugs and
potential bugs
Performance
checks if everything
doing in the best way
100% - rules compliance
Code Coverage
Line Coverage
Branch Coverage
Overall Coverage
85% - min overall coverage
Cyclomatic Complexity
10 - max compliant complexity
50 - function unsupported
Dublications
I SHALL NOT
DUPLICATE
ANY CODE
ANY CODE ANY CODE
0% - perfect solution
1% - keep buffer
Documentation
Code tells you what is doing,
documentation should tell why and how.
JavaDocs
Block
Comments
100% - public documented API
15% - comments in code
Technical Debt
Extra development work,
that rises with not clear code.
Financial DEBT Time DEBT
An open source platform for
Continuous Inspection
20+ programming languages
50+ official plugins
Quality Rules and Profiles
Code Smells Bugs Vulnerabilities
Quality Profile
Rules Plugins and Repositories
44
53
357
43
73
Quality Gates
Set of boolean conditions per project,
based on measure thresholds.
Passed
Warning
Failed
Quality Gates
Metric Operator
Open Issues Is greater than 70 100
Blocker Issues Is greater than 0
Critical Issues Is greater than 0
New Issues Is greater than 0 10
Overall Coverage Is less than 85 80
Unit Test Failures Is greater than 0
Quality of New Code
Tracking quality of code, added in current snapshot
Comparison measures for different versions
Good for long term projects
Project Dashboard
Issues Coverage Complexity
Anything you wantAnother awesome widget
Duplications Documentation Useful Info
Code Processes
PullRequest
Master branch
Nightly
Each update
Support Team for SonarQube
Administrator
Sonar support and monitoring
Sonar upgrade (new version every 2 months)
Plugins upgrade (new version every month)
Dev Sonar Community
Working on Rules List
Updating Quality Profiles
Setting up Dashboards
Looking for new Plugins
Project Teams
Update project analysis frequently
Monitoring Quality of own project
Defining project Quality Gate
Voice and discuss all concerns with Sonar Community
Support Processes
Modifications
Monthly
Meetings
Biweekly
Feedbacks
On-demand
Discussions
On-demand
Upgrade
Monthly
24/7 monitoring and transparency
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
Questions
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

More Related Content

PDF
Continuous Inspection of Code Quality: SonarQube
PDF
Tracking and improving software quality with SonarQube
PPTX
Sonarqube
PPTX
SonarQube - The leading platform for Continuous Code Quality
PPT
SonarQube Overview
PPTX
SonarQube: Continuous Code Inspection
PPTX
Introduction to MuleSoft
Continuous Inspection of Code Quality: SonarQube
Tracking and improving software quality with SonarQube
Sonarqube
SonarQube - The leading platform for Continuous Code Quality
SonarQube Overview
SonarQube: Continuous Code Inspection
Introduction to MuleSoft

What's hot (20)

PDF
The story of SonarQube told to a DevOps Engineer
PDF
Tech Talk #5 : Code Analysis SonarQube - Lương Trọng Nghĩa
PPTX
SonarQube Presentation.pptx
PPTX
Managing code quality with SonarQube
PDF
SonarQube - Should I Stay or Should I Go ?
PDF
SonarQube
PPTX
Track code quality with SonarQube - short version
PDF
Jenkins with SonarQube
PDF
Java Source Code Analysis using SonarQube
PPTX
Sonar qube
PPTX
Jenkins CI presentation
PDF
Code Quality Lightning Talk
PPTX
Jenkins tutorial
PDF
Jenkins
PDF
Continuous Code Quality with the Sonar Ecosystem @GeeCON 2017 in Prague
PPTX
DevOps introduction
PPTX
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
PPTX
CI/CD Overview
PPTX
PPT
CI and CD with Jenkins
The story of SonarQube told to a DevOps Engineer
Tech Talk #5 : Code Analysis SonarQube - Lương Trọng Nghĩa
SonarQube Presentation.pptx
Managing code quality with SonarQube
SonarQube - Should I Stay or Should I Go ?
SonarQube
Track code quality with SonarQube - short version
Jenkins with SonarQube
Java Source Code Analysis using SonarQube
Sonar qube
Jenkins CI presentation
Code Quality Lightning Talk
Jenkins tutorial
Jenkins
Continuous Code Quality with the Sonar Ecosystem @GeeCON 2017 in Prague
DevOps introduction
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
CI/CD Overview
CI and CD with Jenkins
Ad

Viewers also liked (20)

PPTX
Sonar Overview
PDF
DevOps – SonarQube
PPTX
SONAR
PPT
SONAR ppt
KEY
Code Quality, Standards and Best Practices, Discuss
PPTX
SonarQube 로 Unity 프로젝트 관리
PPT
PDF
Sonar Metrics
PPTX
Juc west-how to build a jenkins db the wrong way!
PPTX
Los vatos
PPTX
Jenkins Workflow - An Introduction
PPTX
20160929 android taipei Sonatype nexus on amazon ec2
PDF
Using Jenkins XML API
PDF
Continuous Cross Platform Mobile App Development using Jenkins Build Server
PPTX
Maven Nexus
PDF
Continuous integration using Jenkins and Sonar
PDF
CONTINUOUS INTEGRATION WITH JENKINS AND GIT
PPTX
Sonar qube to impove code quality
PPTX
Build and deployment with Jenkins and Code Deploy on AWS
Sonar Overview
DevOps – SonarQube
SONAR
SONAR ppt
Code Quality, Standards and Best Practices, Discuss
SonarQube 로 Unity 프로젝트 관리
Sonar Metrics
Juc west-how to build a jenkins db the wrong way!
Los vatos
Jenkins Workflow - An Introduction
20160929 android taipei Sonatype nexus on amazon ec2
Using Jenkins XML API
Continuous Cross Platform Mobile App Development using Jenkins Build Server
Maven Nexus
Continuous integration using Jenkins and Sonar
CONTINUOUS INTEGRATION WITH JENKINS AND GIT
Sonar qube to impove code quality
Build and deployment with Jenkins and Code Deploy on AWS
Ad

Similar to Track code quality with SonarQube (20)

PPT
Software Quality Architecture And Code Audit
PDF
Enhancing Developer Productivity with Code Forensics
PPTX
Cross functional peer review preso 10-01-2013
PPTX
Keeping Your Continuous Test Automation Suites Continuously Valuable in DevOps
PDF
Solving the 3 Biggest Questions in Continuous Testing
PDF
Driving Risks Out of Embedded Automotive Software
PDF
[Europe merge world tour] Coverity Development Testing
PPTX
Zero-bug Software, Mathematically Guaranteed
PPT
Introduction to Parasoft C++TEST
PDF
Webcast Presentation: Accelerate Continuous Delivery with Development Testing...
PPT
Formal Versus Agile: Survival of the Fittest? (Paul Boca)
PPTX
Brave New World - A wider perspective of our opportunities
DOCX
What is SonarQube in DevOps.docx
PPT
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
PPTX
How to improve code quality for iOS apps?
PPT
Improving Development Productivity: Static Analysis and Continuous Integration
PPTX
Coding, Testing, Black-box and White-box Testing.pptx
PDF
[India Merge World Tour] Coverity
PDF
Adopting a security attitude in DevOps via DevOpsSec
PDF
Test-Driven Code Review: An Empirical Study
Software Quality Architecture And Code Audit
Enhancing Developer Productivity with Code Forensics
Cross functional peer review preso 10-01-2013
Keeping Your Continuous Test Automation Suites Continuously Valuable in DevOps
Solving the 3 Biggest Questions in Continuous Testing
Driving Risks Out of Embedded Automotive Software
[Europe merge world tour] Coverity Development Testing
Zero-bug Software, Mathematically Guaranteed
Introduction to Parasoft C++TEST
Webcast Presentation: Accelerate Continuous Delivery with Development Testing...
Formal Versus Agile: Survival of the Fittest? (Paul Boca)
Brave New World - A wider perspective of our opportunities
What is SonarQube in DevOps.docx
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
How to improve code quality for iOS apps?
Improving Development Productivity: Static Analysis and Continuous Integration
Coding, Testing, Black-box and White-box Testing.pptx
[India Merge World Tour] Coverity
Adopting a security attitude in DevOps via DevOpsSec
Test-Driven Code Review: An Empirical Study

Recently uploaded (20)

PPT
Teaching material agriculture food technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
1. Introduction to Computer Programming.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Machine learning based COVID-19 study performance prediction
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Spectroscopy.pptx food analysis technology
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Mushroom cultivation and it's methods.pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
August Patch Tuesday
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Getting Started with Data Integration: FME Form 101
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Teaching material agriculture food technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
1. Introduction to Computer Programming.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Empathic Computing: Creating Shared Understanding
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Machine learning based COVID-19 study performance prediction
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Spectroscopy.pptx food analysis technology
SOPHOS-XG Firewall Administrator PPT.pptx
Mushroom cultivation and it's methods.pdf
Tartificialntelligence_presentation.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
August Patch Tuesday
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Getting Started with Data Integration: FME Form 101
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...

Track code quality with SonarQube