RuboCop

Web Sitehttps://github.com/bbatsov/rubocop
LanguageRuby

Getting Started

To start using RuboCop, enable it in repository setting.

If you want customization, use standard RuboCop config files, rubocop.yml.

Versioning

If your Gemfile.lock contains dependency to RuboCop, SideCI uses the locked version. Otherwise, SideCI assumes you are using the latest version of RuboCop.

RuboCop often introduces incompatibilities on its configuration, and we strongly recomment having it in your Gemfile.lock.

Default Configuration

SideCI uses our recommended configuration if your repository does not have .rubocop.yml. The configuration is available as a RubyGem called MeowCop.

Configuration via sideci.yml

Example settings for RuboCop under rubocop.

linter:
  rubocop:
    config: .myrubocop.yml

options

This option controls command line options given to rubocop.

config

This option controls a configuration file. RuboCop uses your .rubocop.yml on root directory of your project by default. Thus you need not use this option when you have named the file .rubocop.yml. But if your .rubocop.yml has been put in a directory except for root directory, you should use this option like below:

linter:
  rubocop:
    config: lint_yml/.rubocop.yml