grunt-codeclimate-reporter

Send your coverage to codeclimate.

Usage no npm install needed!

<script type="module">
  import gruntCodeclimateReporter from 'https://cdn.skypack.dev/grunt-codeclimate-reporter';
</script>

README

grunt-codeclimate-reporter

Send your coverage to codeclimate.

Build Status

Checkout gulp-codeclimate-reporter.

Install

npm install grunt-codeclimate-reporter --save-dev

Usage

Load task

Once the plugin has been installed, it may be enabled inside your Gruntfile.js with this line of JavaScript:

grunt.loadNpmTasks('grunt-codeclimate-reporter');

Define your target

grunt.initConfig({
  pkg: grunt.file.readJSON('package.json'),
  // ...
  codeclimate: {
    main: {
      options: {
        file: 'path/to/your/lcov.info',
        token: 'your_token',
        executable: 'path/to/executable' // leave blank to use the default executable
      }
    }
  }
  // ...
});

Note that, grunt-codeclimate-reporter is registered as a multi task. So it is required to define your sub task e.g. main (or something else).