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.

Recent Issues and Stats

Check the latest issues and stats found by RuboCop on recent reviews by SourceLevel!

Available channels

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

Caveats

Rubocop Inheritance

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

Using Extensions

Each channel support some extensions specified above, so you can use regular syntax in .rubocop.yml file to use it. If you try to use an unsupported extension for used channel, the extension will be ignored.


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