Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Put your technical debt under control

Octocat-spinner-32 plugins Restore sonar-l10n-en-plugin April 18, 2014
Octocat-spinner-32 sonar-application Restore sonar-l10n-en-plugin April 18, 2014
Octocat-spinner-32 sonar-batch-maven-compat Merge branch medium-tests April 18, 2014
Octocat-spinner-32 sonar-batch Add common-beanutils to sonar-batch classpath April 18, 2014
Octocat-spinner-32 sonar-check-api Upgrade to 4.4-SNAPSHOT April 18, 2014
Octocat-spinner-32 sonar-colorizer Upgrade to 4.4-SNAPSHOT April 18, 2014
Octocat-spinner-32 sonar-core SONAR-5218 Once a module has been turned into a project, its issues a… April 18, 2014
Octocat-spinner-32 sonar-deprecated Upgrade to 4.4-SNAPSHOT April 18, 2014
Octocat-spinner-32 sonar-duplications Upgrade to 4.4-SNAPSHOT April 18, 2014
Octocat-spinner-32 sonar-graph Upgrade to 4.4-SNAPSHOT April 18, 2014
Octocat-spinner-32 sonar-home Upgrade to 4.4-SNAPSHOT April 18, 2014
Octocat-spinner-32 sonar-java-api Upgrade to 4.4-SNAPSHOT April 18, 2014
Octocat-spinner-32 sonar-markdown Upgrade to 4.4-SNAPSHOT April 18, 2014
Octocat-spinner-32 sonar-maven-plugin Upgrade to 4.4-SNAPSHOT April 18, 2014
Octocat-spinner-32 sonar-maven3-plugin Upgrade to 4.4-SNAPSHOT April 18, 2014
Octocat-spinner-32 sonar-plugin-api Merge branch medium-tests April 18, 2014
Octocat-spinner-32 sonar-server Complete Debt medium test April 18, 2014
Octocat-spinner-32 sonar-testing-harness Upgrade to 4.4-SNAPSHOT April 18, 2014
Octocat-spinner-32 sonar-ws-client Upgrade to 4.4-SNAPSHOT April 18, 2014
Octocat-spinner-32 .gitattributes Tests should be independent from EOL in resources April 22, 2011
Octocat-spinner-32 .gitignore Ignore Eclipse builder configuration directory March 19, 2014
Octocat-spinner-32 .mailmap .mailmap file to resolve wrong author names May 28, 2012
Octocat-spinner-32 COPYING Fix crlf April 20, 2011
Octocat-spinner-32 KEYS Add Eric Hartmann's key November 07, 2011
Octocat-spinner-32 README.md Fix URL of Git repository March 25, 2014
Octocat-spinner-32 copyright.txt Update copyright headers (replace 2013 by 2014) March 11, 2014
Octocat-spinner-32 pom.xml Restore sonar-l10n-en-plugin April 18, 2014
Octocat-spinner-32 push.sh Add unbreakable build script for mac July 17, 2012
Octocat-spinner-32 quick-build.bat Remove the profile -Pdev February 25, 2014
Octocat-spinner-32 quick-build.sh Fix logs of quick-build.sh March 06, 2014
Octocat-spinner-32 start-mac-h2.sh SONAR-4579 The archive sonar-x.y.zip must be renamed sonarqube-x.y.zip October 15, 2013
Octocat-spinner-32 third-party-licenses.sh Add third-party-licenses.sh March 22, 2014
README.md

SonarQube

Put your technical debt under control. For more information please see:

Sources

This Git repository is core platform. Plugins are hosted in SonarCommunity and SonarSource organisations.

Checkout Sources

If you have never used Git before, you need to do some setup first. Run the following commands so that GIT knows your name and email.

git config --global user.name "Your Name"
git config --global user.email "your@email.com"

Setup line endings preferences:

# For Unix/Mac users
git config --global core.autocrlf input
git config --global core.safecrlf true

# For Windows users
git config --global core.autocrlf true
git config --global core.safecrlf true

Get sources by executing:

git clone https://github.com/SonarSource/sonarqube.git

Committers must configure their SSH key (see GitHub documentation for Windows and Mac) and clone repository:

git clone git@github.com:SonarSource/sonarqube.git

Build

  • Install JDK 6 or greater
  • Install Maven 3.0.5 or greater
  • Execute mvn clean install. ZIP file of application is generated into sonar-application/target/

Edit Ruby Code

The development mode is used to edit Ruby on Rails code. The application is automatically reloaded when Ruby files are saved. It avoids restarting the server. Changes are reloaded on the fly. Execute one of the following commands from the sonar-server/ directory to start server:

# for embedded database
sonar-server/h2-start.sh

# or for other dbs
sonar-server/mysql-start.sh
sonar-server/postgresql-start.sh

Then Ruby code can be directly edited from sonar-server/src/main/webapp/WEB-INF/app.

Debug Maven Analysis

Debug Maven analysis by executing mvnDebug sonar:sonar. Then attach your IDE to the remote process (the listening port is 8000).

Example in Intellij Idea : Run -> Edit configurations -> Add new configuration -> Remote -> port 8000.

Profile Maven Analysis with JProfiler

Duplicate $MAVEN_HOME/bin/mvnDebug to mvnJProfiler and replace the property MAVEN_DEBUG_OPTS by:

MAVEN_DEBUG_OPTS="-Xint -agentlib:jprofilerti=port=8849 -Xbootclasspath/a:/path/to/jprofiler/bin/agent.jar"

Then start JProfiler -> Connect to an application on a remote computer

License

Copyright 2008-2014 SonarSource.

Licensed under the GNU Lesser General Public License, Version 3.0: http://www.gnu.org/licenses/lgpl.txt

Something went wrong with that request. Please try again.