airbnb/ruby
58.1
Adequate · 28 September 2026
1k
lines of production code
Ruby
primary language
2
measurements over time
What this system is
rubocop-airbnb is a Ruby gem that enforces Airbnb's coding standards by bundling a comprehensive suite of RuboCop cops for style, security, and Rails best practices. It integrates with RuboCop's modern plugin architecture to automatically load dependent extensions like rubocop-rails and rubocop-rspec, ensuring consistent linting across projects without manual configuration.
Features
Introduce Airbnb RuboCop style guide cops
This release adds a comprehensive suite of RuboCop cops enforcing the Airbnb Ruby style guide. Key additions include checks for Rails autoloading compliance (ensuring classes, modules, constants, and methods are defined in files matching their names), factory bot best practices (requiring string class names and lazy attribute evaluation to speed up test runs), and RSpec hygiene (preventing namespace pollution in specs and unsafe environment modifications). The suite also enforces general Ruby style rules such as avoiding default positional arguments, restricting modifier conditionals, and banning unsafe YAML/Marshal methods that could lead to remote code execution.
rubocop-airbnb/lib/rubocop/cop · high confidence
Behavioural changes
Adopt RuboCop plugin system and update dependencies
The gem now uses RuboCop's native plugin system (supported in RuboCop 1.72+) instead of the legacy \require\ method, requiring users to update their \.rubocop.yml\ configuration to include \plugins: - rubocop-airbnb\. This release also bumps the minimum required versions for RuboCop and its related gems (rubocop-performance, rubocop-rails, rubocop-rspec) and adds explicit dependencies for rubocop-capybara and rubocop-factory\_bot. Additionally, it fixes warnings caused by the renaming of the \Naming/PredicateName\ cop to \Naming/PredicatePrefix\ in RuboCop v1.76.0.
rubocop-airbnb · high confidence
RuboCop Airbnb adopts LintRoller plugin architecture
The library has been refactored to integrate with RuboCop's plugin system via LintRoller, replacing the previous loading mechanism. This change introduces a dedicated plugin class that registers the default configuration and an inflections module for string handling, enabling users to load the Airbnb style guide as a standard RuboCop plugin rather than through legacy methods.
rubocop-airbnb/lib/rubocop/airbnb · high confidence
RuboCop Airbnb gem now loads dependent RuboCop extensions automatically
The RuboCop Airbnb gem now explicitly requires the rubocop-performance and rubocop-rails gems upon initialization. This ensures that users of the Airbnb configuration automatically get the rules and behaviors from these popular RuboCop extensions without needing to manually add them to their own project configurations.
rubocop-airbnb/lib · high confidence
Test coverage
Added test coverage for Airbnb RuboCop cops
Added comprehensive RSpec test suites for the Airbnb RuboCop gem, covering cops such as ClassOrModuleDeclaredInWrongFile, ConstAssignedInWrongFile, ContinuationSlash, DefaultScope, FactoryAttrReferencesClass, FactoryClassUseString, MassAssignmentAccessibleModifier, ModuleMethodInWrongFile, NoTimeout, OptArgParameters, PhraseBundleKeys, RiskyActiverecordInvocation, RspecDescribeOrContextUnderNamespace, RspecEnvironmentModification, SimpleModifierConditional, SimpleUnless, SpecConstantAssignment, and UnsafeYamlMarshal. The tests verify that these cops correctly flag violations related to Rails autoloading, factory syntax, code style, and security risks, and include a spec helper to load the cops and configure RSpec expectations.
rubocop-airbnb/spec · high confidence
Dependencies
Introduce rubocop-airbnb gem with RuboCop 1.76 and lint\_roller plugin support
The rubocop-airbnb gem is introduced as a standalone package for Airbnb's custom code style and linting rules. It requires Ruby 2.7 or higher and integrates with RuboCop 1.76 via the lint\_roller plugin system. The gem bundles several RuboCop extensions including rubocop-capybara, rubocop-factory\_bot, rubocop-performance, rubocop-rails, and rubocop-rspec to enforce consistent coding standards across projects.
(dependencies) · high confidence
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 57 → 58 (+1.0)
- Rubric changed (rubric-2026.09.8 → rubric-2026.09.16) — scores are not directly comparable.
Lenses
- Code Health 100 → 100 (+0.0)
- Architecture 69 → 69 (+0.0)
- Maturity 46 → 46 (+0.0)
- Readiness 51 → 55 (+3.5)
- Security 98 → 99 (+0.4)
Resolved (1)
- Documentation: no installation or build instructions (README.md)
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
airbnb/ruby was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 28 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit a885a6a14ecfba85ff0100378c6583a915c37ca9 — the exact code this score is about.
- Scored under rubric-2026.09.16 — the same rubric and the same method as every other entry in this index.
- Measured by watchdog.canine.dev using codehealth-analyzer preprod-2d9048c36d26.