SlideShare a Scribd company logo
1/21/2016 1
 What Is Static Code Analysis?
 Why Static Code Analysis Is Useful?
 Seven axes of code quality
 Effects of Fixing Code Quality
 Static coda analysis tools
◦ Sonarqube
◦ Coverity
1/21/2016 2
 Static code analysis is a method of computer
program debugging that is done by examine
in the code without executing the program.
1/21/2016 3
From W. S. Humphrey, "Using a Defined and
Measured Personal Software Process," IEEE
Software, May, 1996
 “Even experienced programmers typically
make a mistake for every seven to ten lines of
code they develop.”
1/21/2016 4
1/21/2016 5
 monitoring and fixing code quality issues is
something that is proven to raise the quality
of your application AND your ability to deliver
that application to stakeholders on time.
1/21/2016 6
1/21/2016 7
1/21/2016 8
What is SonarQube
Code quality
Features
Benefits
Strength of the platform
1/21/2016 9
 Platform to manage code
quality.
 Open source, possible to pay
for support and some plug-
ins.
 Active community support,
plug-ins,books
1/21/2016 10
1/21/2016 11
1/21/2016 12
1/21/2016 13
 Platform Independent
Runs on Windows, Mac OSX, Linux, Solaris.
 Server is fairly light weight.
 Plug-in architecture
Vibrant community extending sonar
functionalities
Plug-ins for nearly every language you can
expect.
Plug-ins providing additional metrics, including
total quality, technical debt and more.
1/21/2016 14
 Total cost of ownership
 Functional coverage
 Continuous inspection
 Actionable reporting
 Interaction
 Strong community
 Languages coverage
 Extensibility
1/21/2016 15
1/21/2016 16
1/21/2016 17
1/21/2016 18
 User runs client to analyze source
 Analyzer sends data on source files to
database
 Web server provides presentation for violation
data, administration for users and analyses,
configuration of plug-ins, features and
functionalities.
1/21/2016 19
1/21/2016 20
 Coverity Static Analysis (CSA) helps
developers find hard-to-spot, yet potentially
crash-causing defects early in the software
development life-cycle, reducing the cost,
time, and risk of software errors
1/21/2016 21
 Concurency Defects
 Performance degradation
 Crash causing errors
 Incorrect program behavior
 Security Vulnarabilities
1/21/2016 22
1/21/2016 23
1/21/2016 24
 API usage errors
 Code maintainability issues
 Concurrent data access violations
 Control flow issues
 Error handling issues
 Incorrect expression
 Integer handling issues
 Memory - corruptions
 Memory - illegal accesses
 Null pointer dereferences
 Program hangs
 Resource leaks
 Security best practices violations
 Uninitialized variables
1/21/2016 25
1/21/2016 26
 Best of Bread Analysis
 Integration With The Developer Workflow
 Defect Management and Impact Management
 Performance and Scale
 Extensible Platform
1/21/2016 27
Supported
Platforms
Supported
Compilers
Supported IDEs Minimum System
Requiremets
• AIX
• FreeBSD
• HP-UX
• Linux
• Mac OS X
• NetBSD
• Solaris
• Windowss
• ARM
• Cosmic C
Cross Compilers
• Freescale Code
Warrior
• GNU GCC,
G++
• Intel C++
• Keil
• QNX
• Renesas
• Sun (Oracle)CC
and cc
• Texas
Instruments
• Visual Studio
• WindRiver
• Xcode GCC
and G++
• Eclipse v3.5,
v3.6, v3.7
• WindRiver
Workbench v3.2,
v3.3
• Visual Studio
versions 2005,
2008, and 2010
• 1 GHz CPU
• 1 GB of RAM
minimum,
2 GB
recommended
• 1 GB of free
hard disk space
1/21/2016 28
1/21/2016 29
 Proven significant operational cost
reduction.
 Metric visibility of code estate onshore and
offshore.
 Proven history of finding crash causing or
unexpected behavior causing defects.
 Process improvement of the Application
Lifecycle Management.
1/21/2016 30
THANKYOU!!
1/21/2016 31
 http://zeroturnaround.com/rebellabs
 http://docs.codehaus.org/display/SONAR/Co
nfiguring+SonarQube+in+Eclipse
1/21/2016 32

More Related Content

PDF
Static Analysis Techniques For Testing Application Security - Houston Tech Fest
ODP
Joxean Koret - Interactive Static Analysis Tools for Vulnerability Discovery ...
PDF
Static Analysis of Your OSS Project with Coverity
PPTX
Code Reviews
PDF
How to Actually DO High-volume Automated Testing
PPTX
How To Improve Quality With Static Code Analysis
PDF
[India Merge World Tour] Coverity
PPTX
Testing As A Bottleneck - How Testing Slows Down Modern Development Processes...
Static Analysis Techniques For Testing Application Security - Houston Tech Fest
Joxean Koret - Interactive Static Analysis Tools for Vulnerability Discovery ...
Static Analysis of Your OSS Project with Coverity
Code Reviews
How to Actually DO High-volume Automated Testing
How To Improve Quality With Static Code Analysis
[India Merge World Tour] Coverity
Testing As A Bottleneck - How Testing Slows Down Modern Development Processes...

