A Ruby static code analyzer, based on the community Ruby style guide that can be configured through its various configuration options.

You can read more about it at https://github.com/bbatsov/rubocop.

How to enable RuboCop

Add the following to your .sourcelevel.yml file.

# .sourcelevel.yml
engines:
  rubocop:
    enabled: true

Engine configuration

You can learn how to configure RuboCop at https://github.com/bbatsov/rubocop#configuration.

Available channels

Want to know how to specify channel for your reviews? Check configuration instructions page.

Caveats

We only support Rubocop inheritance for files in a repository that is being reviewed. If you use a styleguide repository, you should copy this inherited file to the target repository, otherwise, you'll receive the following error:

engine rubocop:stable failed with status 2 and stderr
Configuration file not found: /code/**/.your-rubocop-inherited-file.yml

Need more help? Feel free to contact us via email. or chat.