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:
131
131
Performance/DeleteSuffix :
132
132
SafeMultiline : false
133
133
134
+ RSpec :
135
+ Language :
136
+ Expectations :
137
+ - expect_correction
138
+ - expect_no_offenses
139
+ - expect_offense
140
+ - expect_offense_if_model_file
141
+
134
142
# This disabling is a workaround for https://github.com/rubocop-hq/rubocop-rails/issues/374.
135
143
RSpec/FactoryBot/CreateList :
136
144
Enabled : false
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ gem 'bump', require: false
10
10
gem 'rake'
11
11
gem 'rspec'
12
12
gem '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'
15
15
gem 'simplecov'
16
16
gem 'test-queue'
17
17
gem 'yard' , '~> 0.9'
Original file line number Diff line number Diff line change 64
64
end
65
65
end
66
66
67
+ # rubocop:disable RSpec/NoExpectationExample
67
68
it 'has a SupportedStyles for all EnforcedStyle and EnforcedStyle is valid' do
68
69
errors = [ ]
69
70
cop_names . each do |name |
83
84
84
85
raise errors . join ( "\n " ) unless errors . empty?
85
86
end
87
+ # rubocop:enable RSpec/NoExpectationExample
86
88
89
+ # rubocop:disable RSpec/NoExpectationExample
87
90
it 'does not have any duplication' do
88
91
fname = File . expand_path ( '../config/default.yml' , __dir__ )
89
92
content = File . read ( fname )
90
93
RuboCop ::YAMLDuplicationChecker . check ( content , fname ) do |key1 , key2 |
91
94
raise "#{ fname } has duplication of #{ key1 . value } on line #{ key1 . start_line } and line #{ key2 . start_line } "
92
95
end
93
96
end
97
+ # rubocop:enable RSpec/NoExpectationExample
94
98
95
99
it 'does not include `Safe: true`' do
96
100
cop_names . each do |name |
You can’t perform that action at this time.
0 commit comments