0.3.0 • Published 8 years ago

grunt-contrib-rubylint v0.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

grunt-contrib-rubylint

Build Status Gitter

Grunt task for validating Ruby code.

Getting started

You need to have the ruby-lint command available on your system.

gem install ruby-lint

This plugin requires Grunt ~0.4.0

npm install grunt-contrib-rubylint --save-dev
grunt.loadNpmTasks('grunt-contrib-rubylint');

Usage

grunt.initConfig({
  rubylint: {
    options: {
      levels: 'error'
    },

    src: ['**/*.{rb,ru}']
  }
});

grunt.loadNpmTasks('grunt-contrib-rubylint');

Options

force

Type: Boolean Default value: false

Set force to true to report errors but not fail the task.

levels

Type: String Default value: error

Set levels to one of the following:

  • error
  • info
  • warning

analysis

Type: Object Default value: []

Set analysis to true to report errors but not fail the task.

If no value is set, all classes are used.

Else, pick the classes you want to use in the following list:

  • argument_amount
  • pedantics
  • shadowing_variables
  • undefined_methods
  • undefined_variables
  • unused_variables
  • useless_equality_checks

License

This package is published under the MIT license.

0.3.0

8 years ago

0.2.1

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago