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
.
The Sonarqub e platform is comprised of 4 parts: SonarQube Server SonarQube Database SonarQube Plugins SonarQube Scanner SonarQube with Sonar Installation and configuration of Qube-scanner SonarQube
In the S Onarqub E official website, we can download the latest S Ona r installation package, this section with L Inu X system For example, build S Onarqub e platform, extract to any directory, such as: Unzip Sonarqube5.6.zip.
Sonarqub e comes with a H2
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-function
Now the system will usually have automated generated code, when using sonar for system code quality analysis, we want to be able to automatically generate code to exclude from the system analysis. This is very simple to implement, and in Maven's Pom.xml file, add sonar.exclusions to indicate which auto-generated code folders do not need to be parsed.The specific matching rules can refer to sonar's official documentation, which is very simple (docs.son
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.
Configuration:1. Configure environment variable Sonar_runner_home2. Configure path: Increase%sonar_runner_home%\bin3. Create sonar-project.properties at the root of your local projectSonar-project.properties:Sonar.projectkey=keyinsonartasklist //eg:sonartask_1sonar.projectname=nameinsonartasklist//eg:sonarTask_ 1SONAR.PROJECTVERSION=1.0-SNAPSHOTSONAR.SOURCES=SRC//relative path, path of source relative to Sonar
Because the project uses ant for compilation, the code check is also performed by sonar runner, so the following configuration file is available:
Parameter description:
Http://blog.csdn.net/alonesword/article/details/9981521
Http://docs.codehaus.org/display/SONAR/Analysis+Parameters
Jenkins + maven + git + sonar system continuous integration amp; Code single test managementJenkins + 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 software version release/test projects. 2. Monitor the execution of external calls.1. downloa
jenkins+maven+git+sonar system Continuous Integration Code single-Measurement managementInstallation of Jenkins Jenkins is a continuous integration tool based on Java development that monitors ongoing duplication of work, including: 1. Continuous software release/test project. 2. Monitor the work performed by external calls. 1. Download the latest version (a war http://Jenkins-ci.org/ 2. run java-jar Jenkins.war (Jenkins uses an embedded
When you use Sonar-scanner to scan your code, the error is as follows:
Error:error during Sonarqube Scanner executionJava.lang.IllegalStateException:Error when executing blame the for file ...... Java-----At Org.sonar.plugins.scm.svn.SvnBlameCommand.blame (svnblamecommand.java:102)At Org.sonar.plugins.scm.svn.SvnBlameCommand.blame (svnblamecommand.java:59)At Org.sonar.batch.scm.ScmSensor.execute (scmsensor.java:84)At Org.sonar.batch.sensor.SensorWr
Reference:1, 11900000086591082, Https://docs.sonarqube.org/display/DEV/Adding+Coding+Rules3, Https://docs.sonarqube.org/display/DEV/Adding+Coding+Rules+using+Java4, https://docs.sonarqube.org/display/PLUG/Writing+Custom+Java+Rules+101There are two ways to extend code rules: But Java only supports mode 11. Writing coding rules using Java via a SonarQube plugin2. Adding XPath rules directly through the SonarQube Web interfaceWriting coding rules in Java is a six-step process:
Create a Son
What is continuous integration: http://www.ruanyifeng.com/blog/2015/09/continuous-integration.htmlBenefits of Continuous Integration: Https://zhuanlan.zhihu.com/p/20589465?columnSlug=jishuqushiI have been before the company are entrepreneurial companies, there is no complete development process, the basic is all by hand to submit the release, small companies do not have professional operations, project management is based on manual, sometimes near the release of the bug, the project manager can
About Sonarlanguage is what dongdong, here is not described, if you are interested in it, please go to the previous essay open Source: angularjs example--sonar Project use language map. Here is a recent practice version of learning Coffeescript.
Coffeescript is a concise, JavaScript-based preprocessor language that can be statically compiled into JavaScript, which is primarily influenced by Ruby and Python and is now used for many rails and node proj
Preface:
Recently used in the project Sonarlint, the first contact with the software, it feels really good, some code problems can be detected using Sonarlint, a software use, are from a step-by-step learning to start, this blog to summarize the Sonarlint installation and basic use.Core: What :
Sonarlint, essentially, is a plugin that we can download in Idea,eclipse, Visual Studio for code detection.Idea Installation:
Premise: The Sonarqube has been built.
Then install the plugin.
File-->setti
Introduction: Sonar platform is a popular static code scanning platform, it is necessary to learn and understand its database structure for ease of use and two times of development.Title, at present the network does not find relevant content, only oneself slowly tidy up, as the information, for query.=========================================================================================Query the most frequently scanned rule for a month: SELECT i.rul
assert the application's internal properties, can be statistically coverage, If CI fails and can be independently run locally, debug, repair failed case resubmit) and FT (based on the User story black box test) advantages, the status of the project quality assurance is not lower than UT, so also need to calculate coverage, rather than the traditional test pyramid model, only rely on UT coverage.So Sonar + Jacoco is a very useful combination of both U
Sonar is a code review tool that can effectively address your code's specifications
This article is installed under windowThis is a configuration to check MAVEN projects
Installing Sonar-runer
Installation configuration
Corresponding to the above configuration
Start sonar
Interface
Idea Integration ToolThese two and Findbug f
How do different code branches do code analysis on Sonar? For example, one project has three branches of master, MySQL, and Xiangxiang, and 3 code-checking jobs are built on Jenkins, which is expected to be shown separately from the three-branch code-checking results area. But sonar will count the results of 3 branches into a single project, and not be divided into 3 project statistics.
So how to solve thi
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.