Được TopGit lập chỉ mục từ metadata GitHub: flyerhzm/rails_best_practices có 4.2k sao, viết chủ yếu bằng Ruby. a code metric tool for rails projects
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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:
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/flyerhzm/rails_best_practices là nguồn chính thức.
flyerhzm/rails_best_practices có bao nhiêu sao?
flyerhzm/rails_best_practices có 4.2k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/flyerhzm/rails_best_practices. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
flyerhzm/rails_best_practices có phải mã nguồn mở không?
Có — flyerhzm/rails_best_practices phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/flyerhzm/rails_best_practices.
flyerhzm/rails_best_practices có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho flyerhzm/rails_best_practices. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
flyerhzm/rails_best_practices có trang demo không?
Dự án có trang chủ ở http://rails-bestpractices.com. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
flyerhzm/rails_best_practices còn đang phát triển không?
Commit gần nhất trên flyerhzm/rails_best_practices là 4 tháng trước (theo timestamp GitHub). Repo có 272 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc rails_best_practices có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về rails_best_practices.