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 (duplications)4. Lack of unit testing (Lack of unitTests)5. Poor complexity distribution (baddistribution of complexity)6. Pasta Designs (spaghettidesign)7. Insufficient or excessiv
H Udson is an extensible, continuous integration engine.Mainly used for: continuously, automatically build/test software projects. Monitor some tasks that are scheduled to be performed.
Sonar is an open source quality management platform, focusing on the continuous analysis and measurement of technical quality from project to class method, which integrates code quality related software into a unified management;
In simple terms,
Hudson is a continuou
Because the company's wall is too high, I can not blow open, unable to use Gradle, so I still obediently use Sonar-runner to generate code quality data bar.
Download
The resources found on the CSDN.
After decompression, the file directory structure
Configuration
Then configure the environment variables, enter Sonar-runner under CMD, and the following information indicates that the configuration is corr
First, the Environment configuration: 1, JDK Installation and configuration 2, MySQL database installation----directly call the server yard MySQL database, on this basis to create a new database sonar. The database configuration is as follows: 3, the sonar official website downloads the sonarqube version, chooses 5.6.3 version, the official website says is the long-term support, therefore chooses this versi
Sonar is the open source code quality management platform, which integrates the software of the relevant code and unified management, integrated software as follows:
Cpd
Checkstyle
Clover
Cobertura
Findbugs
General
Google Analytics
Pmd
Squid
Surefire
I recorded the installation process.
1. The environment is prepared as follows
ubuntu8.04
jdk1.5
maven2.2 (official request 2.0.7 above)
mysql5.0
2. Download
Preface
The previous article learned sonar, this article to explain sonar runner. The difference is that sonar runner is uploading the analyzed data to the database, and sonar is using various methods to organize the data in the database into different forms for the user. So sona
HudsonIs a scalable continuous integration engine. It is mainly used for: continuous and automatic construction/testing of software projects. It monitors some scheduled tasks.
SonarIt is an open-source quality management platform that focuses on continuous analysis and measurement technology quality from projects to class methods. It integrates code quality-related software for unified management;
To put it simply,
HudsonIs a continuous, automatic building/testing software project,
WhileSonarIt
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 4.5.7 (the newest sonarqube all require jdk1
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 code quality management. With the plug-in mechanism, Sonar can integrate different test to
HUdsonIs a scalable continuous integration engine. It is mainly used for: continuous and automatic construction/testing of software projects. It monitors some scheduled tasks.
SonarIt is an open-source quality management platform that focuses on continuous analysis and measurement technology quality from projects to class methods. It integrates code quality-related software for unified management;
To put it simply,
HudsonIs a continuous, automatic building/testing software project,
WhileSonarIt
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 steps:
1. Download The
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: the unit test shows the lines of code selected.
Improved Coding rules
Search encoding rules: query by name, plug-in, activation l
Preface
The last article to learn sonar, this article to explain sonar runner. The difference is that sonar runner upload the analyzed data to the database, while sonar uses various methods to organize the data in the database into different forms for the user. So sonar re
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++,pl/sql,cobol,javascrip, Groovy, etc. code quality management and detection in more than 20 programming languages
On the Internet to read a lot of Sonarqube tutorials, first of all to explain the relationship between the two Sonarqube is a(Code Quality Management platform) Open source platform, used to manage the quality of Java source code, popular point of view that the person is actually similar to a server, like Tomcat or JBoss. With the server this empty shelf must not be detected code, And Sonar-runner is equivalent to a scanning code under the platform of
ObjectivePrevious essay Maven+nexus+jenkins+svn+tomcat+sonar building a Continuous integration environment (i) describes the MAVEN and Nexus Environment building, and how to use MAVEN and Nexus Unified Management library files and versions, And how to upload your own module to a nexus for other modules to reference. Here's how you can use Jenkins, SVN, Tomcat, and Sonar to automate the compilation, testing,
Objective Previous essay Maven+nexus+jenkins+svn+tomcat+sonar building a Continuous integration environment (i) describes the MAVEN and Nexus Environment building, and how to use MAVEN and Nexus Unified Management library files and versions, And how to upload your own module to a nexus for other modules to reference. Here's how you can use Jenkins, SVN, Tomcat, and Sonar to automate the compilation, testing
preparatory workThe Gradle version in the project is
3.3, Sonar uses
5.6.6Project for Springboot Project
introducing sonar warehouse addresses and dependency packagesMaven {URL "https://plugins.gradle.org/m2/"} classpath ("Org.sonarsource.scanner.gradle:sonarqube-gradle-plugin : 2.3 ") because it is multi-module, it is placed on the outermost build.gradle
Build.gradle
Buildscript {
repositories {
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 than 20 programming languages
Sonar can detect code quality from the following seven dimen
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.