Before doing statistical code test coverage, generally with cobertura. Previously statistical test coverage, generally only unit test, or close the eyes of the unit test and integration test together.However, we have gone through the age of superstition UT:
UT does not support large-scale refactoring, and if the refactoring of classes and methods is spli
Sonar Overview
Sonar is an open platform for code quality management. Through the plug-in mechanism, Sonar can integrate different test tools, code analysis tools, and continuous integration tools.
Unlike continuous integration tools such as Hudson/jenkins,
Sonar installation and code quality check instances and sonar code check instances
Note: sonar depends on the database.
Mysql Optimization
1. I am using the mysql database. I will first make simple Optimization Configuration for mysql.
[Root @ localhost bin] # cat/etc/my. cn
of refactoring, Martin Fowler, also introduced technical debt on his website. In fact, the principle can be understood as "getting out and mixing will be paid back sooner or later". The nonstandard code will affect the cost of future product modifications.
The Technical Debt plug-in of Soanr provides the default calculation formula. By configuring the weight parameters, you can adapt to the calculation of Technical Debt by different companies and pro
Demo address: http://nemo.sonarsource.org/http://www.sonarsource.org/downloads/
I. Brief Introduction
PrefaceSonar is an open-source platform for managing JavaSource codeQuality. From sonar 1.6, sonar has changed from a quality data reporting toolCodeQuality management platform.
Main features
1) code coverage: t
Address: http://www.cnblogs.com/ericsun/archive/2011/09/19/2180827.html
I. Brief Introduction
PrefaceSonar 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
1)
As the project expands,CodeIn addition to code review, it is important to use tools for regular inspection specifications. Sonar is such a platform. Introduction
Sonar is an openSource codeQuality management platform.Its main features are as follows:
Code coverage:
.zip-d/usr/local/
#ln-S/usr/local/sonar-scanner-2.6.1 //usr/local/sonar-scanner
configuration Let the scanner be associated with Sonar
# CD
# cd/usr/local/sonar-scanner/conf/
# grep ' ^[a-z ' Sonar-scanner.properties
sonar.host.url=http://10.0.0.102:9000
sonar.sourceencodi
First, install the Sonarqube service end, in other Computer browser landing, start to install other programming language detection plug-ins
The system has installed language plug-ins:
Download the languages that are commonly used in software projects:Android,CSS,Web,XML
Java-Related:Checkstyle,Findbugs,PMD
Java Static Analysis tool profiling objects
Application Technology
Checkstyle
Java source files, defect pattern matching
Findbugs
Byte
you save and exitSonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useunicode=trueamp;characterencoding=utf8Sonar.jdbc.username=sonarSonar.jdbc.password=sonarsonar.host.url=http://192.168.1.190Sonar.login=adminSonar.password=admin
After the installation is successful, restart the server, run the above command at the command line and echo it, indicating that the operation was successful.
[Email protected] local]#
sonar--Code Quality management platformFirst, basic understandingSonar (SonarQube) is an open source platform for managing the quality of source code. Sonar is not just a quality data reporting tool, but also a code quality management platform. through the plug-in mechanism,
Jenkins + maven + git + sonar system continuous integration code Test Management, jenkinsmavenJenkins + 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 s
Use OCLint and Sonar for iOS code analysis and quality management, oclintios
OCLint is a powerful static code analysis tool that can be used to improve code quality and find potential bugs, mainly for Static Analysis of c, c ++ and Objective-c.
Sonar is an open platform for
1. Code Quality seven CrimesSonar is a code quality management system, its help document opening Ming Yi, put forward the code quality of the seven crimes, summed up in place, may wish a look:1. Bugs and Hidden Bugs (Bugs and potential Bugs)2. Violation of code specification (Coding standards Breach)3. Copy and paste (
First, what is sonar?
Sonar is an open source platform for code quality Management that manages the quality of source code through plug-in forms, and can support including Java,c#,c/c++,pl/sql,cobol,javascrip, Groovy, etc. code quality management and detection in more th
the corresponding directory and configure the environment variables:
sonar_scanner_home:d:\sonar\sonar-scanner-2.8\sonar-scanner-2.8
Path:%sonar_scanner_home%\bin
To configure the Conf/sonar-scanner.properties file:
#-----Default SonarQube ServerSonar.host.url=http://localhost:9000/#-----Default
After the successful configuration of the Code Analysis page:You can see the complexity, syntax usage, repetition, and so on have been analyzed, specific to each method and each sentence of code.Four modes of use:Sonarqube + sonar-runnerSonarqube + mavensonarqube + eclipsesonarqube + IDE IntelliJMode of Use 1:Sonarqube + sonar-runner1. EnvironmentJDK 1.7Sonarqube
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
I. Installation
Installation Method:
Sonar can be installed independently or in combination with Maven and Hudson. It can be used with built-in memory databases or custom databases such as MySQL and Oracle.
This article introduces how to use the built-in database combined with Maven and Hudson to automatically monitor code quality changes in sonar.
Installation
Sonarlint (sonar) Code quality Management One, what is Sonar?
Sonar is an open source platform for code quality Management that manages the quality of source code through plug-in forms, and can support including Java,c#,c/c++,
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.