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

PPTX
Security testing
ODP
OWASP Secure Coding
PDF
Threat Modeling to Reduce Software Security Risk
PDF
Secure coding presentation Oct 3 2020
PPTX
Secure Coding 101 - OWASP University of Ottawa Workshop
PPTX
Broken Authentication and Authorization(1).pptx
PPT
Sql injection
PPTX
Security testing
OWASP Secure Coding
Threat Modeling to Reduce Software Security Risk
Secure coding presentation Oct 3 2020
Secure Coding 101 - OWASP University of Ottawa Workshop
Broken Authentication and Authorization(1).pptx
Sql injection

What's hot (20)

PPTX
Sanity testing and smoke testing
PDF
Secure Coding principles by example: Build Security In from the start - Carlo...
PDF
Java exception handling ppt
PPTX
OWASP Top 10 2021 Presentation (Jul 2022)
PPTX
Secure coding practices
PDF
The top 10 windows logs event id's used v1.0
PPTX
Code review
PPTX
Owasp top 10 vulnerabilities
PPTX
Types of attacks in cyber security
PDF
API Security Best Practices & Guidelines
PDF
Introduction to Software Security and Best Practices
PPT
Test Driven Development
PPTX
Security testing fundamentals
PDF
C++ Unit Test with Google Testing Framework
PPTX
Application Security Architecture and Threat Modelling
PDF
MW_Arch Fastest_way_to_hunt_on_Windows_v1.01
PPTX
Handling I/O in Java
PDF
Secure code
PPTX
What is security testing and why it is so important?
Sanity testing and smoke testing
Secure Coding principles by example: Build Security In from the start - Carlo...
Java exception handling ppt
OWASP Top 10 2021 Presentation (Jul 2022)
Secure coding practices
The top 10 windows logs event id's used v1.0
Code review
Owasp top 10 vulnerabilities
Types of attacks in cyber security
API Security Best Practices & Guidelines
Introduction to Software Security and Best Practices
Test Driven Development
Security testing fundamentals
C++ Unit Test with Google Testing Framework
Application Security Architecture and Threat Modelling
MW_Arch Fastest_way_to_hunt_on_Windows_v1.01
Handling I/O in Java
Secure code
What is security testing and why it is so important?
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
Programming languages and techniques for today’s embedded andIoT world
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
Driving Risks Out of Embedded Automotive Software
PDF
U test whitepaper_10
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-...
Programming languages and techniques for today’s embedded andIoT world
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
Driving Risks Out of Embedded Automotive Software
U test whitepaper_10
Ad

Recently uploaded (20)

PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Institutional Correction lecture only . . .
PPTX
Pharma ospi slides which help in ospi learning
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
RMMM.pdf make it easy to upload and study
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Classroom Observation Tools for Teachers
PPTX
Cell Structure & Organelles in detailed.
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Complications of Minimal Access Surgery at WLH
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Pre independence Education in Inndia.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Anesthesia in Laparoscopic Surgery in India
O5-L3 Freight Transport Ops (International) V1.pdf
Institutional Correction lecture only . . .
Pharma ospi slides which help in ospi learning
Sports Quiz easy sports quiz sports quiz
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
RMMM.pdf make it easy to upload and study
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Microbial diseases, their pathogenesis and prophylaxis
Classroom Observation Tools for Teachers
Cell Structure & Organelles in detailed.
GDM (1) (1).pptx small presentation for students
Abdominal Access Techniques with Prof. Dr. R K Mishra
Complications of Minimal Access Surgery at WLH
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pre independence Education in Inndia.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