What's hot (20)

PPSX
GLA Testing Presentation by Test Partners Ltd v1
PPTX
DevSecOps: Securing Applications with DevOps
PPTX
Programming languages and techniques for today’s embedded andIoT world
PPTX
Agile & Secure SDLC
PPTX
Cyber security - It starts with the embedded system
PPTX
Risk Mitigation Using Exploratory and Technical Testing | QASymphony Webinar
PDF
Software Testing As a Career Path
PDF
AppsSec In a DevOps World
PPTX
Top 10 static code analysis tool
PDF
Driving Risks Out of Embedded Automotive Software
PDF
Getting Ahead of Delivery Issues with Deep SDLC Analysis by Donald Belcham
PDF
Software testing axioms
PDF
Agile Engineering Best Practices by Richard Cheng
PPTX
Agile Engineering Sparker GLASScon 2015
PDF
Static code analysis
PDF
Software Engineering - chp7- tests
PDF
Create code confidence for better application security
PPTX
От хаоса к автоматизации тестирования на примере Backend
PPTX
Software testing
PPTX
QA Fest 2017. Владимир Примаков. QA метрики. Взгляд на качество с разных стор...
GLA Testing Presentation by Test Partners Ltd v1
DevSecOps: Securing Applications with DevOps
Programming languages and techniques for today’s embedded andIoT world
Agile & Secure SDLC
Cyber security - It starts with the embedded system
Risk Mitigation Using Exploratory and Technical Testing | QASymphony Webinar
Software Testing As a Career Path
AppsSec In a DevOps World
Top 10 static code analysis tool
Driving Risks Out of Embedded Automotive Software
Getting Ahead of Delivery Issues with Deep SDLC Analysis by Donald Belcham
Software testing axioms
Agile Engineering Best Practices by Richard Cheng
Agile Engineering Sparker GLASScon 2015
Static code analysis
Software Engineering - chp7- tests
Create code confidence for better application security
От хаоса к автоматизации тестирования на примере Backend
Software testing
QA Fest 2017. Владимир Примаков. QA метрики. Взгляд на качество с разных стор...
Ad

Viewers also liked (8)

PPTX
PVS-Studio and static code analysis technique
PDF
Static Code Analysis
PPTX
Static Code Analysis
PPTX
Verification at scale: Fitting static code analysis into continuous integration
PPT
Static Code Analysis and AutoLint
PDF
Static Code Analysis and Cppcheck
PPTX
Program understanding: What programmers really want
PPTX
Static code analysis
PVS-Studio and static code analysis technique
Static Code Analysis
Static Code Analysis
Verification at scale: Fitting static code analysis into continuous integration
Static Code Analysis and AutoLint
Static Code Analysis and Cppcheck
Program understanding: What programmers really want
Static code analysis
Ad

Similar to Static code analysis (20)

PPTX
Rapid software testing and conformance with static code analysis
PPTX
Find Out What's New With WhiteSource May 2018- A WhiteSource Webinar
DOCX
What is SonarQube in DevOps.docx
PDF
Is your SAP system vulnerable to cyber attacks?
PDF
Software Security Assurance for DevOps
PPT
Part5 - enforcing coding standard and best practices with jas forge v1.0
PPTX
Shifting the conversation from active interception to proactive neutralization
PPT
IBM AppScan Source - The SAST solution
PDF
Matteo Meucci Isaca Venice - 2017
PDF
Week 01-intro se
PPTX
Why Johnny Still Can’t Pentest: A Comparative Analysis of Open-source Black-...
PPTX
OWASP Top 10.pptx for latest security lapses in applications
PPTX
Gimme shelter: Tips on protecting proprietary and open source code
PPTX
mydevops.pptx
PDF
Control source code quality using the SonarQube platform
PPTX
Software Security Assurance for DevOps - Hewlett Packard Enterprise + Black Duck
PDF
Accelerate Your Regional Tests with Sauce
PDF
U test whitepaper_10
PPTX
Static-Code-Analysis-using-Sonar-Cloud new.pptx
PDF
SOURCE CODE ANALYSIS TO REMOVE SECURITY VULNERABILITIES IN JAVA SOCKET PROGR...
Rapid software testing and conformance with static code analysis
Find Out What's New With WhiteSource May 2018- A WhiteSource Webinar
What is SonarQube in DevOps.docx
Is your SAP system vulnerable to cyber attacks?
Software Security Assurance for DevOps
Part5 - enforcing coding standard and best practices with jas forge v1.0
Shifting the conversation from active interception to proactive neutralization
IBM AppScan Source - The SAST solution
Matteo Meucci Isaca Venice - 2017
Week 01-intro se
Why Johnny Still Can’t Pentest: A Comparative Analysis of Open-source Black-...
OWASP Top 10.pptx for latest security lapses in applications
Gimme shelter: Tips on protecting proprietary and open source code
mydevops.pptx
Control source code quality using the SonarQube platform
Software Security Assurance for DevOps - Hewlett Packard Enterprise + Black Duck
Accelerate Your Regional Tests with Sauce
U test whitepaper_10
Static-Code-Analysis-using-Sonar-Cloud new.pptx
SOURCE CODE ANALYSIS TO REMOVE SECURITY VULNERABILITIES IN JAVA SOCKET PROGR...

