Skip to content

Instantly share code, notes, and snippets.

@spikeheap
Last active January 4, 2019 04:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spikeheap/7597847 to your computer and use it in GitHub Desktop.
Save spikeheap/7597847 to your computer and use it in GitHub Desktop.
# A sample sonar-runner.properties file to test Groovy and Javascript in a Grails project # Note that the blank projectBaseDir properties are necessary otherwise Sonar infers # the directory name from the module name, which doesn't apply here.
# A sample sonar-runner.properties file to test Groovy and Javascript in a Grails project
# Note that the blank projectBaseDir properties are necessary otherwise Sonar infers
# the directory name from the module name, which doesn't apply here.
#
# Author: Ryan Brooks (ryan.brooks@ndm.ox.ac.uk)
# required metadata
sonar.projectKey=com.example
sonar.projectName=My Project
sonar.projectVersion=0.1
# optional description
sonar.projectDescription=A description of the ace thing I'm building
sonar.dynamicAnalysis=reuseReports
sonar.surefire.reportsPath=target/test-reports
sonar.cobertura.reportPath=target/test-reports/cobertura/coverage.xml
# List of the module identifiers, Add "java" here if you need it
sonar.modules=groovy,javascript
# Properties can obviously be overriden for
# each module - just prefix them with the module ID
groovy.sonar.projectName=Groovy
groovy.sonar.language=grvy
groovy.sonar.sources=src/groovy,grails-app
groovy.sonar.tests=test/unit,test/integration
groovy.sonar.projectBaseDir=
# We don't have any Java source in the project at the moment
#java.sonar.projectName=Java
#java.sonar.language=java
#java.sonar.sources=src/java
#java.sonar.tests=test/unit,test/integration
#java.sonar.projectBaseDir=
javascript.sonar.projectName=JavaScript
javascript.sonar.language=js
javascript.sonar.sources=web-app/js
javascript.sonar.exclusions=vendor/**/*.js,lib/**
javascript.sonar.tests=test/js
javascript.sonar.projectBaseDir=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment