TopGit tracks flyerhzm/rails_best_practices on GitHub. The project has 4.2k stars. a code metric tool for rails projects
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
rails_best_practices is a code metric tool to check the quality of Rails code.
It supports the following ORM/ODMs:
activerecord
mongoid
mongomapper
And the following template engines:
erb
haml
slim
rabl
rails_best_practices supports Ruby 1.9.3 or newer.
External Introduction
Ruby5 - Episode #253
Railscasts - #252 Metrics Metrics Metrics
Usage
At the root directory of a Rails app, run:
rails_best_practices .
Or for HTML output:
rails_best_practices -f html .
By default rails_best_practices will parse code in the vendor, spec, test and features directories.
Excluding directories
To exclude a directory simply call it with -e or --exclude:
rails_best_practices -e "db/migrate" .
To exclude multiple directories, separate them with comma:
rails_best_practices -e "db/migrate,vendor" .
Other command-line options
To see the full list of command-line options, run:
$ rails_best_practices -h
Usage: rails_best_practices [options]
-d, --debug Debug mode
-f, --format FORMAT output format
--without-color only output plain text without color
--with-textmate open file by textmate in html format
--with-vscode open file by vscode in html format
--with-sublime open file by sublime in html format (requires https://github.com/asuth/subl-handler)
--with-mvim open file by mvim in html format
--with-github GITHUB_NAME open file on github in html format. GITHUB_NAME is like railsbp/rails-bestpractices OR full URL to GitHub:FI repo
--with-hg display hg commit and username, only support html format
--with-git display git commit and username, only support html format
--template TEMPLATE customize erb template
--output-file OUTPUT_FILE output html file for the analyzing result
--silent silent mode
--vendor include vendor files
--spec include spec files
--test include test files
--features include features files
-x, --exclude PATTERNS Don't analyze files matching a pattern
(comma-separated regexp list)
-o, --only PATTERNS analyze files only matching a pattern
(comma-separated regexp list)
-g, --generate Generate configuration yaml
-c, --config CONFIG_PATH configuration file location (defaults to config/rails_best_practices.yml)
-v, --version Show this version
-h, --help Show this message
You can remove or comment a review to disable it, and you can change the options.
You can apply the ignored_files option on any rule by giving a regexp or array of regexps describing the path of the files you don't want to be checked:
TopGit's last sync did not record any GitHub topics for flyerhzm/rails_best_practices. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on flyerhzm/rails_best_practices?
The most recent commit recorded on flyerhzm/rails_best_practices was 4 months ago, based on the GitHub push timestamp. The repository has 272 forks — one of the better signals of community interest.
How many stars does flyerhzm/rails_best_practices have?
flyerhzm/rails_best_practices has 4.2k GitHub stars — refresh the page for the live number, or check github.com/flyerhzm/rails_best_practices. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is flyerhzm/rails_best_practices open source?
Yes — flyerhzm/rails_best_practices ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/flyerhzm/rails_best_practices.
Where can I see flyerhzm/rails_best_practices in action?
The project maintains a homepage at http://rails-bestpractices.com. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about flyerhzm/rails_best_practices?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/flyerhzm/rails_best_practices is the definitive source.
Read full README in the tab above.
Is rails_best_practices worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of rails_best_practices.