# rubocop/rubocop

A Ruby static code analyzer and formatter, based on the community Ruby style guide.

Repository: https://github.com/rubocop/rubocop
Canonical: https://ross.abutalabs.com/products/rubocop
Homepage: https://docs.rubocop.org
Language: Ruby
License: MIT
License Family: permissive
Topics: ruby, rubocop, linter, static-code-analysis, code-formatter, hacktoberfest
Last push: 2026-08-26T18:24:16+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 5247, "days_push": 7, "days_rel": 9, "gap_med": 8.5, "n_releases_24m": 57}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12899, forks 3131 (observed 2026-08-28T04:11:00.055433+00:00)

## What it is
RuboCop is a Ruby static code analyzer (linter) and code formatter that enforces the community Ruby Style Guide. It can automatically fix many offenses and is highly configurable and extensible with custom cops and plugins.

## Use cases
- lint ruby code
- auto-format ruby files
- enforce a ruby style guide across a team
- automatically fix style offenses in a ruby project
- integrate ruby linting into CI
- run a ruby linter from my editor via LSP
- customize linting rules for different parts of a codebase

## When to choose
- you write Ruby and want consistent, community-standard code style
- you want a linter and formatter in one tool with autocorrection
- you need editor integration via LSP or CI-friendly output formatters
- you want an extensible linter with plugins like rubocop-rails and rubocop-rspec

## When to avoid
- you lint languages other than Ruby
- you want a formatter with a radically different style philosophy than the Ruby community guide
- you need runtime type checking or full static type analysis rather than style linting

## Facets
- artifact type: cli-tool
- maturity: stable
- function: linter, formatter, static-site-generator, cli, developer-tools
- domain: developer-tools, programming-languages, testing
- platform: ruby, cli, cross-platform
- tags: ruby, static-code-analysis, code-style, autocorrection, lsp, style-guide, code-quality, automation

## Member repositories
- rubocop/rubocop (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:00.055433+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:13:42.141073+00:00, confidence not recorded.
  - readme: https://github.com/rubocop/rubocop (fetched 2026-08-28T04:11:00.055433+00:00, sha 8f5caff23503)
  - homepage: https://docs.rubocop.org (fetched 2026-08-29T08:09:42.941479+00:00, sha 7d55144f9521)
  - site_page: https://docs.rubocop.org/rubocop/latest/index.html (fetched 2026-08-29T08:09:42.944017+00:00, sha dea0b2fe95ec)
- Data as of 2026-08-30T08:39:29.467469+00:00.
