Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
Simon Brandhof 29611c664c Remove goal "clean" from quick-build.sh and build.sh 10 лет назад
plugins SONAR-3437, SONAR-5189 Store measures in a persistit cache 10 лет назад
sonar-application Continue move from hamcrest to fest-assert 10 лет назад
sonar-batch Fix SnapshotCache to not contains libraries. 10 лет назад
sonar-batch-maven-compat Continue move from hamcrest to fest-assert 10 лет назад
sonar-check-api Upgrade to 4.4-SNAPSHOT 10 лет назад
sonar-colorizer Continue move from hamcrest to fest-assert 10 лет назад
sonar-core SONAR-5273 Increase maximal size of user login to 255 characters 10 лет назад
sonar-deprecated Continue move from hamcrest to fest-assert 10 лет назад
sonar-duplications Continue move from hamcrest to fest-assert 10 лет назад
sonar-graph Upgrade to 4.4-SNAPSHOT 10 лет назад
sonar-home Upgrade to 4.4-SNAPSHOT 10 лет назад
sonar-java-api Upgrade to 4.4-SNAPSHOT 10 лет назад
sonar-markdown Upgrade to 4.4-SNAPSHOT 10 лет назад
sonar-maven-plugin Revert "SONAR-5051 Support Maven encryption mechanism for SonarQube passwords" 10 лет назад
sonar-maven3-plugin Upgrade to 4.4-SNAPSHOT 10 лет назад
sonar-plugin-api SONAR-5273 Increase maximal size of user login to 255 characters 10 лет назад
sonar-server Add some javadocs on ProfilesWS 10 лет назад
sonar-testing-harness Complete WebService with new param metadata 10 лет назад
sonar-ws-client SONAR-5271 Delete /api/violations WS 10 лет назад
.gitattributes Tests should be independent from EOL in resources 13 лет назад
.gitignore Ignore Eclipse builder configuration directory 10 лет назад
.mailmap .mailmap file to resolve wrong author names 12 лет назад
COPYING Fix crlf 13 лет назад
KEYS Add Eric Hartmann's key 12 лет назад
README.md Fix URL of Git repository 10 лет назад
build.sh Remove goal "clean" from quick-build.sh and build.sh 10 лет назад
copyright.txt Update copyright headers (replace 2013 by 2014) 10 лет назад
pom.xml Revert persistit version to stay compatible with Java 1.6 10 лет назад
push.sh Complete build scripts 10 лет назад
quick-build.bat Remove goal "clean" from quick-build.sh and build.sh 10 лет назад
quick-build.sh Remove goal "clean" from quick-build.sh and build.sh 10 лет назад
start-mac.sh Experimental support of linux in start-mac.sh 10 лет назад
stop-mac.sh start-mac.sh must start "sonar.sh start" instead of "sonar.sh console" in order to display logs 10 лет назад
third-party-licenses.sh Add third-party-licenses.sh 10 лет назад

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