grunt-sonar-runner
Advanced tools
Comparing version 2.3.1 to 2.3.2
{ | ||
"name": "grunt-sonar-runner", | ||
"description": "Sonar Analysis Runner from grunt. The major version is kept in sync with sonar runner distribution version.", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"homepage": "https://github.com/skhatri/grunt-sonar-runner", | ||
@@ -30,4 +30,4 @@ "author": { | ||
"devDependencies": { | ||
"grunt-contrib-jshint": "~0.6.0", | ||
"grunt-contrib-clean": "~0.4.0", | ||
"grunt-contrib-jshint": "~0.8.0", | ||
"grunt-contrib-clean": "~0.5.0", | ||
"grunt": "~0.4.2", | ||
@@ -43,2 +43,2 @@ "grunt-mocha-test": "~0.8.2", | ||
] | ||
} | ||
} |
@@ -5,2 +5,4 @@ # grunt-sonar-runner | ||
[![Build Status](https://travis-ci.org/skhatri/grunt-sonar-runner.png)](https://travis-ci.org/skhatri/grunt-sonar-runner) [![NPM version](https://badge.fury.io/js/grunt-sonar-runner.png)](http://npmjs.org/package/grunt-sonar-runner) | ||
[![Dependency Status](https://david-dm.org/skhatri/grunt-sonar-runner.png)](https://david-dm.org/skhatri/grunt-sonar-runner) | ||
## Getting Started | ||
@@ -71,2 +73,9 @@ This plugin requires Grunt `~0.4.2` | ||
#### options.dryRun | ||
Type: `Boolean` | ||
Default value: 'false' | ||
A flag to run it in dry mode. The configuration is checked but not execute | ||
#### options.sonar.host.url | ||
@@ -132,4 +141,18 @@ Type: `String` | ||
#### options.sonar.javascript.lcov.reportPath | ||
Type: `String` | ||
Default value: - | ||
Path to the LCOV Code Coverage File to be used in Sonar | ||
#### options.sonar.exclusions | ||
Type: `[String]` | ||
Default value: null | ||
A list of directories and files that should be excluded from Sonar analysis. A list of wildcards that can be use can be found [here](http://docs.codehaus.org/display/SONAR/Narrowing+the+Focus#NarrowingtheFocus-Patterns). | ||
### Usage Examples | ||
@@ -146,2 +169,3 @@ | ||
separator: '\n', | ||
dryRun: false, | ||
sonar: { | ||
@@ -148,0 +172,0 @@ host: { |
@@ -50,2 +50,5 @@ /* | ||
options.sonar.host = options.sonar.host || {url: 'http://localhost:9000'}; | ||
if (options.sonar.exclusions !== undefined) { | ||
options.sonar.exclusions = options.sonar.exclusions.join(','); | ||
} | ||
@@ -52,0 +55,0 @@ var effectiveOptions = Object.create(null); |
320234
194
196