{"repo":"rubocop/rubocop-rails","free":true,"listed":false,"github":"https://github.com/rubocop/rubocop-rails","clone":"git clone https://github.com/rubocop/rubocop-rails.git","description":"A RuboCop extension focused on enforcing Rails best practices and coding conventions.","language":"Ruby","stars":875,"topics":["ruby","rubocop","linter","static-code-analysis","code-formatter","rails","hacktoberfest"],"license":"MIT","category":"dev-tools","readme_excerpt":"RuboCop Rails A RuboCop extension focused on enforcing Rails best practices and coding conventions. [!IMPORTANT] This repository manages rubocop-rails gem ( = 2.0.0). rubocop-rails gem ( [!NOTE] The plugin system is supported in RuboCop 1.72+. In earlier versions, use require instead of plugins . Command line Rake task RuboCop Rails configuration The following settings specific to RuboCop Rails can be configured in .rubocop.yml . AllCops: TargetRailsVersion What version of Rails is the inspected code using? If a value is specified for TargetRailsVersion then it is used. Acceptable values are specified as a float (e.g., 7.2); the patch version of Rails should not be included. If TargetRailsVersion is not set, RuboCop will parse the Gemfile.lock or gems.locked file to find the version of Rails that has been bound to the application. If neither of those files exist, RuboCop will use Rails 5.0 as the default. AllCops: MigratedSchemaVersion By specifying the MigratedSchemaVersion option, migration files that have already been run can be ignored. When MigratedSchemaVersion: '20241225000000' is set, migration files lower than or equal to '20241225000000' will be ignored. For example, to ignore db/migrate/20241225000000 create articles.rb and earlier migrations you would configure it the following way: This prevents inspecting schema settings for already applied migration files. Changing already applied migrations should be avoided because it can lead to the schema getting out of syn","default_branch":null,"files":null,"tree":[],"storefront":"/r/rubocop","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rubocop/rubocop-rails/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}