sonar-scanner-npm icon indicating copy to clipboard operation
sonar-scanner-npm copied to clipboard

Usage with grunt?

Open Jaff opened this issue 3 years ago • 2 comments

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?

Jaff avatar Oct 07 '20 19:10 Jaff

Nobody has used this with grunt?

Jaff avatar Oct 20 '20 00:10 Jaff

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"

egore avatar Jan 08 '21 12:01 egore

Hey guys, this seems to be solved for now. Feel free to reopen if anything new comes up.

gabssnake avatar Sep 26 '22 19:09 gabssnake