rails_best_practices
https://github.com/flyerhzm/rails_best_practices
Ruby
a code metric tool for rails projects
RailsBestPractices::Analyzer#analyze
Analyze rails codes. there are two steps to check rails codes, 1. prepare process, check all model and mailer files. 2. review process, check all files. if there are violations to rails best practices, output them.
Edit
git clone [email protected]:flyerhzm/rails_best_practices.git
cd rails_best_practices
open lib/rails_best_practices/analyzer.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-RailsBestPractices--Analyzer-analyze-for-pr
# Commit to gitgit add lib/rails_best_practices/analyzer.rbgit commit -m "better docs for RailsBestPractices::Analyzer#analyze"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-RailsBestPractices--Analyzer-analyze-for-pr
hub pull-request
# Celebrate!