SonarQube in Action
SonarQube in Action exhibits builders the right way to use the SonarQube platform to assist them regularly enhance their resource code. The e-book offers SonarQube's middle Seven Axes of caliber: design/architecture, duplications, reviews, unit exams, complexity, capability insects, and coding ideas. you will discover easy, easy-to-follow dialogue and examples as you learn how to combine SonarQube into your improvement method.
About the Technology
About the Book
SonarQube in Action teaches you ways to successfully use SonarQube following the continual inspection version. This sensible publication systematically explores SonarQube's center Seven Axes of caliber (design, duplications, reviews, unit checks, complexity, capability insects, and coding rules). With well-chosen examples, it is helping you discover ways to use SonarQube's assessment performance and IDE integration to enforce non-stop inspection top practices on your personal caliber administration approach.
The book's Java-based examples translate simply to different improvement languages. No earlier event with SonarQube or non-stop supply perform is thought
Purchase of the print publication contains a loose e-book in PDF, Kindle, and ePub codecs from Manning courses.
- Gather significant caliber metrics
- Integrate with Ant, Maven, and Jenkins
- Write your personal plugins
- Master the paintings of continuing inspection
About the Authors
Ann Campbellb and Patroklos Papapetrou are skilled builders and staff leaders. either actively give a contribution to the SonarQube neighborhood.
Table of Contents
- An creation to SonarQube
- Issues and coding standards
- Ensuring that your code is doing issues right
- Working with replica code
- Optimizing resource code documentation
- Keeping your resource code documents elegant
- Improving your software design
- Planning a technique and increasing your insight
- Continuous Inspection with SonarQube
- Letting SonarQube force code reviews
- IDE integration
- Security: clients, teams, and roles
- Rule profile administration
- Making SonarQube suit your needs
- Managing your projects
- Writing your personal plugins
PART 1 WHAT THE NUMBERS ARE TELLING YOU
PART 2 SETTLING IN WITH SONARQUBE
PART three ADMINISTERING AND EXTENDING
Rule profile (unassigned tasks) are measured opposed to their language’s default. For Java, SonarQube presents 3 profiles: Sonar approach, Sonar method with FindBugs, and solar exams. It units Sonar method because the default. The solar assessments rule set is a small one, weighing in at in basic terms fifty eight ideas. All it does is payment resource code opposed to the sunlight Java coding variety conventions. for instance, it assessments member- and class-name capitalization, curly brace place, and using areas. the adaptation among the.
Do matters come from? 39 determine 2.11 Any person can see the rule of thumb profiles through the use of the Configuration hyperlink at top correct of the display. Your first research of a undertaking will run opposed to its language’s default profile, which we are hoping you’ve simply replaced. as soon as it’s confirmed in SonarQube, an administrator can simply assign a venture to another profile, and all next analyses will run opposed to it no matter if it’s no longer the default. no matter if your project’s hottest profile is at present set because the.
Duplications discovering duplications throughout a number of tasks cleansing up your duplications in the event you commence a brand new venture, you might have a fresh code base with out duplications, until you copied one other venture first of all. each line of code is written from scratch, and you've got no doubt that neither you nor your teammates will introduce any duplications. because the venture progresses, you and your teammates converse on a regular basis and write stable, fresh code. you most likely imagine you’ve.
For a complete of 3 outgoing dependencies. attempting to compute the incoming dependencies is lots tougher, since you would have to seek all of your code to discover references to a given classification. In huge structures, or even in smaller ones, it'd be time-consuming and error-prone or virtually most unlikely to get these numbers by yourself. This concludes our journey of layout metrics. As you’ve visible, SonarQube offers a variety of, a few extra vital than others, yet all worthy at the least a look whilst you’re.
utilize SonarQube’s assessment positive aspects. We’ll additionally proportion a few common recommendations we’ve obvious used to effectively constitution and run code stories. eventually, we’ll take you to the place the rubber meets the line, with a glance at SonarQube’s IDE integration in bankruptcy eleven. Planning a technique and increasing your perception This bankruptcy covers making plans your method venture historical past and metric trending Everything’s an element to this point, you’ve put in SonarQube and all started reading your projects,.