Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Julien Lancelot 42cab973f7 SONAR-4715 Compute the new "Technical Debt" metric před 10 roky
plugins SONAR-4715 Compute the new "Technical Debt" metric před 10 roky
sonar-application SONAR-4596 Don't install bundled plugins during upgrade před 10 roky
sonar-batch Fix quality flaws před 10 roky
sonar-batch-maven-compat Upgrade to 4.0-SNAPSHOT před 11 roky
sonar-channel Fix some quality flaws před 10 roky
sonar-check-api Upgrade to 4.0-SNAPSHOT před 11 roky
sonar-colorizer Revert "Add package-info files" před 10 roky
sonar-core SONAR-4724 Modify ghost detection query to avoid displaying provisioned resources před 10 roky
sonar-deprecated SONAR-4617 Refactoring away from Resource<T> před 10 roky
sonar-duplications Fix some quality flaws před 11 roky
sonar-graph Fix some quality flaws před 10 roky
sonar-home Fix some quality flaws před 10 roky
sonar-java-api Upgrade to 4.0-SNAPSHOT před 11 roky
sonar-markdown Fix some quality flaws před 11 roky
sonar-maven-plugin Fix quality flaws před 11 roky
sonar-maven3-plugin Upgrade to 4.0-SNAPSHOT před 11 roky
sonar-plugin-api SONAR-4715 Compute the new "Technical Debt" metric před 10 roky
sonar-server SONAR-4715 Compute the new "Technical Debt" metric před 10 roky
sonar-squid Fix some quality flaws před 10 roky
sonar-testing-harness Fix some quality flaws před 10 roky
sonar-ws-client SONAR-4694 Allow project permissions management from the permission web service před 10 roky
.gitattributes Tests should be independent from EOL in resources před 13 roky
.gitignore Complete .gitignore před 11 roky
.mailmap .mailmap file to resolve wrong author names před 12 roky
COPYING Fix crlf před 13 roky
KEYS Add Eric Hartmann's key před 12 roky
README.md Complete build section of readme před 10 roky
copyright.txt Update copyright headers před 11 roky
pom.xml SONAR-4045 downgrade to jruby 1.7.3 před 10 roky
push.sh Add unbreakable build script for mac před 12 roky
quick-build.bat Skip sanity checks in dev profile před 12 roky
quick-build.sh Skip sanity checks in dev profile před 12 roky
start-mac-h2.sh Forgot these files during H2 migration před 12 roky

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/sonar.git

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

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

Build

  • Install JDK 6 or greater
  • Install Maven 3.0.5 or greater
  • Execute mvn clean install. To quickly build in development environment, the script quick-build.sh does not execute unit tests and compile GWT components for Firefox/Chrome only.
  • ZIP file of application is generated in 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/derby-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

Log All Server SQL Requests

Download log4jdbc4-1.2.jar from http://log4jdbc.googlecode.com/files/log4jdbc4-1.2.jar in $SONAR_HOME/war/sonar-server/WEB-INF/lib/log4jdbc4-1.2.jar, and edit conf/logback.xml:

<logger name="jdbc.sqltiming">
  <level value="OFF"/>
  <appender-ref ref="PROFILING_FILE"/>
</logger>
<logger name="jdbc.connection">
    <level value="INFO"/>
    <appender-ref ref="PROFILING_FILE"/>
</logger>
<logger name="jdbc.audit">
    <level value="OFF"/>
    <appender-ref ref="PROFILING_FILE"/>
</logger>
<logger name="jdbc.resultset">
    <level value="OFF"/>
    <appender-ref ref="PROFILING_FILE"/>
</logger>
<logger name="jdbc.sqlonly">
    <level value="OFF"/>
    <appender-ref ref="PROFILING_FILE"/>
</logger>

License

Copyright 2008-2013 SonarSource.

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