Skip to content

Commit

Permalink
Adopt more standardrb rules
Browse files Browse the repository at this point in the history
  • Loading branch information
nertzy committed Dec 25, 2023
1 parent 0ba65ab commit f8a8639
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
require:
- standard
- standard-performance
- standard-rails
- standard-rspec
- rubocop-performance
- rubocop-rails
- rubocop-rake
- rubocop-rails
- rubocop-rspec

inherit_gem:
standard: config/base.yml
standard-performance: config/base.yml
standard-rails: config/base.yml
standard-rspec: config/base.yml

AllCops:
TargetRubyVersion: 3.0
Expand Down
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ gem "rubocop-rake"
gem "rubocop-rspec"
gem "simplecov"
gem "simplecov-lcov"
gem "standard", ">= 1.23.0"
gem "standard"
gem "standard-rails"
gem "standard-rspec"
gem "undercover"
gem "warning"
gem "with_model"
2 changes: 1 addition & 1 deletion spec/lib/pg_search/multisearchable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
belongs_to :multisearchable_parent

after_destroy do
multisearchable_parent.update_attribute(:secret, rand(1000).to_s) # rubocop:disable Rails/SkipsModelValidations
multisearchable_parent.update_attribute(:secret, rand(1000).to_s)
end
end
end
Expand Down

0 comments on commit f8a8639

Please sign in to comment.