RuboCop // Docs
Home
Style Guides
Ruby Rails RSpec Minitest
API Docs
Projects
RuboCop RuboCop AST RuboCop Capybara RuboCop factory_bot RuboCop Minitest RuboCop Performance RuboCop Rails RuboCop Rake RuboCop RSpec
Community
GitHub Org Chat (Gitter) Open Collective

RuboCop Rails

    • Home
    • Installation
    • Usage
    • Cops
    • Cops Documentation
      • Rails
RuboCop Rails 2.16
  • RuboCop
    • default
    • 1.57
    • 1.56
    • 1.55
    • 1.54
    • 1.53
    • 1.52
    • 1.51
    • 1.50
    • 1.49
    • 1.48
    • 1.47
    • 1.46
    • 1.45
    • 1.44
    • 1.43
    • 1.42
    • 1.41
    • 1.40
    • 1.0
  • RuboCop AST
    • 1.30
    • 1.12
    • 1.11
    • 1.10
    • 1.9
    • 1.8
    • 1.7
    • 1.6
    • 1.5
    • 1.4
    • 1.3
    • 1.2
    • 1.1
    • 1.0
  • RuboCop Capybara
    • default
    • 2.19
    • 2.18
    • 2.17
  • RuboCop factory_bot
    • default
    • 2.24
    • 2.23
    • 2.22
  • RuboCop Minitest
    • default
    • 0.33
    • 0.32
    • 0.31
    • 0.30
    • 0.29
    • 0.28
    • 0.27
    • 0.26
    • 0.25
  • RuboCop Packaging
    • master
  • RuboCop Performance
    • default
    • 1.19
    • 1.18
    • 1.17
    • 1.16
    • 1.15
    • 1.14
    • 1.13
    • 1.12
  • RuboCop Rails
    • default
    • 2.22
    • 2.21
    • 2.20
    • 2.19
    • 2.18
    • 2.17
    • 2.16
    • 2.15
    • 2.14
  • RuboCop RSpec
    • default
    • 2.25
    • 2.24
    • 2.23
    • 2.22
    • 2.21
    • 2.20
    • 2.19
    • 2.18
    • 2.17
    • 1.44
  • RuboCop Rails
  • Home
default 2.22 2.21 2.20 2.19 2.18 2.17 2.16 2.15 2.14
Edit this Page

RuboCop Rails

A RuboCop extension focused on enforcing Rails best practices and coding conventions.

It’s based on the community-driven Rails style guide.

Installation

Copyright (C) 2012-2023 Bozhidar Batsov and RuboCop contributors.

Except where otherwise noted, docs.rubocop.org is licensed under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0).