I just released rails_best_practices 1.14.0, changes are as follows:
- add DefaultScopeIsEvil Check, http://rails-bestpractices.com/posts/806-default_scope-is-evil
- improve ProtectedMassAssignment Check, ignore itself with strong_parameter gem or rails 4 project
- disable CheckSaveReturnValue Check by default
- add GemfilePrepare to read gems info in Gemfile.lock
- add require_all gem to ease file requirements
- add github and sublime support in command
I just released rails_best_practices 1.12.0, changes are as follows:
- ProtectMassAssignmentChecker supports strong_parameters gem now.
- Do not say "remove empty application_helper.rb".
- Add yaml output format.
- AlwaysAddDbIndexChecker support "t.index" syntax.
- Add NotRescueExceptionChecker for this.
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
I just released rails_best_practices 1.11.0, it's a big improvement, changes are as follows:
- Thank @mschuerig for adding better html template.
- HashSyntaxReview only detects symbol hashes.
- Thank @compactcode for checking ActionController.layout method.
- Skip auto-generating files by default, like db/schema.rb.
- Add rabl support.
- Extract code analyzer module to code_analyzer gem, it's more DSL now.
- Disable UseBeforeFilterCheck by default since people don't like this idea on rails-bestpractices.com.
- 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.
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