# flyerhzm/rails_best_practices

a code metric tool for rails projects

Repository: https://github.com/flyerhzm/rails_best_practices
Canonical: https://ross.abutalabs.com/products/rails_best_practices
Homepage: http://rails-bestpractices.com
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-04-23T03:15:35+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 78, release rhythm 35, longevity 100
- inputs: {"age_days": 6147, "days_push": 132, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4161, forks 271 (observed 2026-08-28T04:08:37.677773+00:00)

## What it is
rails_best_practices is a code metric tool that checks the quality of Rails code against a set of best-practice rules. It runs from the command line over a Rails project and reports violations, with support for multiple ORMs and template engines.

## Use cases
- check my rails app for code smells and best practice violations
- run static analysis on a ruby on rails codebase
- generate an html report of rails code quality issues
- enforce rails coding conventions in ci
- find bad practices like default_scope or unchecked save calls in rails models

## When to choose
- you maintain a ruby on rails project and want automated best-practice checks
- you want a simple command-line code metric tool with html or plain text output
- your project uses activerecord, mongoid, or mongomapper with erb, haml, slim, or rabl templates

## When to avoid
- your project is not a rails application
- you need general-purpose ruby linting rather than rails-specific best practices (use rubocop instead)
- you need actively evolving rule sets or modern rails version support guarantees

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: linter, developer-tools, code-review
- domain: developer-tools, web-development, testing
- platform: ruby, cli, cross-platform
- tags: rails, code-quality, static-analysis, code-metrics, ruby-gem

## Member repositories
- flyerhzm/rails_best_practices (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:37.677773+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-29T18:22:48.761276+00:00, confidence not recorded.
  - readme: https://github.com/flyerhzm/rails_best_practices (fetched 2026-08-28T04:08:37.677773+00:00, sha 7f1f944e3e9b)
  - homepage: http://rails-bestpractices.com (fetched 2026-08-29T09:13:33.201477+00:00, sha 3610bdde1df0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
