<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/rubocop-1-91-the-journey-to-2-0-begins-riimynmiu" -->

---
title: RuboCop 1.91: The Journey to 2.0 Begins | daily.dev
description: RuboCop 1.91 introduces a new opt-in --preview flag that lets users try out proposed RuboCop 2.0 defaults before the major release ships. The maintainer built...
canonical: https://daily.dev/posts/rubocop-1-91-the-journey-to-2-0-begins-riimynmiu
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: RuboCop 1.91: The Journey to 2.0 Begins | daily.dev
og:description: RuboCop 1.91 introduces a new opt-in --preview flag that lets users try out proposed RuboCop 2.0 defaults before the major release ships. The maintainer built...
og:url: https://daily.dev/posts/rubocop-1-91-the-journey-to-2-0-begins-riimynmiu
og:image: https://api.daily.dev/og/posts/riimyNmiU.png
og:image:alt: RuboCop 1.91: The Journey to 2.0 Begins
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# RuboCop 1.91: The Journey to 2.0 Begins

**[Meta Redux](https://daily.dev/sources/metaredux)** · 12 min read · 4 upvotes · 0 comments

## Summary

RuboCop 1.91 introduces a new opt-in --preview flag that lets users try out proposed RuboCop 2.0 defaults before the major release ships. The maintainer built a tool analyzing the 500 most-starred Ruby repos' .rubocop.yml configs to find which defaults people actually override, revealing that Style/Documentation is disabled by 53% of projects and most Metrics thresholds are widely overridden. Preview mode in 1.91 turns off the entire Metrics department, roughly two dozen contested Style/Naming/Layout cops, and adjusts EnforcedStyle defaults toward community norms, alongside a new FailLevel setting so only Lint/Security offenses fail CI by default. The release also adds --diff (preview autocorrections without touching files), --changed (lint only git-changed files), a SARIF formatter for GitHub code scanning, new directive syntax (rubocop:enable-next, rubocop:next), and numerous bug fixes.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://metaredux.com/posts/2026/09/11/rubocop-1-91.html>

## Questions this post answers

### How do I try out RuboCop 2.0's proposed default changes before it's released?

Run rubocop with the --preview flag, or set AllCops: Preview: true in your .rubocop.yml. This activates RuboCop 1.91's preview mode, which turns off the entire Metrics department, disables around two dozen contested Style, Naming, and Layout cops such as Style/Documentation and Style/GuardClause, and switches several EnforcedStyle defaults to match common community conventions like double_quotes for string literals.

_Ruby teams weighing RuboCop config changes can follow release breakdowns like this on daily.dev._

### How can I make RuboCop report style issues without failing my CI build?

Set AllCops: FailLevel: warning in the RuboCop 1.91 configuration, or pass --fail-level warning on the command line. With this setting, only Lint and Security department offenses (plus any cop you've manually bumped in severity) fail the build; other offenses still print but no longer turn CI red, since cop severities now default based on department.

_Developers tuning CI strictness for linters like RuboCop can track these config changes on daily.dev._

### What does the new --diff flag do in RuboCop 1.91?

The --diff flag prints a unified diff showing exactly what autocorrection would change, without modifying any files. It can be combined with --format quiet and piped into git apply (rubocop --diff --format quiet | git apply) to apply the fix locally, making it useful as a CI check that shows the exact patch needed in the build log.

_Engineers building lint-driven CI checks can follow tooling updates like RuboCop's on daily.dev._

## Similar posts on daily.dev

- [RuboCop 1.92: Agents Welcome](https://daily.dev/posts/rubocop-1-92-agents-welcome-hlocmovru) · Meta Redux · 0 upvotes · 0 comments
- [Linting Both Prose and Embedded Code with RuboCop](https://daily.dev/posts/linting-both-prose-and-embedded-code-with-rubocop-eshghuqmv) · RUBYLAND · 0 upvotes · 0 comments
- [The Era of Rust Rewrites: Porting RuboCop to Rust with AI](https://daily.dev/posts/the-era-of-rust-rewrites-porting-rubocop-to-rust-with-ai-r30rbguej) · Ruby Flow · 1 upvotes · 1 comments
- [Writing custom RuboCop rules in 2026—Martian Chronicles, Evil Martians’ team blog](https://daily.dev/posts/writing-custom-rubocop-rules-in-2026-martian-chronicles-evil-martians-team-blog-ucy58o2jj) · Martian Chronicles · 0 upvotes · 0 comments
- [Issue \#812: RuboCop goes project-wide with Rubydex — Ruby Weekly](https://daily.dev/posts/issue-812-rubocop-goes-project-wide-with-rubydex-ruby-weekly-hpeftuyzb) · Ruby Weekly · 1 upvotes · 0 comments

---

Tags: [#cicd](https://daily.dev/tags/cicd), [#ruby](https://daily.dev/tags/ruby), [#semantic-versioning](https://daily.dev/tags/semantic-versioning)

[View this post on daily.dev](https://daily.dev/posts/rubocop-1-91-the-journey-to-2-0-begins-riimynmiu)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"RuboCop 1.91: The Journey to 2.0 Begins","url":"https://daily.dev/posts/rubocop-1-91-the-journey-to-2-0-begins-riimynmiu","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/rubocop-1-91-the-journey-to-2-0-begins-riimynmiu"},"datePublished":"2026-09-11T05:53:47.188Z","dateModified":"2026-10-15T02:22:42.908Z","description":"RuboCop 1.91 introduces a new opt-in --preview flag that lets users try out proposed RuboCop 2.0 defaults before the major release ships. The maintainer built...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/dedf722536cd790a73f152e04476db6b?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/dedf722536cd790a73f152e04476db6b?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Meta Redux","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Meta Redux","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/553e6ad4c072454a986660a28a241343","url":"https://daily.dev/sources/metaredux"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/rubocop-1-91-the-journey-to-2-0-begins-riimynmiu","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cicd,ruby,semantic-versioning","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Meta Redux","item":"https://daily.dev/sources/metaredux"},{"@type":"ListItem","position":3,"name":"RuboCop 1.91: The Journey to 2.0 Begins"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/rubocop-1-91-the-journey-to-2-0-begins-riimynmiu#faq","mainEntity":[{"@type":"Question","name":"How do I try out RuboCop 2.0's proposed default changes before it's released?","acceptedAnswer":{"@type":"Answer","text":"Run rubocop with the --preview flag, or set AllCops: Preview: true in your .rubocop.yml. This activates RuboCop 1.91's preview mode, which turns off the entire Metrics department, disables around two dozen contested Style, Naming, and Layout cops such as Style/Documentation and Style/GuardClause, and switches several EnforcedStyle defaults to match common community conventions like double_quotes for string literals. Ruby teams weighing RuboCop config changes can follow release breakdowns like this on daily.dev."}},{"@type":"Question","name":"How can I make RuboCop report style issues without failing my CI build?","acceptedAnswer":{"@type":"Answer","text":"Set AllCops: FailLevel: warning in the RuboCop 1.91 configuration, or pass --fail-level warning on the command line. With this setting, only Lint and Security department offenses (plus any cop you've manually bumped in severity) fail the build; other offenses still print but no longer turn CI red, since cop severities now default based on department. Developers tuning CI strictness for linters like RuboCop can track these config changes on daily.dev."}},{"@type":"Question","name":"What does the new --diff flag do in RuboCop 1.91?","acceptedAnswer":{"@type":"Answer","text":"The --diff flag prints a unified diff showing exactly what autocorrection would change, without modifying any files. It can be combined with --format quiet and piped into git apply (rubocop --diff --format quiet | git apply) to apply the fix locally, making it useful as a CI check that shows the exact patch needed in the build log. Engineers building lint-driven CI checks can follow tooling updates like RuboCop's on daily.dev."}}]}
```

