commentsNo comments will make the code less readable, especially when people change inevitably, and the readability of the program will drop dramatically.Too many comments can cause developers to spend too much time reading comments and violating their intentions.6. Potential bugsSonar can detect potential bugs through the Code rule Detection Tool, such as Pmd,checkstyle,findbugs7. Bad design (original spaghetti design, spaghetti style)Sonar lets you
protection system (IPS) engine technology to prevent malicious network attacks in multiple ways. In addition, the active defense technology of the Norton 2009 real-time SONAR (Symantec Online Network for Advanced Response) can effectively trigger alarms and kill unknown viruses in real time. In addition, the Norton 2009 feature "botnet protection" and a severe i
Sonar.properties[Email protected] ~]# vi/usr/local/sonarqube-5.2/conf/sonar.propertiesWhen opened, locateSonar.host.url=http://localhost:80Sonar.jdbc.username=sonarSonar.jdbc.password=sonarsonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useunicode=truecharacterencoding=utf8 Rewritebatchedstatements=trueuseconfigs=maxperformancesonar.web.host=0.0.0.0sonar.web.context=Sonar.web.port=80Ps:sonarqube listens on port 9000 by default. Because I'm going to
an overview
This article mainly introduces the installation and integration of Jenkins,sonarqube, code analysis has Sonarqube and sonar-runner build, or in the case of MAVEN project can sonarqbude and maven build. Describes the Jenkins compilation package deployment, code checking. Finally integrated Jenkins two pre-installed software
Software name Platform notes jdk1.8.0_60 Win10 operating system apache-tomcat-8.0.20 Win10 Tomcat container Jenkins
-version java Version "1.8.0_121" java (TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot (TM) 64-bit Server VM (build 25.121-b13, mixed mod 3:jenkins installation Configuration Reference: http://pkg.jenkins-ci.org/ Find the click of your own service environment, follow the steps to install 4:sonarqube installation configuration Configure MySQL: mysql [(none)]> Create Database sonar character set UTF8 collate utf8_general_
SonarQube code quality management tool environment preparation notes
SonarQube code quality management tool environment building notes
Put your technical debt under controlProductivity is falling?Confess your source code to clean it up!
Step 1: Install SONAR
1. Prepare the JAVA environment.2. Create an Oracle tablespace and a user.2. download the latest sonar and decompress it to the directory C: \ app \
the downloaded sonar compression package to the server, the directory itself. I'm using the ~/download directory.
Extract, command is: unzip sonarqube-5.1 . Span style= "COLOR: #800080" >1 . zip After the has been unzipped, create the sonar directory under the/usr folder, copy the extracted folders into it, and then change the permissions. sudo mkdir /usr/so
configuration:Enter Database commandSu PostgresPsqlCreate user sonar with password ' sonar ';Create database sonar owner sonar;Grant all privileges on the database sonar to sonar;2.2 installing Sonarqube and
-Virus module + Firewall + spam filtering, and has its own independent ThreatSense engine technology, nearly 75% of new unknown viruses can be detected through heuristic analysis before the virus feature library is updated.3. Components of the function module of Norton 2009
Norton network security expert 2009 is an amazing anti-virus product. It is installed every minute, updated every 5-15 minutes, smart h
This article takes the CentOS operating system as an example to introduce the installation configuration of Sonarqube and how to integrate with JenkinsServerEnvironment:[Email protected] data]# uname-aLinux Db-server 3.10.0-327.36.3.el7.x86_64[Email protected] data]# java-versionOPENJDK Version "1.8.0_111"[Email protected] data]# nginx-vNginx version:nginx/1.10.2[Email protected] data]# mysql-vMySQL Ver 15.1 distrib 5.5.50-mariadbSonarqube-5.3.zipI. Installing the configuration
latitude shown in Figure 1,
Figure 1. Project Quality Analysis
With plugins, Sonarqube can detect code quality from seven dimensions, support more than 20 programming languages including Java,c#,c/c++,pl/sql,cobol,javascript,groovy, and can handle the following problems in the code:1. Poor complexity distribution
Files, classes, methods, and so on, if the complexity is too high will be difficult to change, which makes it difficult for developers to understand them, and without automated unit te
perform code quality management and analysis through a variety of different analysis mechanisms, and SonarQube will present the results of the analysis to the user visually and in a measurable way through the Web API.
Back to top SonarQube3.6 installation
Requirements for software and hardware
The installation of SonarQube3.6 usually needs to meet certain hardware and software conditions, the specific requirements are as follows:
1. Server Requirements
Web server requires a minimum of 500MB of
All required installation packages have been uploaded to Cloud disk: https://pan.baidu.com/s/1i5LvOCd Password: s47e
1. Install MySQLDownload Cloud disk DMG package, all the way to the default installation, note: Be sure to remember the last step to pop up the default password!Otherwise, see this article: How to modify the default password for MySQL after you forget your password2. Configure the databaseAfter the installation is complete, you can manage the start and stop of MySQL in System
Our company is now using Jenkins for continuous integration and for code quality management with sonar. Quality Management This kind of thing, at first may feel nothing, later only slowly discovered, code specification is also very important for the programmer.Not much nonsense to say, the main talk about sonar configuration, useful sonar Sunner, ant, maven three
In the previous blog post, we completed the Sonarqube deployment through Kubernetes's devlopment and service. Seems to be available, but there is still a big problem. We know that databases like MySQL need to keep data and not lose data. And the container is exactly the moment you exit, all data is lost. Once our Mysql-sonar container is restarted, any subsequent settings we make to Sonarqube will be lost. So we have to find a way to keep the MySQL da
Install and configure SonarQube in centos 6.5
1. Download the installation package:Http://www.sonarqube.org/downloads/
2. Upload the server and decompress it:
Unzip sonarqube-5.6.zip-d/dir
3. Install MySQL and enter mysql
3.1 mysql-u root-p3.2 create a database and an account:
mysql> CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci; mysql> CREATE USER 'sonar' IDENTIFIED BY '
Sonarqube is an open platform for managing code quality that can quickly locate potential or obvious errors in your code, and will describe the installation, configuration, and use of this tool.preparatory work;1, JDK (no longer introduced)2, sonarqube:http://www.sonarqube.org/downloads/3, Sonarqube+scanner:https://sonarsource.bintray.com/distribution/sonar-scanner-cli/sonar-scanner-2.5.zip4. mysql database
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.