[ANN] rails_best_practices 1.14.0 released

flyerhzm Posted by flyerhzm on July 21, 2013

Comments

I just released rails_best_practices 1.14.0, changes are as follows:

 

  1. add DefaultScopeIsEvil Check, http://rails-bestpractices.com/posts/806-default_scope-is-evil
  2. improve ProtectedMassAssignment Check, ignore itself with strong_parameter gem or rails 4 project
  3. disable CheckSaveReturnValue Check by default
  4. add GemfilePrepare to read gems info in Gemfile.lock
  5. add require_all gem to ease file requirements
  6. add github and sublime support in command

Check out here https://github.com/railsbp/rails_best_practices/compare/1.13.0...1.14.0.

[ANN] rails_best_practices 1.13.0 released

flyerhzm Posted by flyerhzm on November 23, 2012

Comments

[ANN] rails_best_practices 1.12.0 released

flyerhzm Posted by flyerhzm on November 02, 2012

Comments

I just released rails_best_practices 1.12.0, changes are as follows:

  1. ProtectMassAssignmentChecker supports strong_parameters gem now.
  2. Do not say "remove empty application_helper.rb".
  3. Add yaml output format.
  4. AlwaysAddDbIndexChecker support "t.index" syntax.
  5. Add NotRescueExceptionChecker for this.

Check out here https://github.com/railsbp/rails_best_practices/compare/1.11.1...1.12.0.

btw, I also released code_analyzer 0.3.0, it added exception_classes and exception_variable helper methods for rescue sexp node, check out the changelog https://github.com/flyerhzm/code_analyzer/compare/v0.2.0...v0.3.0

 

[ANN] rails_best_practices 1.11.0 released

flyerhzm Posted by flyerhzm on September 22, 2012

Comments

I just released rails_best_practices 1.11.0, it's a big improvement, changes are as follows:

  1. Thank @mschuerig for adding better html template.
  2. HashSyntaxReview only detects symbol hashes.
  3. Thank @compactcode for checking ActionController.layout method.
  4. Skip auto-generating files by default, like db/schema.rb.
  5. Add rabl support.
  6. Extract code analyzer module to code_analyzer gem, it's more DSL now.
  7. Disable UseBeforeFilterCheck by default since people don't like this idea on rails-bestpractices.com.
  8. Disable HashSyntaxCheck, LongLineCheck, RemoveTabCheck and UseParenthesesInMethodDefCheck by default since they are not mentioned on rails-bestpractices.com.

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

[ANN] rails_best_practices 1.10.0 released

flyerhzm Posted by flyerhzm on June 20, 2012

Comments

 

I just released rails_best_practices 1.10.0, thank TBAA for contributing 3 new checkers

1. hash syntax check, ask you to change hash syntax to ruby 1.9

2. use parenthesis in method def, promise method definition has parentheses around parameters

3. long line check, keep lines fewer than 80 characters. 

You can find these 3 checkers in github ruby styleguide, https://github.com/styleguide/ruby

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