Skip to content

Commit e402ceb

Browse files
chore: Add rubocop plugins
1 parent 5d3dc2d commit e402ceb

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

.rubocop.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
plugins:
2+
- rubocop-performance
3+
- rubocop-rake
4+
- rubocop-rspec
5+
16
AllCops:
27
TargetRubyVersion: 3.1
38
NewCops: enable

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ gem 'irb'
99
gem 'rake', '~> 13.0'
1010
gem 'rspec', '~> 3.0'
1111
gem 'rubocop', '~> 1.21'
12+
gem 'rubocop-performance', '~> 1.25'
13+
gem 'rubocop-rake', '~> 0.7.1'
14+
gem 'rubocop-rspec', '~> 3.6'

Gemfile.lock

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ GEM
6565
rubocop-ast (1.45.1)
6666
parser (>= 3.3.7.2)
6767
prism (~> 1.4)
68+
rubocop-performance (1.25.0)
69+
lint_roller (~> 1.1)
70+
rubocop (>= 1.75.0, < 2.0)
71+
rubocop-ast (>= 1.38.0, < 2.0)
72+
rubocop-rake (0.7.1)
73+
lint_roller (~> 1.1)
74+
rubocop (>= 1.72.1)
75+
rubocop-rspec (3.6.0)
76+
lint_roller (~> 1.1)
77+
rubocop (~> 1.72, >= 1.72.1)
6878
ruby-progressbar (1.13.0)
6979
stringio (3.1.7)
7080
unicode-display_width (3.1.4)
@@ -81,6 +91,9 @@ DEPENDENCIES
8191
rake (~> 13.0)
8292
rspec (~> 3.0)
8393
rubocop (~> 1.21)
94+
rubocop-performance (~> 1.25)
95+
rubocop-rake (~> 0.7.1)
96+
rubocop-rspec (~> 3.6)
8497

8598
BUNDLED WITH
8699
2.6.9

spec/devise/code_confirmable_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
RSpec.describe Devise::CodeConfirmable do
44
it 'has a version number' do
5-
expect(Devise::CodeConfirmable::VERSION).not_to be nil
5+
expect(Devise::CodeConfirmable::VERSION).not_to be_nil
66
end
77
end

0 commit comments

Comments
 (0)