File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 4
4
5
5
Enabled by default | Supports autocorrection
6
6
--- | ---
7
- Disabled | Yes
7
+ Enabled | Yes
8
8
9
9
Enforces use of symbolic or numeric value to describe HTTP status.
10
10
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ task generate_cops_documentation: :yard_for_generate_documentation do
237
237
238
238
def main
239
239
cops = RuboCop ::Cop ::Cop . registry
240
- config = RuboCop ::ConfigLoader . default_configuration
240
+ config = RuboCop ::ConfigLoader . load_file ( 'config/default.yml' )
241
241
242
242
YARD ::Registry . load!
243
243
cops . departments . sort! . each do |department |
@@ -260,15 +260,13 @@ task documentation_syntax_check: :yard_for_generate_documentation do
260
260
YARD ::Registry . load!
261
261
cops = RuboCop ::Cop ::Cop . registry
262
262
cops . each do |cop |
263
- next unless %i[ RSpec Capybara FactoryBot ] . include? ( cop . department )
264
-
265
263
examples = YARD ::Registry . all ( :class ) . find do |code_object |
266
264
next unless RuboCop ::Cop ::Badge . for ( code_object . to_s ) == cop . badge
267
265
268
266
break code_object . tags ( 'example' )
269
267
end
270
268
271
- examples . each do |example |
269
+ examples . to_a . each do |example |
272
270
begin
273
271
buffer = Parser ::Source ::Buffer . new ( '<code>' , 1 )
274
272
buffer . source = example . text
You can’t perform that action at this time.
0 commit comments