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
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
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
-abbreviation-First letter abbreviation-Address-Text Direction--Long references-Short cited terms-citations, citations-Defining items tagsDefinition and Usage: tags indicate abbreviations or abbreviations, such as "WWW" or "NATO".By tagging
The number of recursive abbreviations is as follows:
Recursive abbreviation is an abbreviation that recursively references itself in the full name. Because it is recursive, it cannot be accurately interpreted. The earliest example may be visa: Visa
The previous article describes how to let Surefire,failsafe and Jacoco maven plugin How to combine configuration, this article specifically explains how to use the Powermock agent to solve coverage incompatibility problems.First add Powermock agent
The curly brace of the class is not followed by another line
Variable name initials lowercase hump mode [a-z][a-za-z0-9]*
Note to start another line instead of following the code,
The code snippet to remove the comment
Swtich
SonarQube code Quality Management Platform Installation and Use
Sonar Introduction
Sonar is an open-source platform for code quality management. It manages the quality of source code and can detect code quality from seven dimensions.
Supports code quality management and detection in more than 20 programming languages, including java, C #, C/C ++, PL/SQL, Cobol, JavaScrip, and Groovy.
What does sonarQube bri
1. PrefaceThe previous chapter described how to configure the use of the source Control tool SVN and integrate it with Apache to enable code changes to be traceable, although it is important for most teams to look for experienced people in the team to review and submit before they can be submitted, but this is sometimes not always available. Does it depend on the mechanism and not the people to ensure the quality of the code, we know that the shortcomings of the computer is also one of the advan
may mean. The package is missing, have been obsoleted, Oris only available from another sourcee:package ' Php5-mys QL ' has no installation candidate[email protected]:~#Workaround One:[Email protected]:~# apt-get update #更新源 [email protected]:~# apt-get Upgrade #升级包If it still doesn't work, try adding a third-party address.Workaround Two:[Email protected]:~# add-apt-repository "Deb http://archive.canonical.com/lucid partner" [Email protected]:~# apt-get UpdateWorkaround Three:[Email protected]:
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
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
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.