From: http://www.oschina.net/question/12_17465
Http://java.dzone.com/tips/configuring-sonar-maven.
Sonar is an open-source platform for managing the quality of Java source code. From sonar 1.6, sonar has changed from a quality data reporting tool to the current code quality management platform.
Main features:
Code co
Code Inspect using sonar rules in conjunction with Webstorm1. PurposeIn writing code will be limited by the company's sonar rules, do not want to write after the completion of the code inspect, back to a revision, time-consuming and laborious. Then, the following will detect the code through the codeinspect of the excellent Webstorm development tool, combined with the s
Reprint Please note the source: http://blog.csdn.net/hwhua1986/article/details/62426560
Reference, please refer to SONAR website parameter Analysis page: https://docs.sonarqube.org/display/SONAR/Analysis+Parameters
The last time was by modifying the identity of the sonar management system
A better way to find out recently is to increase the "branch" parameter.
assert the application's internal properties, can be statistically coverage, If CI fails and can be independently run locally, debug, repair failed case resubmit) and FT (based on the User story black box test) advantages, the status of the project quality assurance is not lower than UT, so also need to calculate coverage, rather than the traditional test pyramid model, only rely on UT coverage.So Sonar + Jacoco is a very useful combination of both U
Sonar is a code review tool that can effectively address your code's specifications
This article is installed under windowThis is a configuration to check MAVEN projects
Installing Sonar-runer
Installation configuration
Corresponding to the above configuration
Start sonar
Interface
Idea Integration ToolThese two and Findbug f
How do different code branches do code analysis on Sonar? For example, one project has three branches of master, MySQL, and Xiangxiang, and 3 code-checking jobs are built on Jenkins, which is expected to be shown separately from the three-branch code-checking results area. But sonar will count the results of 3 branches into a single project, and not be divided into 3 project statistics.
So how to solve thi
.
The Sonarqub e platform is comprised of 4 parts: SonarQube Server SonarQube Database SonarQube Plugins SonarQube Scanner SonarQube with Sonar Installation and configuration of Qube-scanner SonarQube
In the S Onarqub E official website, we can download the latest S Ona r installation package, this section with L Inu X system For example, build S Onarqub e platform, extract to any directory, such as: Unzip Sonarqube5.6.zip.
Sonarqub e comes with a H2
I have been introducing google's Angularjs client PM mode framework for a long time. Today I am releasing a simple example about AngularJs usage.SonarLanguage(The example is located at Github: https://github.com/greengerong/SonarLanguage ). This project is just a sample project with all clients. At the beginning of the project, I want to see the distribution ratio of languages used in the company's projects and the share of C #. I have been sitting in Java projects this year, but I still like C
In the blog to introduce Google's Angularjs client PM mode framework for a long time, today released a angularjs on the use of a simple example sonarlanguage(example at github:https:// Github.com/greengerong/sonarlanguage). This project is just a sample project for all clients. The beginning of the project is I want to look at the company's projects in the use of language distribution ratio, to see the share of C #, this year has been sitting in the Java project, but still like C #, this is only
Technical debt in Sonar
The computing of technical debt in sonar is based on SQALE (Software Quality Assessment based on Lifecycle Expectations, based on the Software Quality Assessment expected by the Life Cycle) methodology.
SQALE methodology was developed by in‑it and later open-source. If you have read the relevant documentation on sqale.org, you will understand that it is about "Organizing non-function
Now the system will usually have automated generated code, when using sonar for system code quality analysis, we want to be able to automatically generate code to exclude from the system analysis. This is very simple to implement, and in Maven's Pom.xml file, add sonar.exclusions to indicate which auto-generated code folders do not need to be parsed.The specific matching rules can refer to sonar's official documentation, which is very simple (docs.son
Sonar, simply to manage the code, it supports Java C C + + and other languages, integrates1, unit testing, including calculation lines, branch coverage, and so on2, vulnerability, bug Scan, this scan can be findbugs, security and other vulnerability rules are configured in, and then scanned, scan results according to the vulnerability level classification3, 4, 5 、...... There are manyBecause I'm primarily responsible for unit testing and vulnerability
Unique identifier of the #required Metadata#projectkey project, cannot be duplicated sonar.projectkey=xjglxtsonar.projectname=xjglxtsonar.projectversion= 1.0 sonar.sourceencoding=utf-8sonar.modules=java-module,javascript-module,html-module# Java Modulejava-module.sonar.projectname=java modulejava-module.sonar.language=java#. Represents the directory specified by Projectbasedir java-module.sonar.sources=.java-module.sonar.projectbasedir=srcsonar.binaries=classes# JavaScript Modulejavascript-modul
The calculation of technical debt in sonar is based on the methodology of Sqale (Software Quality assessment based on lifecycle expectations, software quality assessment based on life cycle expectations).
Sqale methodology was developed by Inspearit, which was later open source. If you read the relevant documentation on the sqale.org, you will see that it is about "organization-related non-functional line requirements for code quality." In the Sqale m
Configuration:1. Configure environment variable Sonar_runner_home2. Configure path: Increase%sonar_runner_home%\bin3. Create sonar-project.properties at the root of your local projectSonar-project.properties:Sonar.projectkey=keyinsonartasklist //eg:sonartask_1sonar.projectname=nameinsonartasklist//eg:sonarTask_ 1SONAR.PROJECTVERSION=1.0-SNAPSHOTSONAR.SOURCES=SRC//relative path, path of source relative to Sonar
Tools
This is nothing to say, there is an online tutorial on the Internet good "pro git"
Repo
A multi-code base management tool based on Git
This tool is Google's git based multi-project management tool that can be combined with Gerrit.
Gerrit
Code library server Tools, code audit tools
An online code review tool based on GIT that builds code audit platforms and processes around it
Gitlab
Code Presentation Platform
Gitlab here only
Because the project uses ant for compilation, the code check is also performed by sonar runner, so the following configuration file is available:
Parameter description:
Http://blog.csdn.net/alonesword/article/details/9981521
Http://docs.codehaus.org/display/SONAR/Analysis+Parameters
Jenkins + maven + git + sonar system continuous integration amp; Code single test managementJenkins + maven + git + sonar system continuous integration code Test ManagementInstall JenkinsJenkins is a Java-based continuous integration tool used to monitor continuous repetitive work. features include: 1. Continuous software version release/test projects. 2. Monitor the execution of external calls.1. downloa
jenkins+maven+git+sonar system Continuous Integration Code single-Measurement managementInstallation of Jenkins Jenkins is a continuous integration tool based on Java development that monitors ongoing duplication of work, including: 1. Continuous software release/test project. 2. Monitor the work performed by external calls. 1. Download the latest version (a war http://Jenkins-ci.org/ 2. run java-jar Jenkins.war (Jenkins uses an embedded
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.