sonar-scanner-npm
sonar-scanner-npm copied to clipboard
Usage with grunt?
I've inherited a project using grunt, and wish to add your scanner. I had no success with the https://github.com/skhatri/grunt-sonar-runner (4 years old!) so I thought I could use yours. Any suggestions for configuration setup?
Nobody has used this with grunt?
I've been using it like this in Gruntfile.js:
var sonar = require('sonarqube-scanner');
module.exports = function (grunt) {
grunt.initConfig({...});
grunt.registerTask('sonar', function() {
sonar({
serverUrl: '...',
options: {...}
});
});
};
Afterwards you call it via "grunt sonar"
Hey guys, this seems to be solved for now. Feel free to reopen if anything new comes up.