
▲ 9 r/rubyonrails
I built a CLI that analyzes Rails apps and gives a health score
I’ve been working on a small gem called RailsForge, and I recently cut it down to something much more focused.
The idea is simple:
railsforge doctor
It scans a Rails app and outputs a health report with:
- severity-ranked issues (critical → info)
- file + line references
- actionable suggestions
- a score from 0–100
Example output looks like:
Score: 72/100
Critical
app/models/user.rb:42 — Raw SQL query detected
→ Use parameterized ActiveRecord queries
High
app/controllers/posts_controller.rb:88 — N+1 query detected
→ Use includes(:comments)
It also has a JSON mode so you can use it in CI:
railsforge doctor --format=json
And a simple diff command to catch new issues in PRs:
railsforge diff baseline.json current.json
Repo: https://github.com/mfifth/RailsForge
Would appreciate any honest feedback, especially from people maintaining larger or older Rails apps.
u/zZaphon — 10 days ago