File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,14 @@ Performance/DeletePrefix:
131131Performance/DeleteSuffix :
132132 SafeMultiline : false
133133
134+ RSpec :
135+ Language :
136+ Expectations :
137+ - expect_correction
138+ - expect_no_offenses
139+ - expect_offense
140+ - expect_offense_if_model_file
141+
134142# This disabling is a workaround for https://github.com/rubocop-hq/rubocop-rails/issues/374.
135143RSpec/FactoryBot/CreateList :
136144 Enabled : false
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ gem 'bump', require: false
1010gem 'rake'
1111gem 'rspec'
1212gem 'rubocop' , github : 'rubocop/rubocop'
13- gem 'rubocop-performance' , '~> 1.14 .0'
14- gem 'rubocop-rspec' , '~> 2.11 .0'
13+ gem 'rubocop-performance' , '~> 1.15 .0'
14+ gem 'rubocop-rspec' , '~> 2.13 .0'
1515gem 'simplecov'
1616gem 'test-queue'
1717gem 'yard' , '~> 0.9'
Original file line number Diff line number Diff line change 6464 end
6565 end
6666
67+ # rubocop:disable RSpec/NoExpectationExample
6768 it 'has a SupportedStyles for all EnforcedStyle and EnforcedStyle is valid' do
6869 errors = [ ]
6970 cop_names . each do |name |
8384
8485 raise errors . join ( "\n " ) unless errors . empty?
8586 end
87+ # rubocop:enable RSpec/NoExpectationExample
8688
89+ # rubocop:disable RSpec/NoExpectationExample
8790 it 'does not have any duplication' do
8891 fname = File . expand_path ( '../config/default.yml' , __dir__ )
8992 content = File . read ( fname )
9093 RuboCop ::YAMLDuplicationChecker . check ( content , fname ) do |key1 , key2 |
9194 raise "#{ fname } has duplication of #{ key1 . value } on line #{ key1 . start_line } and line #{ key2 . start_line } "
9295 end
9396 end
97+ # rubocop:enable RSpec/NoExpectationExample
9498
9599 it 'does not include `Safe: true`' do
96100 cop_names . each do |name |
You can’t perform that action at this time.
0 commit comments