You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jean-Baptiste Lievremont 7fbccc246d SONAR-4366 Fix display of conditions defined on deprecated (hidden) metrics 10 vuotta sitten
plugins SONAR-4366 Fix display of conditions defined on deprecated (hidden) metrics 10 vuotta sitten
sonar-application SONAR-5204 add comment 10 vuotta sitten
sonar-batch SONAR-5185 Deprecate "sonar.dynamicAnalysis" feature 10 vuotta sitten
sonar-batch-maven-compat Upgrade version to 4.3-SNAPSHOT 10 vuotta sitten
sonar-check-api Update copyright headers (replace 2013 by 2014) 10 vuotta sitten
sonar-colorizer Update copyright headers (replace 2013 by 2014) 10 vuotta sitten
sonar-core SONAR-5211 Use correct type to map DB column to avoid overflow 10 vuotta sitten
sonar-deprecated Fix some quality flaws 10 vuotta sitten
sonar-duplications Fix some quality flaws 10 vuotta sitten
sonar-graph Fix compatibility of some tests with java8 10 vuotta sitten
sonar-home SONAR-5062 New implementation of concurrent safe unzip using FileLock 10 vuotta sitten
sonar-java-api Update copyright headers (replace 2013 by 2014) 10 vuotta sitten
sonar-markdown Update copyright headers (replace 2013 by 2014) 10 vuotta sitten
sonar-maven-plugin Fix some quality flaws 10 vuotta sitten
sonar-maven3-plugin Upgrade version to 4.3-SNAPSHOT 10 vuotta sitten
sonar-plugin-api SONAR-5185 Deprecate "sonar.dynamicAnalysis" feature 10 vuotta sitten
sonar-server SONAR-4366 Fix display of conditions defined on deprecated (hidden) metrics 10 vuotta sitten
sonar-testing-harness SONAR-5128 Package a release version of sonar-channel 10 vuotta sitten
sonar-ws-client Fix stability of tests depending on order of execution 10 vuotta sitten
.gitattributes Tests should be independent from EOL in resources 13 vuotta sitten
.gitignore Ignore Eclipse builder configuration directory 10 vuotta sitten
.mailmap .mailmap file to resolve wrong author names 12 vuotta sitten
COPYING Fix crlf 13 vuotta sitten
KEYS Add Eric Hartmann's key 12 vuotta sitten
README.md Fix URL of Git repository 10 vuotta sitten
copyright.txt Update copyright headers (replace 2013 by 2014) 10 vuotta sitten
pom.xml Revert "SONAR-5117 Upgrade to Tomcat 7.0.52" 10 vuotta sitten
push.sh Add unbreakable build script for mac 12 vuotta sitten
quick-build.bat Remove the profile -Pdev 10 vuotta sitten
quick-build.sh Fix logs of quick-build.sh 10 vuotta sitten
start-mac-h2.sh SONAR-4579 The archive sonar-x.y.zip must be renamed sonarqube-x.y.zip 10 vuotta sitten
third-party-licenses.sh Add third-party-licenses.sh 10 vuotta sitten

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