Sonar6.0 Application V: Sonar Web Analytics Configuration

Source: Internet
Author: User

One, exclude the code directory and files without scanning

1, to the administrator login sonar, into the configuration--"General settings--" exclude--"exclude the source files

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/89/4A/wKioL1gPEDXhoxB6AABrQtRDxuM171.png "height=" 507 "/>

Second, install the required language code scanning rules

1, enter the configuration-"System-" Update Center-"Available

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/89/4A/wKioL1gPEDfg21McAAEeaDFAQl8221.png "height=" 876 "/>

2, for jave development of loopholes, violations, bug scan rules can be as follows

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/89/4C/wKiom1gPEDiQKXMRAADsfydEKAA462.png "height=" 885 "/>

Third, configure code scanning rules

1, enter the configuration-"General Settings-" Java, Javescript, SCM, technical debt as needed to modify, the general default is possible.

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/89/4A/wKioL1gPEDmyTYDTAADMau7FMDI228.png "height=" 878 "/>

Iv. quality configuration, set the default scanning rules for each language

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/89/4D/wKiom1gPEDuQrc1LAAEcUrN4Zcs546.png "height=" 882 "/>

V. Code rule Settings

If you think that some scan rules are too restrictive, you can "hang" them, and you will no longer use this rule when you build code to scan your project, such as suspending a bug rule in JP:

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/89/4A/wKioL1gPED6jwrGDAAGERcnuBxw898.png "height=" 930 "/>

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/89/4A/wKioL1gPED_wz3HWAAElPZnjcvY785.png "height=" 632 "/>

The severity of the rule needs to be set when activating the code

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/89/4D/wKiom1gPEEGiYvkFAAEEb1sw6_E500.png "height=" 783 "/>650) this.width=650;" title= "image" style= "border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px; padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http://s3.51cto.com/ Wyfs02/m01/89/4a/wkiol1gpeekanwluaadnbybi13m929.png "height=" 588 "/>

Click the activity rule name to set the severity level of the rule

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/89/4A/wKioL1gPEEPA2iK2AAEEb1sw6_E307.png "height=" 783 "/>

Vi.. Configuration indicators

1. Modify a filter for dashboard display

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/89/4D/wKiom1gPEETAVReQAABYO0qlX-4378.png "height=" 337 "/>

modifying columns

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/89/4A/wKioL1gPEESSmGfRAAA7V3f2Hw8498.png "height=" 266 "/>

Add the most commonly used columns

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/89/4A/wKioL1gPEETC9y4DAACM8HJYyFI955.png "height=" 379 "/>

2. Create a private filter to display the file name where the bug is located

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/89/4D/wKiom1gPEEXzlp0mAABSwV9LPPM896.png "height=" 334 "/>

Copy a filter before you configure it

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/89/4A/wKioL1gPEEaxAtMRAAC9d7wjafw370.png "height=" 632 "/>

Set the metric in more conditions

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/89/4D/wKiom1gPEEbiRfDnAACRAo6p94Q889.png "height=" 518 "/>

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/89/4A/wKioL1gPEEfiwf9lAABfctqduMk189.png "height=" 288 "/>

Seven, configure the instrument panel

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/89/4a/wkiol1gpeefyfyvgaaa_oih8ngi283.png "height=" "/>"

Modify the name of the dashboard

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/89/4A/wKioL1gPEEiAnQz4AAB--rIcIWQ485.png "height=" 597 "/>

Enter the dashboard Configuration interface

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/89/4D/wKiom1gPEEri50vVAAHoOaPXrfg002.png "height=" 957 "/>

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/89/4D/wKiom1gPEEyCgLzfAAEZfPKUCRw146.png "height=" 897 "/>

Example of a dashboard already configured

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/89/4A/wKioL1gPEE2BOTHxAAEDopedjv4361.png "height=" 578 "/>

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/89/4A/wKioL1gPEFCioGwXAAF24iT556k098.png "height=" 719 "/>

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/89/4A/wKioL1gPEFOypAK8AAG3eDh3PQQ312.png "height=" 873 "/>

This article from the "Strong Technical communication blog," Please be sure to keep this source http://newthink.blog.51cto.com/872263/1865477

Sonar6.0 Application V: Sonar Web Analytics Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.