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-functional line requirements related to code quality. In the SQALE method implemented by
are source code weakness analyzers, source code security analyzers, static application security testing, static analysis code scanners, and code weakness analysis tools. Each source code analysis tool uses the type matching method to find vulnerabilities. There are many reports to evaluate these tools.
However, this vulnerability was not found using static analysis tools in the past:
1. Coverity: Coverity
Link: http://blog.sina.com.cn/s/blog_5d90e82f0101kfnd.html
Many companies, including Google and coverity, now like test-driven development ). It works by writingProgramWrite the automated unit test at the same time ). InCodeAfter modification, these tests can be run in batches to avoid unexpected errors.
This is not a bad idea. I also used many tests in Kent's compiler course. They are indispensable in Compiler development. The compiler is an extre
code, and automatically complete the analysis, but also set up scheduled tasks, to achieve full-automatic, is a necessary tool for lazy people ah!In the following example, the source code is automatically analyzed using Git+scanner and Git+maven respectively. Basically, the first thing to do is to have a code base, such as BitBucket, and then configure Git to automatically download the latest code from the codebase in Jenkins, and finally call scanner or MAVEN to send the code to
The Python code has the lowest density of bugs, just 0.005 per thousand lines of code, according to the Coverity company, which provides development testing services. Industry-accepted standards are 1 per thousand lines of code defects, code defect density less than 1.0, which is considered high-quality code.
According to the 2012 Open source Code Scan report, the average defect density of open source code is 0.69, while Python is 0.005.
Dubbo Video Tutorial official website:http://www.roncoo.com/Wu Shuicheng, e-mail: [email protected], qq:840765167"Dubbo-based Distributed System Architecture video Tutorial" contains basic, advanced, high-availability architecture, tutorials with a third-party payment project of the system architecture combat experience as the background, and eventually form a set of distributed system architecture solutions. The technical points covered in the tutorials include Dubbo distributed services, zooke
SonarQube5.5 is released, and the code quality analysis system SonarQube 5.5 is released. Sonar (SonarQube) is an open source platform for managing the quality of source code. Sonar is not only a quality data reporting tool, but also a code quality management platform. Supported languages include Java, PHP, C #, C, Cobol, PL/SQL, and Flex.
The improvement record is as follows:
The new
as an important factor. This tool provides a super-simple full-text search experience.Official website: http://www.elasticsearch.org/
Sonarqube
Sonarqube is an open platform for managing code quality. Web-based applications can be configured with Java applications. It provides rules, alerts, thresholds, exclusions, and setup features. Sonarqube all
Library, through SSH access
2. Jenkins to integrate the trigger function of Gerrit: Install Gerrit Trigger Plugin plug-in, and configure Trigger timing conditions
3. Jenkins configuration Automation test and Code Analysis function: Implement code analysis through Sonarqube
4. Jenkins the code after passing the test Verified:gerrit to allow Jenkins to communicate directly with Gerrit by starting the SSH service Jenkins to add Jenkins users and configu
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.
1. Add "Sonarqube analysis with Maven" in the Jenkins build operation.
2. Add Branch
Install Dubbo Registration Center (Zookeeper-3.4.6)Installing the Dubbo Management ConsoleDeployment of the Web app----Dubbo Service consumer Web App War package deployed in Tomcatintroduction of Dubbo Monitoring Center and installation of simple Monitoring Center (supplemental documentation)installation of SVN version management system CentOS + Subversion + Apache + jsvnadmininstallation and configuration of Maven private libraries and local libraries Sonatype Nexus + MavenContinuous Integratio
provide strategic business insights or integrate with your existing applications to power their interacti ONS with incoming data. Elasticsearch is a flexible and powerful open source, distributed, real-time search and analytics engine. Architected from the ground up for use in distributed environments where reliability and scalability is must haves, elast Icsearch gives you the ability to move easily beyond simple full-text search7) SonarqubeSonarQube is a open platform to manage code quality.
A fairy Tale
A long time ago, a software development team found their manager. "Our project has quite a bit of technical debt (technical debt) and we should do something about it." "The team said. They showed a picture (Figure 1) to illustrate the technical debt of the project. "Technical debt is related to the quality of the project. "They said. It also shows the decomposition of various parts of the technical debt, through static code analysis, can find too complex code, duplicate code and co
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 correct
C:\users\hui.qian>sonar-runner-h
D:\sonar\sonar-runner-2.4
INFO:
Info:usage:sonar-ru
Execution of a system command on Meituan involves unauthorized access to the project source code and Intranet.
Rt
http://43.241.211.74:8080/
Command ExecutionNt authority \ system
Intranet environment
SonarQube unauthorized access
http://43.241.211.74:9000/
http://43.241.211.74:8080/
Command ExecutionNt authority \ system
Intranet environment
SonarQube unauthorized access
http://43.241.
.6Quality Analysis SonarQube is an open-source platform and has become a world leader in code quality management systems. It is well known for its continuous inspection of code quality. In addition to Java, it also supports most languages and can be used for Android development. It integrates with most continuous integration tools. SonarQube generates reports for repeated code, encoding standards, unit test
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.
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.