Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Sonar Code Quality Testing Essentials

You're reading from  Sonar Code Quality Testing Essentials

Product type Book
Published in Aug 2012
Publisher Packt
ISBN-13 9781849517867
Pages 318 pages
Edition 1st Edition
Languages
Author (1):
Charalampos S Arapidis Charalampos S Arapidis
Profile icon Charalampos S Arapidis

Table of Contents (18) Chapters

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 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

Potential bugs violations


The three Sonar analyzers feature an extensive set of rules checking code that can lead to potential bugs and deficiencies. We are going to add to the custom Packt profile some of the most common and important rules. So far, we have added rules for Coding Standards costing a total of 100 points. For potential bugs, we will add rules to reach the target value of 200, as it is the most important part along with complexity.

To calculate the total cost/profile value, remember that each violation has a rating from 1 to 5. The higher the value, the stricter the profile becomes. For example, adding five Critical checks would raise the value of the profile to 15.

The following table breaks down the rules we will use sorted by level. Most of these checks are implemented by the Findbugs analysis engine.

Potential Bugs Profile Distribution

Severity

Rules Count

Cost

Major

25

75

Critical

25

100

Blocker

5

25

Total Cost

 

200

That's a total of 55 rules at a cost...

lock icon The rest of the chapter is locked
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 $15.99/month. Cancel anytime}