Rubocop

Ruby Linter

RuboCop is a Ruby static code analyzer (a.k.a. linter) and code formatter. Out of the box it will enforce many of the guidelines outlined in the community Ruby Style Guidearrow-up-right.

Installation

Configuration

Rubocop configuration is saved in a .rubocop.yml file. Check the official documentationarrow-up-right for the file syntax or available settings.

Usage

In order to have live linting in your text editor, the use of a rubocop integration is strongly encouraged, i.e. see https://github.com/SublimeLinter/SublimeLinter-rubocoparrow-up-right for Sublime Text 3.

Last updated

Was this helpful?