Skip to content

Commit ba6a0d0

Browse files
authored
Activate and fix rubocop-rake plugin cops (toptal#1015)
1 parent ac0cba3 commit ba6a0d0

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
inherit_from: .rubocop_todo.yml
22

3+
plugins:
4+
- rubocop-rake
5+
36
AllCops:
47
NewCops: enable
58
TargetRubyVersion: 3.2

Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ RSpec::Core::RakeTask.new(:spec)
77
task default: :spec
88

99
namespace :es do
10+
desc 'Start the elasticsearch test server'
1011
task :start do
1112
Rake.application['elasticsearch:start'].invoke
1213
end
1314

15+
desc 'Stop the elasticsearch test server'
1416
task :stop do
1517
Rake.application['elasticsearch:stop'].invoke
1618
end

gemfiles/base.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ gem 'redis', require: false
66
gem 'rspec', '>= 3.7.0'
77
gem 'rspec-collection_matchers'
88
gem 'rubocop', '1.84.2'
9+
gem 'rubocop-rake'
910
gem 'sqlite3', '~> 2.1'
1011
gem 'timecop'
1112
gem 'unparser', '~> 0.6.15'

0 commit comments

Comments
 (0)