Skip to content
This repository has been archived by the owner on Jul 8, 2019. It is now read-only.

Commit

Permalink
Added full example of project configuration (#83)
Browse files Browse the repository at this point in the history
This will help people who are not yet familiar with Sonar, to quickly find all the configuration options they need.
  • Loading branch information
marklagendijk authored and Pablissimo committed Jan 5, 2017
1 parent a105f2f commit cd8889c
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,25 @@ It's presented only for the interested, and the brave.

##Configuration

###Global configuration
###Example project configuration
This is an example of what a project configuration file (`sonar-project.properties`) could look like:
```
sonar.projectKey=company:my-application
sonar.projectName=My Application
sonar.projectVersion=1.0
sonar.sourceEncoding=UTF-8
sonar.sources=src/app
sonar.exclusions=**/node_modules/**,**/*.spec.ts
sonar.tests=src/app
sonar.test.inclusions=**/*.spec.ts
sonar.ts.tslintconfigpath=tslint.json
sonar.ts.lcov.reportpath=test-results/coverage/coverage.lcov
```
- See the [Analysis Parameters](http://docs.sonarqube.org/display/SONAR/Analysis+Parameters) documentation page for general configuration options.
- See the [Narrowing the Focus](http://docs.sonarqube.org/display/SONAR/Narrowing+the+Focus) documentation page for configuration options related to which files to include.
- See the rest of this README for the SonarTsPlugin specific configuration options.

###Global configuration options

<table>
<thead>
Expand All @@ -71,7 +89,7 @@ It's presented only for the interested, and the brave.
</tbody>
</table>

###Project-level configuration
###Project-level configuration options

<table>
<thead>
Expand Down

0 comments on commit cd8889c

Please sign in to comment.