Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Sonar Code Quality Testing Essentials

You're reading from   Sonar Code Quality Testing Essentials Achieve higher levels of Software Quality with Sonar with this book and ebook

Arrow left icon
Product type Paperback
Published in Aug 2012
Publisher Packt
ISBN-13 9781849517867
Length 318 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Charalampos S Arapidis Charalampos S Arapidis
Author Profile Icon Charalampos S Arapidis
Charalampos S Arapidis
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Sonar Code Quality Testing Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
1. Preface
1. An Overview of Sonar 2. Installing Sonar FREE CHAPTER 3. Analyzing your First Project 4. Following Coding Standards 5. Managing Measures and Getting Feedback 6. Hunting Potential Bugs 7. Refining Your Documentation 8. Working with Duplicated Code 9. Analyzing Complexity and Design 10. Code Coverage and Testing 11. Integrating Sonar Sonar Metrics Index

Sonar Code Complexity metrics


Sonar hosts a wide selection of complexity-related rules to help us monitor our software projects. Next, we are going to add 17 rules of major severity to the custom packt profile.

Complexity rules profile distribution

Severity

Rules count

Value

Major

17

17 x 3 = 51

Total value

 

51

Log in to Sonar as administrator and add the following rules to the custom packt profile:

Complexity rules

Severity

Name

Analyzer

Major

Boolean Expression Complexity

Checkstyle

Major

Class Data Abstraction coupling

Checkstyle

Major

Class Fan Out Complexity

Checkstyle

Major

Cyclomatic Complexity

Checkstyle

Major

JavaNCSS

Checkstyle

Major

Nested For Depth

Checkstyle

Major

Nested If Depth

Checkstyle

Major

Nested Try Depth

Checkstyle

Major

Simplify Boolean Expression

Checkstyle

Major

Simplify Boolean Return

Checkstyle

Major

Too many fields

PMD

Major

Too many methods

PMD

Major

Avoid too complex class

Sonar

Major

Avoid too complex method...

lock icon The rest of the chapter is locked
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Sonar Code Quality Testing Essentials
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime
Modal Close icon
Modal Close icon