Recently uploaded (20)

PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Spectroscopy.pptx food analysis technology
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
NewMind AI Weekly Chronicles - August'25-Week II
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Cloud computing and distributed systems.
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Spectroscopy.pptx food analysis technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Big Data Technologies - Introduction.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Per capita expenditure prediction using model stacking based on satellite ima...
MIND Revenue Release Quarter 2 2025 Press Release
Network Security Unit 5.pdf for BCA BBA.
NewMind AI Weekly Chronicles - August'25-Week II
The AUB Centre for AI in Media Proposal.docx
Cloud computing and distributed systems.
Unlocking AI with Model Context Protocol (MCP)
Building Integrated photovoltaic BIPV_UPV.pdf
A comparative analysis of optical character recognition models for extracting...
Review of recent advances in non-invasive hemoglobin estimation
Reach Out and Touch Someone: Haptics and Empathic Computing
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
20250228 LYD VKU AI Blended-Learning.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf

Static code analysis

  • 2.  What Is Static Code Analysis?  Why Static Code Analysis Is Useful?  Seven axes of code quality  Effects of Fixing Code Quality  Static coda analysis tools ◦ Sonarqube ◦ Coverity 1/21/2016 2
  • 3.  Static code analysis is a method of computer program debugging that is done by examine in the code without executing the program. 1/21/2016 3
  • 4. From W. S. Humphrey, "Using a Defined and Measured Personal Software Process," IEEE Software, May, 1996  “Even experienced programmers typically make a mistake for every seven to ten lines of code they develop.” 1/21/2016 4
  • 6.  monitoring and fixing code quality issues is something that is proven to raise the quality of your application AND your ability to deliver that application to stakeholders on time. 1/21/2016 6
  • 9. What is SonarQube Code quality Features Benefits Strength of the platform 1/21/2016 9
  • 10.  Platform to manage code quality.  Open source, possible to pay for support and some plug- ins.  Active community support, plug-ins,books 1/21/2016 10
  • 14.  Platform Independent Runs on Windows, Mac OSX, Linux, Solaris.  Server is fairly light weight.  Plug-in architecture Vibrant community extending sonar functionalities Plug-ins for nearly every language you can expect. Plug-ins providing additional metrics, including total quality, technical debt and more. 1/21/2016 14
  • 15.  Total cost of ownership  Functional coverage  Continuous inspection  Actionable reporting  Interaction  Strong community  Languages coverage  Extensibility 1/21/2016 15
  • 19.  User runs client to analyze source  Analyzer sends data on source files to database  Web server provides presentation for violation data, administration for users and analyses, configuration of plug-ins, features and functionalities. 1/21/2016 19
  • 21.  Coverity Static Analysis (CSA) helps developers find hard-to-spot, yet potentially crash-causing defects early in the software development life-cycle, reducing the cost, time, and risk of software errors 1/21/2016 21
  • 22.  Concurency Defects  Performance degradation  Crash causing errors  Incorrect program behavior  Security Vulnarabilities 1/21/2016 22
  • 25.  API usage errors  Code maintainability issues  Concurrent data access violations  Control flow issues  Error handling issues  Incorrect expression  Integer handling issues  Memory - corruptions  Memory - illegal accesses  Null pointer dereferences  Program hangs  Resource leaks  Security best practices violations  Uninitialized variables 1/21/2016 25
  • 27.  Best of Bread Analysis  Integration With The Developer Workflow  Defect Management and Impact Management  Performance and Scale  Extensible Platform 1/21/2016 27
  • 28. Supported Platforms Supported Compilers Supported IDEs Minimum System Requiremets • AIX • FreeBSD • HP-UX • Linux • Mac OS X • NetBSD • Solaris • Windowss • ARM • Cosmic C Cross Compilers • Freescale Code Warrior • GNU GCC, G++ • Intel C++ • Keil • QNX • Renesas • Sun (Oracle)CC and cc • Texas Instruments • Visual Studio • WindRiver • Xcode GCC and G++ • Eclipse v3.5, v3.6, v3.7 • WindRiver Workbench v3.2, v3.3 • Visual Studio versions 2005, 2008, and 2010 • 1 GHz CPU • 1 GB of RAM minimum, 2 GB recommended • 1 GB of free hard disk space 1/21/2016 28
  • 30.  Proven significant operational cost reduction.  Metric visibility of code estate onshore and offshore.  Proven history of finding crash causing or unexpected behavior causing defects.  Process improvement of the Application Lifecycle Management. 1/21/2016 30