-
Notifications
You must be signed in to change notification settings - Fork 0
🎉 feat: Initial implementation to run rails_best_practices
with reviewdog
#1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…+all,linux,osx,windows | tee .gitignore'
# refs. https://github.com/flyerhzm/rails_best_practices/blob/HEAD/spec/rails_best_practices/reviews/default_scope_is_evil_review_spec.rb#L12-L14 | ||
# refs. https://github.com/flyerhzm/rails_best_practices/blob/HEAD/spec/rails_best_practices/reviews/protect_mass_assignment_review_spec.rb#L17-L18 | ||
class User < ActiveRecord::Base | ||
default_scope -> { order('created_at desc') } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[rails_best_practices] reported by reviewdog 🐶
default_scope is evil
@@ -0,0 +1,5 @@ | |||
# refs. https://github.com/flyerhzm/rails_best_practices/blob/HEAD/spec/rails_best_practices/reviews/default_scope_is_evil_review_spec.rb#L12-L14 | |||
# refs. https://github.com/flyerhzm/rails_best_practices/blob/HEAD/spec/rails_best_practices/reviews/protect_mass_assignment_review_spec.rb#L17-L18 | |||
class User < ActiveRecord::Base |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[rails_best_practices] reported by reviewdog 🐶
protect mass assignment
🏷️ [bumpr] Next version:v0.1.0 |
No description provided.