1.2.1 • Published 8 years ago

grunt-codeclimate-reporter v1.2.1

Weekly downloads
21
License
-
Repository
github
Last release
8 years ago

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).