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
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_
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
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 \
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
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
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
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.