Skip to content

Commit

Permalink
sonar support
Browse files Browse the repository at this point in the history
  • Loading branch information
Lubos Kosco authored and Lubos Kosco committed Mar 5, 2014
1 parent f536c9a commit b6463b5
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,27 @@ Output is stored in the jdepend directory:
$ ls jdepend/
report.txt report.xml

8.7 Using SonarQube
-------------------

Use a sonar runner with included sonar-project.properties properties,
e.g. using bash:

$ cd <checkout_dir> # it has to contain sonar-project.properties!
$ export SONAR_RUNNER_OPTS="-Xmx768m -XX:MaxPermSize=256m"
$ export SERVERIP=10.163.26.78
$ ~//Projects/sonar-runner-2.3/bin/sonar-runner \
-Dsonar.host.url=http://${SERVERIP}:9000
-Dsonar.jdbc.url=jdbc:h2:tcp://${SERVERIP}:9092/sonar

8.8 Using Travis CI
-------------------

Please see .travis.yml, if your branch has this file,
you should be able to connect your Github to Travis CI.
OpenGroks Travis is here: https://travis-ci.org/OpenGrok/OpenGrok


9. Tuning OpenGrok for large code bases
---------------------------------------

Expand Down
29 changes: 29 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Required metadata
sonar.projectKey=OpenGrok
sonar.projectName=OpenGrok analyzed with the SonarQube Runner
sonar.projectVersion=1.0

# Comma-separated paths to directories with sources (required)
sonar.sources=src
#,generatedsrc
sonar.binaries=build,dist

sonar.libraries=dist/*.jar,dist/lib/*.jar

# Language
sonar.language=java

#pmd
sonar.java.source=1.7

#findbugs
sonar.findbugs.excludesFilters=tools/findbugs_filter.xml

#code coverage
sonar.dynamicAnalysis=reuseReports
sonar.junit.reportsPath=build/test/results/
sonar.java.coveragePlugin=emma
sonar.emma.reportPath=coverage/

# Encoding of the source files
sonar.sourceEncoding=UTF-8

0 comments on commit b6463b5

Please sign in to comment.