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.
Simon Brandhof 71d081723e Add format-headers.sh, just to remind "mvn license:format" 10 years ago
plugins Fix quality flaws 10 years ago
sonar-application Fix quality flaws 10 years ago
sonar-batch Fix quality flaws 10 years ago
sonar-batch-maven-compat Continue move from hamcrest to fest-assert 10 years ago
sonar-check-api SONAR-5369 Rename DB column RULES.CARDINALITY to RULES.IS_TEMPLATE 10 years ago
sonar-colorizer Upgrade hamcrest and fix conflicts with JUnit and Mockito 10 years ago
sonar-core Fix some quality flaws 10 years ago
sonar-deprecated Upgrade hamcrest and fix conflicts with JUnit and Mockito 10 years ago
sonar-duplications Fic compatibility of hamcrest with java 6 10 years ago
sonar-graph Upgrade to 4.4-SNAPSHOT 10 years ago
sonar-home Upgrade hamcrest and fix conflicts with JUnit and Mockito 10 years ago
sonar-java-api Upgrade hamcrest and fix conflicts with JUnit and Mockito 10 years ago
sonar-markdown Fix quality flaws 10 years ago
sonar-maven-plugin Upgrade hamcrest and fix conflicts with JUnit and Mockito 10 years ago
sonar-maven3-plugin Upgrade to 4.4-SNAPSHOT 10 years ago
sonar-plugin-api Fix quality flaws 10 years ago
sonar-server Fix some quality flaws 10 years ago
sonar-testing-harness Upgrade hamcrest and fix conflicts with JUnit and Mockito 10 years ago
sonar-ws-client Fix some quality flaws 10 years ago
.gitattributes Tests should be independent from EOL in resources 13 years ago
.gitignore Ignore Eclipse builder configuration directory 10 years ago
.mailmap .mailmap file to resolve wrong author names 12 years ago
COPYING Fix crlf 13 years ago
KEYS Add Eric Hartmann's key 12 years ago
README.md Update README.md 10 years ago
build.sh Revert -> goal "clean" is back in build/quick-build scripts 10 years ago
copyright.txt Update copyright headers (replace 2013 by 2014) 10 years ago
format-headers.sh Add format-headers.sh, just to remind "mvn license:format" 10 years ago
pom.xml fix version conflict 10 years ago
push.sh Little Goody for OS X users ;) 10 years ago
quick-build.sh SONAR-5216 Rename new metric profiles -> quality_profiles 10 years ago
run.sh Added test with JSON assertion in RuleWS 10 years ago
start.sh start-mac.sh and stop-mac.sh are renamed start/stop.sh as they support linux 10 years ago
stop.sh start-mac.sh and stop-mac.sh are renamed start/stop.sh as they support linux 10 years ago
third-party-licenses.sh Add third-party-licenses.sh 10 years ago

README.md

SonarQube

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

Build

  • Install JDK 6 or greater
  • Install Maven 3.0.5 or greater
  • Execute build.sh. 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