Skip to content

Commit

Permalink
Merge pull request #180 from SonicGarden/fix-include
Browse files Browse the repository at this point in the history
[review] Rails/AttributeDefaultBlockValueルールがapp/forms配下でも効くように
  • Loading branch information
aki77 authored Oct 4, 2024
2 parents c421548 + a7edad8 commit 75f45d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sgcop/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Sgcop
VERSION = '1.1.5'.freeze
VERSION = '1.1.6'.freeze
end
4 changes: 4 additions & 0 deletions rails/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ Rails/WhereNot: # (new in 2.8)
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsattributedefaultblockvalue
Rails/AttributeDefaultBlockValue: # (new in 2.9)
Enabled: true
Include:
- app/models/**/*
- app/forms/**/*

# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railswhereequals
Rails/WhereEquals: # (new in 2.9)
Enabled: true
Expand Down

0 comments on commit 75f45d3

Please sign in to comment.