[ANN] rails_best_practices 1.6.0 released

flyerhzm Posted by flyerhzm on December 10, 2011

Comments

I just released rails_best_practices 1.6.0, the changes are as follows:

1. add remove unused methods in helpers check

2. add helper prepare

3. add mercurial support

4. add option --output-file OUTPUT_FILE to specify output html file for the analyzing result

5. add option --silent not to display progress bar in console

6. add option --template TEMPLATE to customize output erb template

Check it here https://github.com/flyerhzm/rails_best_practices

[ANN] rails_best_practices 1.5.0 released

flyerhzm Posted by flyerhzm on November 26, 2011

Comments

I just released rails_best_practices 1.5.0, the changes are as follows:

1. besides activerecord, it supports mongoid as well.

2. support cells gem, treat it as controllers/views as well.

3. better erb parser, avoid parser errors.

4. use guard instead of watchr for automated test.

5. fix some errors in RoutePrepare

Check it here https://github.com/flyerhzm/rails_best_practices

[ANN] rails_best_practices 1.4.0 released

flyerhzm Posted by flyerhzm on November 20, 2011

Comments

I just released rails_best_practices 1.4.0,  the changes are as follows:

1. add RemoveUnusedMethodsInControllersCheck, which can detect the unused methods in controllers.

2. add RoutePrepare, which parses the routes in prepare process.

3. abstract Core::Check::Callable module, which adds callbacks to mark methods are used.

4. interesting_nodes and interesting_files are declarative instead of methods now.

class RemoveUnusedMethodsInControllers
  interesting_nodes :class
  interesting_files CONTROLLER_FILES
end

Check it here https://github.com/flyerhzm/rails_best_practices

[ANN] rails_best_practices 1.3.0 released

flyerhzm Posted by flyerhzm on November 13, 2011

Comments

I just released rails_best_practices 1.3.0,  the changes are as follows:

1. Parser *.rake files as well.

2. Add --with-git option to display git commit and git author in html output.

3. Can parse :only => :none and :except => :all for resources routes.

4. Enable RemoveUnusedMethodsInModelsCheck by default, which works fine for my company's project.

Check it here https://github.com/flyerhzm/rails_best_practices

[ANN] rails_best_practices 1.2.0 released

flyerhzm Posted by flyerhzm on October 16, 2011

Comments

I just released rails_best_practices 1.2.0,  the changes are as follows:

1. Add Filter on HTML output, you can check/uncheck the check and the corresponding violations will display or not.

2. Add on_complete callback that allow to check the violations after reviewing all the source codes.

3. Fix shallow routes for NeedlessDeepNestingCheck.

4. Add RemoveUnusedMethodsInModelsCheck, it can find out unused methods, named_scope/scope in models, it's still an experiment and will not enabled by default.

Check it here https://github.com/flyerhzm/rails_best_practices